Skip to content

A full-featured download manager.

refactor: sort i18n locale key

Dr_rOot81a73557e88f
diff --git a/src/shared/locales/all.js b/src/shared/locales/all.js
index bd3d1414..ef0ce6e8 100644
--- a/src/shared/locales/all.js
+++ b/src/shared/locales/all.js
@@ -18,10 +18,10 @@ import eleLocalePtBR from 'element-ui/lib/locale/lang/pt-br'
import eleLocaleRo from 'element-ui/lib/locale/lang/ro'
import eleLocaleRu from 'element-ui/lib/locale/lang/ru-RU'
import eleLocaleTr from 'element-ui/lib/locale/lang/tr-TR'
+import eleLocaleUk from 'element-ui/lib/locale/lang/ua'
import eleLocaleVi from 'element-ui/lib/locale/lang/vi'
import eleLocaleZhCN from 'element-ui/lib/locale/lang/zh-CN'
import eleLocaleZhTW from 'element-ui/lib/locale/lang/zh-TW'
-import eleLocaleUk from 'element-ui/lib/locale/lang/ua'
import appLocaleAr from '@shared/locales/ar'
import appLocaleBg from '@shared/locales/bg'
import appLocaleCa from '@shared/locales/ca'
@@ -42,10 +42,10 @@ import appLocalePtBR from '@shared/locales/pt-BR'
import appLocaleRo from '@shared/locales/ro'
import appLocaleRu from '@shared/locales/ru'
import appLocaleTr from '@shared/locales/tr'
+import appLocaleUk from '@shared/locales/uk'
import appLocaleVi from '@shared/locales/vi'
import appLocaleZhCN from '@shared/locales/zh-CN'
import appLocaleZhTW from '@shared/locales/zh-TW'
-import appLocaleUk from '@shared/locales/uk'
// Please keep the locale key in alphabetical order.
/* eslint-disable quote-props */
@@ -56,6 +56,12 @@ const resources = {
...appLocaleAr
}
},
+ 'bg': {
+ translation: {
+ ...eleLocaleBg,
+ ...appLocaleBg
+ }
+ },
'ca': {
translation: {
...eleLocaleCa,
@@ -164,6 +170,12 @@ const resources = {
...appLocaleTr
}
},
+ 'uk': {
+ translation: {
+ ...eleLocaleUk,
+ ...appLocaleUk
+ }
+ },
'vi': {
translation: {
...eleLocaleVi,
@@ -181,18 +193,6 @@ const resources = {
...eleLocaleZhTW,
...appLocaleZhTW
}
- },
- 'uk': {
- translation: {
- ...eleLocaleUk,
- ...appLocaleUk
- }
- },
- 'bg': {
- translation: {
- ...eleLocaleBg,
- ...appLocaleBg
- }
}
}
/* eslint-enable quote-props */
diff --git a/src/shared/locales/app.js b/src/shared/locales/app.js
index a0df5348..543d04cc 100644
--- a/src/shared/locales/app.js
+++ b/src/shared/locales/app.js
@@ -16,10 +16,10 @@ import appLocalePtBR from '@shared/locales/pt-BR'
import appLocaleRo from '@shared/locales/ro'
import appLocaleRu from '@shared/locales/ru'
import appLocaleTr from '@shared/locales/tr'
+import appLocaleUk from '@shared/locales/uk'
import appLocaleVi from '@shared/locales/vi'
import appLocaleZhCN from '@shared/locales/zh-CN'
import appLocaleZhTW from '@shared/locales/zh-TW'
-import appLocaleUk from '@shared/locales/uk'
// Please keep the locale key in alphabetical order.
/* eslint-disable quote-props */
@@ -29,6 +29,11 @@ const resources = {
...appLocaleAr
}
},
+ 'bg': {
+ translation: {
+ ...appLocaleBg
+ }
+ },
'ca': {
translation: {
...appLocaleCa
@@ -109,6 +114,11 @@ const resources = {
...appLocaleTr
}
},
+ 'uk': {
+ translation: {
+ ...appLocaleUk
+ }
+ },
'vi': {
translation: {
...appLocaleVi
@@ -123,16 +133,6 @@ const resources = {
translation: {
...appLocaleZhTW
}
- },
- 'uk': {
- translation: {
- ...appLocaleUk
- }
- },
- 'bg': {
- translation: {
- ...appLocaleBg
- }
}
}
/* eslint-enable quote-props */
diff --git a/src/shared/locales/index.js b/src/shared/locales/index.js
index b043d537..a018f371 100644
--- a/src/shared/locales/index.js
+++ b/src/shared/locales/index.js
@@ -74,18 +74,22 @@ export const availableLanguages = [
value: 'pt-BR',
label: 'Português (Brasil)'
},
- {
- value: 'ru',
- label: 'Русский'
- },
{
value: 'ro',
label: 'Română'
},
+ {
+ value: 'ru',
+ label: 'Русский'
+ },
{
value: 'tr',
label: 'Türkçe'
},
+ {
+ value: 'uk',
+ label: 'Українська'
+ },
{
value: 'vi',
label: 'Tiếng Việt'
@@ -97,10 +101,6 @@ export const availableLanguages = [
{
value: 'zh-TW',
label: '繁體中文'
- },
- {
- value: 'uk',
- label: 'Українська'
}
]