Skip to content

Commit

Permalink
format code
Browse files Browse the repository at this point in the history
  • Loading branch information
mayswind committed Feb 9, 2025
1 parent 0e4cd10 commit 6021c24
Show file tree
Hide file tree
Showing 8 changed files with 33 additions and 33 deletions.
6 changes: 3 additions & 3 deletions pkg/locales/all_locales.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
Expand All @@ -25,9 +28,6 @@ var AllLanguages = map[string]*LocaleInfo{
"zh-Hans": {
Content: zhHans,
},
"de": {
Content: de,
}
}

func GetLocaleTextItems(locale string) *LocaleTextItems {
Expand Down
6 changes: 3 additions & 3 deletions src/locales/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -1923,4 +1923,4 @@
"Parameter Invalid": "Parameter ungültig",
"Numeric Overflow": "Numerischer Überlauf",
"Click to close": "Zum Schließen klicken"
}
}
6 changes: 3 additions & 3 deletions src/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -1923,4 +1923,4 @@
"Parameter Invalid": "Parameter Invalid",
"Numeric Overflow": "Numeric Overflow",
"Click to close": "Click to close"
}
}
6 changes: 3 additions & 3 deletions src/locales/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -1923,4 +1923,4 @@
"Parameter Invalid": "Parámetro no válido",
"Numeric Overflow": "Desbordamiento numérico",
"Click to close": "Haga clic para cerrar"
}
}
24 changes: 12 additions & 12 deletions src/locales/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<string, LanguageInfo> = {
'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',
Expand All @@ -52,11 +58,5 @@ export const ALL_LANGUAGES: Record<string, LanguageInfo> = {
alternativeLanguageTag: 'zh-CN',
aliases: ['zh-CHS', 'zh-CN', 'zh-SG'],
content: zhHans
},
'de': {
name: 'German',
displayName: 'Deutsch',
alternativeLanguageTag: 'de-DE',
content: de
}
};
6 changes: 3 additions & 3 deletions src/locales/ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
}
},
"language": {
"German": "Немецкий",
"English": "Английский",
"Spanish": "Испанский",
"Russian": "Русский",
"Vietnamese": "Вьетнамский язык",
"Simplified Chinese": "Упрощенный Китайский",
"German": "Немецкий"
"Simplified Chinese": "Упрощенный Китайский"
},
"default": {
"currency": "RUB",
Expand Down Expand Up @@ -1923,4 +1923,4 @@
"Parameter Invalid": "Неверный параметр",
"Numeric Overflow": "Числовое переполнение",
"Click to close": "Нажмите, чтобы закрыть"
}
}
6 changes: 3 additions & 3 deletions src/locales/vi.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -1923,4 +1923,4 @@
"Parameter Invalid": "Tham số không hợp lệ",
"Numeric Overflow": "Tràn số",
"Click to close": "Nhấp để đóng"
}
}
6 changes: 3 additions & 3 deletions src/locales/zh_Hans.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
}
},
"language": {
"German": "德语",
"English": "英语",
"Spanish": "西班牙语",
"Russian": "俄语",
"Vietnamese": "越南语",
"Simplified Chinese": "简体中文",
"German": "德语"
"Simplified Chinese": "简体中文"
},
"default": {
"currency": "CNY",
Expand Down Expand Up @@ -1923,4 +1923,4 @@
"Parameter Invalid": "参数错误",
"Numeric Overflow": "数值溢出",
"Click to close": "点击关闭"
}
}

0 comments on commit 6021c24

Please sign in to comment.