mirror of
https://github.com/sismics/docs.git
synced 2024-11-25 23:27:57 +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@'
|
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');
|
||||||
|
@ -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'
|
||||||
})
|
})
|
||||||
|
@ -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>
|
||||||
|
Loading…
Reference in New Issue
Block a user