diff --git a/pkg/locales/all_locales.go b/pkg/locales/all_locales.go index b85cdd45..10e20d3d 100644 --- a/pkg/locales/all_locales.go +++ b/pkg/locales/all_locales.go @@ -10,6 +10,9 @@ var DefaultLanguage = en // AllLanguages represents all the supported language // To add new languages, please refer to https://ezbookkeeping.mayswind.net/translating var AllLanguages = map[string]*LocaleInfo{ + "de": { + Content: de, + }, "en": { Content: en, }, @@ -25,9 +28,6 @@ var AllLanguages = map[string]*LocaleInfo{ "zh-Hans": { Content: zhHans, }, - "de": { - Content: de, - } } func GetLocaleTextItems(locale string) *LocaleTextItems { diff --git a/src/locales/de.json b/src/locales/de.json index b371cf17..06e51f18 100644 --- a/src/locales/de.json +++ b/src/locales/de.json @@ -5,12 +5,12 @@ } }, "language": { + "Deutsch": "Deutsch", "English": "English", "Spanish": "Spanish", "Russian": "Russian", "Vietnamese": "Vietnamese", - "Simplified Chinese": "Simplified Chinese", - "Deutsch": "Deutsch" + "Simplified Chinese": "Simplified Chinese" }, "default": { "currency": "EUR", @@ -1923,4 +1923,4 @@ "Parameter Invalid": "Parameter ungültig", "Numeric Overflow": "Numerischer Überlauf", "Click to close": "Zum Schließen klicken" -} \ No newline at end of file +} diff --git a/src/locales/en.json b/src/locales/en.json index 2f547113..15ebbadf 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -5,12 +5,12 @@ } }, "language": { + "German": "German", "English": "English", "Spanish": "Spanish", "Russian": "Russian", "Vietnamese": "Vietnamese", - "Simplified Chinese": "Simplified Chinese", - "German": "German" + "Simplified Chinese": "Simplified Chinese" }, "default": { "currency": "USD", @@ -1923,4 +1923,4 @@ "Parameter Invalid": "Parameter Invalid", "Numeric Overflow": "Numeric Overflow", "Click to close": "Click to close" -} \ No newline at end of file +} diff --git a/src/locales/es.json b/src/locales/es.json index 60e89eba..40da4136 100644 --- a/src/locales/es.json +++ b/src/locales/es.json @@ -5,12 +5,12 @@ } }, "language": { + "German": "Alemán", "English": "Inglés", "Spanish": "Español", "Russian": "Ruso", "Vietnamese": "Vietnamita", - "Simplified Chinese": "Chino simplificado", - "German": "Alemán" + "Simplified Chinese": "Chino simplificado" }, "default": { "currency": "EUR", @@ -1923,4 +1923,4 @@ "Parameter Invalid": "Parámetro no válido", "Numeric Overflow": "Desbordamiento numérico", "Click to close": "Haga clic para cerrar" -} \ No newline at end of file +} diff --git a/src/locales/index.ts b/src/locales/index.ts index 1f332930..1e60839f 100644 --- a/src/locales/index.ts +++ b/src/locales/index.ts @@ -22,24 +22,30 @@ export const DEFAULT_LANGUAGE: string = 'en'; // To add new languages, please refer to https://ezbookkeeping.mayswind.net/translating export const ALL_LANGUAGES: Record = { + 'de': { + name: 'German', + displayName: 'Deutsch', + alternativeLanguageTag: 'de-DE', + content: de + }, 'en': { name: 'English', displayName: 'English', alternativeLanguageTag: 'en', content: en }, - 'ru': { - name: 'Russian', - displayName: 'Русский', - alternativeLanguageTag: 'ru-RU', - content: ru - }, 'es': { name: 'Spanish', displayName: 'Español', alternativeLanguageTag: 'es', content: es }, + 'ru': { + name: 'Russian', + displayName: 'Русский', + alternativeLanguageTag: 'ru-RU', + content: ru + }, 'vi': { name: 'Vietnamese', displayName: 'Tiếng Việt', @@ -52,11 +58,5 @@ export const ALL_LANGUAGES: Record = { alternativeLanguageTag: 'zh-CN', aliases: ['zh-CHS', 'zh-CN', 'zh-SG'], content: zhHans - }, - 'de': { - name: 'German', - displayName: 'Deutsch', - alternativeLanguageTag: 'de-DE', - content: de } }; diff --git a/src/locales/ru.json b/src/locales/ru.json index 25c14519..f99af0bc 100644 --- a/src/locales/ru.json +++ b/src/locales/ru.json @@ -5,12 +5,12 @@ } }, "language": { + "German": "Немецкий", "English": "Английский", "Spanish": "Испанский", "Russian": "Русский", "Vietnamese": "Вьетнамский язык", - "Simplified Chinese": "Упрощенный Китайский", - "German": "Немецкий" + "Simplified Chinese": "Упрощенный Китайский" }, "default": { "currency": "RUB", @@ -1923,4 +1923,4 @@ "Parameter Invalid": "Неверный параметр", "Numeric Overflow": "Числовое переполнение", "Click to close": "Нажмите, чтобы закрыть" -} \ No newline at end of file +} diff --git a/src/locales/vi.json b/src/locales/vi.json index 8077e0a7..3ceaad43 100644 --- a/src/locales/vi.json +++ b/src/locales/vi.json @@ -5,12 +5,12 @@ } }, "language": { + "German": "Tiếng Đức", "English": "Tiếng Anh", "Spanish": "Tiếng Tây Ban Nha", "Russian": "Tiếng Nga", "Vietnamese": "Tiếng Việt", - "Simplified Chinese": "Tiếng Trung Giản Thể", - "German": "Tiếng Đức" + "Simplified Chinese": "Tiếng Trung Giản Thể" }, "default": { "currency": "VND", @@ -1923,4 +1923,4 @@ "Parameter Invalid": "Tham số không hợp lệ", "Numeric Overflow": "Tràn số", "Click to close": "Nhấp để đóng" -} \ No newline at end of file +} diff --git a/src/locales/zh_Hans.json b/src/locales/zh_Hans.json index bf84668e..8623b745 100644 --- a/src/locales/zh_Hans.json +++ b/src/locales/zh_Hans.json @@ -5,12 +5,12 @@ } }, "language": { + "German": "德语", "English": "英语", "Spanish": "西班牙语", "Russian": "俄语", "Vietnamese": "越南语", - "Simplified Chinese": "简体中文", - "German": "德语" + "Simplified Chinese": "简体中文" }, "default": { "currency": "CNY", @@ -1923,4 +1923,4 @@ "Parameter Invalid": "参数错误", "Numeric Overflow": "数值溢出", "Click to close": "点击关闭" -} \ No newline at end of file +}