mirror of
https://github.com/sismics/docs.git
synced 2024-11-22 14:07:55 +01:00
add fallback for el language
This commit is contained in:
parent
964f3128d2
commit
e5600e0be7
@ -430,12 +430,13 @@ angular.module('docs',
|
||||
suffix: '.json?@build.date@'
|
||||
})
|
||||
.registerAvailableLanguageKeys(['en', 'es', 'fr', 'de', 'el', 'ru', 'pl', 'zh_CN', 'zh_TW'], {
|
||||
'ru_*': 'ru',
|
||||
'en_*': 'en',
|
||||
'es_*': 'es',
|
||||
'fr_*': 'fr',
|
||||
'de_*': 'de',
|
||||
'pl_*': 'pl',
|
||||
'el_*': 'el',
|
||||
'ru_*': 'ru',
|
||||
'pl_*': 'pl',
|
||||
'*': 'en'
|
||||
})
|
||||
.fallbackLanguage('en');
|
||||
|
@ -61,12 +61,13 @@ angular.module('share',
|
||||
prefix: 'locale/',
|
||||
suffix: '.json?@build.date@'
|
||||
})
|
||||
.registerAvailableLanguageKeys(['en', 'es', 'fr', 'de', 'el', 'ru', 'pl, 'zh_CN', 'zh_TW'], {
|
||||
'ru_*': 'ru',
|
||||
.registerAvailableLanguageKeys(['en', 'es', 'fr', 'de', 'el', 'ru', 'pl', 'zh_CN', 'zh_TW'], {
|
||||
'en_*': 'en',
|
||||
'es_*': 'es',
|
||||
'fr_*': 'fr',
|
||||
'de_*': 'de',
|
||||
'el_*': 'el',
|
||||
'ru_*': 'ru',
|
||||
'pl_*': 'pl',
|
||||
'*': 'en'
|
||||
})
|
||||
|
@ -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('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('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>
|
||||
</ul>
|
||||
</li>
|
||||
|
Loading…
Reference in New Issue
Block a user