Skip to content

Commit 21f5225

Browse files
committed
#17833:  Child theme does not inherit translations from parent theme
1 parent 6a35e24 commit 21f5225

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
@@ -400,14 +400,16 @@ protected function _getModuleTranslationFile($moduleName, $locale)
400400
*
401401
* @param string $locale
402402
* @param array $config
403-
* @return string
403+
* @return string|null
404404
*/
405-
private function getThemeTranslationFileName(string $locale, array $config): string
405+
private function getThemeTranslationFileName(string $locale, array $config): ?string
406406
{
407-
return $this->_viewFileSystem->getLocaleFileName(
407+
$fileName = $this->_viewFileSystem->getLocaleFileName(
408408
'i18n' . '/' . $locale . '.csv',
409409
$config
410410
);
411+
412+
return $fileName ? $fileName : null;
411413
}
412414

413415
/**

0 commit comments

Comments
 (0)