Skip to content

Commit

Permalink
Add german translation (#7636)
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Onnikov <[email protected]>
  • Loading branch information
aonnikov authored Jan 10, 2025
1 parent 01677b2 commit 59141b9
Show file tree
Hide file tree
Showing 13 changed files with 15 additions and 5 deletions.
2 changes: 1 addition & 1 deletion desktop/src/ui/platform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ export async function configurePlatform (): Promise<void> {
setMetadata(aiBot.metadata.EndpointURL, config.AI_URL)
setMetadata(presence.metadata.PresenceUrl, config.PRESENCE_URL ?? '')

const languages = myBranding.languages !== undefined && myBranding.languages !== '' ? myBranding.languages.split(',').map((l) => l.trim()) : ['en', 'ru', 'es', 'pt', 'zh', 'fr', 'cs', 'it']
const languages = myBranding.languages !== undefined && myBranding.languages !== '' ? myBranding.languages.split(',').map((l) => l.trim()) : ['en', 'ru', 'es', 'pt', 'zh', 'fr', 'cs', 'it', 'de']

setMetadata(uiPlugin.metadata.Languages, languages)

Expand Down
4 changes: 2 additions & 2 deletions dev/prod/public/branding.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"localhost:8080": {
"title": "Huly",
"languages": "en,ru,pt,es,zh,fr",
"languages": "en,ru,pt,es,zh,fr,de",
"defaultLanguage": "en",
"defaultApplication": "tracker",
"defaultSpace": "tracker:project:DefaultProject",
Expand Down Expand Up @@ -30,7 +30,7 @@
},
"localhost:8087": {
"title": "Huly",
"languages": "en,ru,pt,es,zh,fr",
"languages": "en,ru,pt,es,zh,fr,de",
"defaultLanguage": "en",
"defaultApplication": "tracker",
"defaultSpace": "tracker:project:DefaultProject",
Expand Down
2 changes: 1 addition & 1 deletion dev/prod/src/platform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ export async function configurePlatform() {
setMetadata(sign.metadata.SignURL, config.SIGN_URL)
setMetadata(presence.metadata.PresenceUrl, config.PRESENCE_URL ?? '')

const languages = myBranding.languages ? (myBranding.languages as string).split(',').map((l) => l.trim()) : ['en', 'ru', 'es', 'pt', 'zh', 'fr', 'cs', 'it']
const languages = myBranding.languages ? (myBranding.languages as string).split(',').map((l) => l.trim()) : ['en', 'ru', 'es', 'pt', 'zh', 'fr', 'cs', 'it', 'de']

setMetadata(uiPlugin.metadata.Languages, languages)

Expand Down
1 change: 1 addition & 0 deletions packages/ui/lang/cs.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
"French": "Français",
"Italian": "Italiano",
"Czech": "Čeština",
"German": "Deutsch",
"MinutesBefore": "{minutes, plural, =1 {1 minuta před} other {# minut před}}",
"HoursBefore": "{hours, plural, =1 {1 hodina před} other {# hodin před}}",
"DaysBefore": "{days, plural, =1 {1 den před} other {# dní před}}",
Expand Down
1 change: 1 addition & 0 deletions packages/ui/lang/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
"French": "Français",
"Italian": "Italiano",
"Czech": "Čeština",
"German": "Deutsch",
"MinutesBefore": "{minutes, plural, =1 {a minute before} other {# minutes before}}",
"HoursBefore": "{hours, plural, =1 {an hour before} other {# hours before}}",
"DaysBefore": "{days, plural, =1 {a day before} other {# days before}}",
Expand Down
1 change: 1 addition & 0 deletions packages/ui/lang/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
"French": "Français",
"Italian": "Italiano",
"Czech": "Čeština",
"German": "Deutsch",
"MinutesBefore": "{minutes, plural, =1 {un minuto antes} other {# minutos antes}}",
"HoursBefore": "{hours, plural, =1 {una hora antes} other {# horas antes}}",
"DaysBefore": "{days, plural, =1 {un día antes} other {# días antes}}",
Expand Down
1 change: 1 addition & 0 deletions packages/ui/lang/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
"French": "Français",
"Italian": "Italiano",
"Czech": "Čeština",
"German": "Deutsch",
"MinutesBefore": "{minutes, plural, =1 {une minute avant} other {# minutes avant}}",
"HoursBefore": "{hours, plural, =1 {une heure avant} other {# heures avant}}",
"DaysBefore": "{days, plural, =1 {un jour avant} other {# jours avant}}",
Expand Down
1 change: 1 addition & 0 deletions packages/ui/lang/it.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
"French": "Français",
"Italian": "Italiano",
"Czech": "Čeština",
"German": "Deutsch",
"MinutesBefore": "{minutes, plural, =1 {un minuto prima} other {# minuti prima}}",
"HoursBefore": "{hours, plural, =1 {un'ora prima} other {# ore prima}}",
"DaysBefore": "{days, plural, =1 {un giorno prima} other {# giorni prima}}",
Expand Down
1 change: 1 addition & 0 deletions packages/ui/lang/pt.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
"French": "Français",
"Italian": "Italiano",
"Czech": "Čeština",
"German": "Deutsch",
"MinutesBefore": "{minutes, plural, =1 {um minuto antes} other {# minutos antes}}",
"HoursBefore": "{hours, plural, =1 {uma hora antes} other {# horas antes}}",
"DaysBefore": "{days, plural, =1 {um dia antes} other {# dias antes}}",
Expand Down
1 change: 1 addition & 0 deletions packages/ui/lang/ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
"French": "Français",
"Italian": "Italiano",
"Czech": "Čeština",
"German": "Deutsch",
"MinutesBefore": "{minutes, plural, =1 {за минуту} one {за # минуту} few {за # минуты} other {за # минут}}",
"HoursBefore": "{hours, plural, =1 {за час} one {за # час} few {за # часа} other {за # часов}}",
"DaysBefore": "{days, plural, =1 {за день} one {за # день} few {за # дня} other {за # дней}}",
Expand Down
1 change: 1 addition & 0 deletions packages/ui/lang/zh.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
"French": "Français",
"Italian": "Italiano",
"Czech": "Čeština",
"German": "Deutsch",
"MinutesBefore": "{minutes, plural, =1 {一分钟前} other {# 分钟前}}",
"HoursBefore": "{hours, plural, =1 {一小时前} other {# 小时前}}",
"DaysBefore": "{days, plural, =1 {一天前} other {# 天前}}",
Expand Down
3 changes: 2 additions & 1 deletion packages/ui/src/components/internal/LangSelector.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@
{ id: 'zh', label: ui.string.Chinese, logo: '&#x1F1E8;&#x1F1F3;' },
{ id: 'fr', label: ui.string.French, logo: '&#x1F1EB;&#x1F1F7;' },
{ id: 'it', label: ui.string.Italian, logo: '&#x1F1EE;&#x1F1F9;' },
{ id: 'cs', label: ui.string.Czech, logo: '&#x1F1E8;&#x1F1FF;' }
{ id: 'cs', label: ui.string.Czech, logo: '&#x1F1E8;&#x1F1FF;' },
{ id: 'de', label: ui.string.German, logo: '&#x1F1E9;&#x1F1EA;' }
].filter((lang) => uiLangs.has(lang.id))
if (langs.findIndex((l) => l.id === currentLanguage) < 0 && langs.length !== 0) {
setLanguage(langs[0].id)
Expand Down
1 change: 1 addition & 0 deletions packages/ui/src/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ export const uis = plugin(uiId, {
French: '' as IntlString,
Italian: '' as IntlString,
Czech: '' as IntlString,
German: '' as IntlString,
MinutesBefore: '' as IntlString,
HoursBefore: '' as IntlString,
DaysBefore: '' as IntlString,
Expand Down

0 comments on commit 59141b9

Please sign in to comment.