Skip to content

Commit 10d9cc9

Browse files
committed
#17833:  Child theme does not inherit translations from parent theme
(cherry picked from commit 21f5225)
1 parent 24330d6 commit 10d9cc9

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

lib/internal/Magento/Framework/Translate.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -388,14 +388,16 @@ protected function _getModuleTranslationFile($moduleName, $locale)
388388
*
389389
* @param string $locale
390390
* @param array $config
391-
* @return string
391+
* @return string|null
392392
*/
393-
private function getThemeTranslationFileName(string $locale, array $config): string
393+
private function getThemeTranslationFileName(string $locale, array $config): ?string
394394
{
395-
return $this->_viewFileSystem->getLocaleFileName(
395+
$fileName = $this->_viewFileSystem->getLocaleFileName(
396396
'i18n' . '/' . $locale . '.csv',
397397
$config
398398
);
399+
400+
return $fileName ? $fileName : null;
399401
}
400402

401403
/**

0 commit comments

Comments
 (0)