add fallback for el language

This commit is contained in:
bgamard 2020-10-14 22:54:22 +02:00
parent 964f3128d2
commit e5600e0be7
3 changed files with 7 additions and 5 deletions

View File

@ -430,12 +430,13 @@ angular.module('docs',
suffix: '.json?@build.date@' suffix: '.json?@build.date@'
}) })
.registerAvailableLanguageKeys(['en', 'es', 'fr', 'de', 'el', 'ru', 'pl', 'zh_CN', 'zh_TW'], { .registerAvailableLanguageKeys(['en', 'es', 'fr', 'de', 'el', 'ru', 'pl', 'zh_CN', 'zh_TW'], {
'ru_*': 'ru',
'en_*': 'en', 'en_*': 'en',
'es_*': 'es', 'es_*': 'es',
'fr_*': 'fr', 'fr_*': 'fr',
'de_*': 'de', 'de_*': 'de',
'pl_*': 'pl', 'el_*': 'el',
'ru_*': 'ru',
'pl_*': 'pl',
'*': 'en' '*': 'en'
}) })
.fallbackLanguage('en'); .fallbackLanguage('en');

View File

@ -61,12 +61,13 @@ angular.module('share',
prefix: 'locale/', prefix: 'locale/',
suffix: '.json?@build.date@' suffix: '.json?@build.date@'
}) })
.registerAvailableLanguageKeys(['en', 'es', 'fr', 'de', 'el', 'ru', 'pl, 'zh_CN', 'zh_TW'], { .registerAvailableLanguageKeys(['en', 'es', 'fr', 'de', 'el', 'ru', 'pl', 'zh_CN', 'zh_TW'], {
'ru_*': 'ru',
'en_*': 'en', 'en_*': 'en',
'es_*': 'es', 'es_*': 'es',
'fr_*': 'fr', 'fr_*': 'fr',
'de_*': 'de', 'de_*': 'de',
'el_*': 'el',
'ru_*': 'ru',
'pl_*': 'pl', 'pl_*': 'pl',
'*': 'en' '*': 'en'
}) })

View File

@ -201,7 +201,7 @@
<li><a href ng-click="changeLanguage('el')" ng-class="{ 'bg-info': currentLang == 'el' }">Ελληνικά</a></li> <li><a href ng-click="changeLanguage('el')" ng-class="{ 'bg-info': currentLang == 'el' }">Ελληνικά</a></li>
<li><a href ng-click="changeLanguage('ru')" ng-class="{ 'bg-info': currentLang == 'ru' }">Pусский</a></li> <li><a href ng-click="changeLanguage('ru')" ng-class="{ 'bg-info': currentLang == 'ru' }">Pусский</a></li>
<li><a href ng-click="changeLanguage('pl')" ng-class="{ 'bg-info': currentLang == 'pl' }">Polski</a></li> <li><a href ng-click="changeLanguage('pl')" ng-class="{ 'bg-info': currentLang == 'pl' }">Polski</a></li>
<li><a href ng-click="changeLanguage('zh_CN')" ng-class="{ 'bg-info': currentLang == 'zh_CN' }">简体中文</a></li> <li><a href ng-click="changeLanguage('zh_CN')" ng-class="{ 'bg-info': currentLang == 'zh_CN' }">简体中文</a></li>
<li><a href ng-click="changeLanguage('zh_TW')" ng-class="{ 'bg-info': currentLang == 'zh_TW' }">繁體中文</a></li> <li><a href ng-click="changeLanguage('zh_TW')" ng-class="{ 'bg-info': currentLang == 'zh_TW' }">繁體中文</a></li>
</ul> </ul>
</li> </li>