File tree Expand file tree Collapse file tree 3 files changed +22
-8
lines changed
Expand file tree Collapse file tree 3 files changed +22
-8
lines changed Original file line number Diff line number Diff line change @@ -191,14 +191,16 @@ declare namespace timer {
191191 */
192192 type TranslatingLocale =
193193 | 'de'
194- | 'en_GB'
195- | 'en_US'
196194 | 'es'
197195 | 'ko'
198196 | 'pl'
199197 | 'pt'
200198 | 'pt_BR'
201199 | 'ru'
200+ | 'uk'
201+ | 'fr'
202+ | 'it'
203+ | 'sv'
202204
203205 namespace stat {
204206 /**
Original file line number Diff line number Diff line change @@ -19,14 +19,16 @@ const localeCrowdMap: { [locale in SupportedLocale]: string } = {
1919 ja : "ja" ,
2020 zh_TW : "zh-TW" ,
2121 de : "de" ,
22- en_GB : "en-GB" ,
23- en_US : "en-US" ,
2422 es : "es-ES" ,
2523 ko : "ko" ,
2624 pl : "pl" ,
2725 pt : "pt-PT" ,
2826 pt_BR : "pt-BR" ,
29- ru : "ru"
27+ ru : "ru" ,
28+ uk : "uk" ,
29+ fr : "fr" ,
30+ it : "it" ,
31+ sv : "sv-SE" ,
3032}
3133
3234const crowdLocaleMap : { [ locale : string ] : SupportedLocale } = { }
@@ -69,7 +71,15 @@ const CONTAINER_CLZ = 'progress-container'
6971async function queryData ( listRef : Ref < ProgressInfo [ ] > ) {
7072 const loading = ElLoading . service ( { target : `.${ CONTAINER_CLZ } ` , text : t ( msg => msg . helpUs . loading ) } )
7173 const langList = await getTranslationStatus ( )
72- listRef . value = langList . map ( convert2Info ) . sort ( ( a , b ) => b . progress - a . progress )
74+ listRef . value = langList . map ( convert2Info )
75+ . sort ( ( a , b ) => {
76+ const progressDiff = b . progress - a . progress
77+ if ( progressDiff === 0 ) {
78+ return a . locale . localeCompare ( b . locale )
79+ } else {
80+ return progressDiff
81+ }
82+ } )
7383 loading . close ( )
7484}
7585
Original file line number Diff line number Diff line change @@ -19,15 +19,17 @@ const _default: LocaleMessages = {
1919 zh_TW : '正體中文' ,
2020 en : 'English' ,
2121 ja : '日本語' ,
22- en_GB : 'English, UK' ,
23- en_US : 'English, US' ,
2422 pl : 'Polski' ,
2523 pt : 'Português' ,
2624 pt_BR : 'Portugues, Brasil' ,
2725 ko : '한국인' ,
2826 de : 'Deutsch' ,
2927 es : 'Español' ,
3028 ru : 'Русский' ,
29+ uk : "українська" ,
30+ fr : "Français" ,
31+ it : "italiano" ,
32+ sv : "Sverige" ,
3133}
3234
3335export default _default
You can’t perform that action at this time.
0 commit comments