Skip to content

Commit 26ea51e

Browse files
committed
#17833:  Child theme does not inherit translations from parent theme
- take into account into "null" locale value
1 parent a3db8d3 commit 26ea51e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/internal/Magento/Framework/Translate.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -386,11 +386,11 @@ protected function _getModuleTranslationFile($moduleName, $locale)
386386
/**
387387
* Get theme translation locale file name
388388
*
389-
* @param string $locale
389+
* @param string|null $locale
390390
* @param array $config
391391
* @return string|null
392392
*/
393-
private function getThemeTranslationFileName(string $locale, array $config)
393+
private function getThemeTranslationFileName($locale, array $config)
394394
{
395395
$fileName = $this->_viewFileSystem->getLocaleFileName(
396396
'i18n' . '/' . $locale . '.csv',

0 commit comments

Comments
 (0)