diff --git a/desktop/src/ui/platform.ts b/desktop/src/ui/platform.ts index 8785b3d8b6d..869cd0dd7da 100644 --- a/desktop/src/ui/platform.ts +++ b/desktop/src/ui/platform.ts @@ -248,7 +248,7 @@ export async function configurePlatform (): Promise { 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) diff --git a/dev/prod/public/branding.json b/dev/prod/public/branding.json index de32acd3f44..0315bc13fd3 100644 --- a/dev/prod/public/branding.json +++ b/dev/prod/public/branding.json @@ -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", @@ -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", diff --git a/dev/prod/src/platform.ts b/dev/prod/src/platform.ts index 8ab1bd29274..8579682c7bb 100644 --- a/dev/prod/src/platform.ts +++ b/dev/prod/src/platform.ts @@ -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) diff --git a/packages/ui/lang/cs.json b/packages/ui/lang/cs.json index 8986f8fac43..c2b74ca0c40 100644 --- a/packages/ui/lang/cs.json +++ b/packages/ui/lang/cs.json @@ -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}}", diff --git a/packages/ui/lang/en.json b/packages/ui/lang/en.json index ee7c0a01f61..bae209beab6 100644 --- a/packages/ui/lang/en.json +++ b/packages/ui/lang/en.json @@ -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}}", diff --git a/packages/ui/lang/es.json b/packages/ui/lang/es.json index 6802938de06..5ce75309e24 100644 --- a/packages/ui/lang/es.json +++ b/packages/ui/lang/es.json @@ -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}}", diff --git a/packages/ui/lang/fr.json b/packages/ui/lang/fr.json index 83e0540c522..eec44124499 100644 --- a/packages/ui/lang/fr.json +++ b/packages/ui/lang/fr.json @@ -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}}", diff --git a/packages/ui/lang/it.json b/packages/ui/lang/it.json index 013150b9452..76a8d154eee 100644 --- a/packages/ui/lang/it.json +++ b/packages/ui/lang/it.json @@ -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}}", diff --git a/packages/ui/lang/pt.json b/packages/ui/lang/pt.json index e09ca6d527f..b4a7919abc6 100644 --- a/packages/ui/lang/pt.json +++ b/packages/ui/lang/pt.json @@ -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}}", diff --git a/packages/ui/lang/ru.json b/packages/ui/lang/ru.json index 3c6ac7c3724..4e84c455c0e 100644 --- a/packages/ui/lang/ru.json +++ b/packages/ui/lang/ru.json @@ -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 {за # дней}}", diff --git a/packages/ui/lang/zh.json b/packages/ui/lang/zh.json index cc86b7e9b78..f6af346b9a0 100644 --- a/packages/ui/lang/zh.json +++ b/packages/ui/lang/zh.json @@ -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 {# 天前}}", diff --git a/packages/ui/src/components/internal/LangSelector.svelte b/packages/ui/src/components/internal/LangSelector.svelte index a27c47cf8ba..f1bac2859e6 100644 --- a/packages/ui/src/components/internal/LangSelector.svelte +++ b/packages/ui/src/components/internal/LangSelector.svelte @@ -33,7 +33,8 @@ { id: 'zh', label: ui.string.Chinese, logo: '🇨🇳' }, { id: 'fr', label: ui.string.French, logo: '🇫🇷' }, { id: 'it', label: ui.string.Italian, logo: '🇮🇹' }, - { id: 'cs', label: ui.string.Czech, logo: '🇨🇿' } + { id: 'cs', label: ui.string.Czech, logo: '🇨🇿' }, + { id: 'de', label: ui.string.German, logo: '🇩🇪' } ].filter((lang) => uiLangs.has(lang.id)) if (langs.findIndex((l) => l.id === currentLanguage) < 0 && langs.length !== 0) { setLanguage(langs[0].id) diff --git a/packages/ui/src/plugin.ts b/packages/ui/src/plugin.ts index 96aa5968bba..295574e9b3e 100644 --- a/packages/ui/src/plugin.ts +++ b/packages/ui/src/plugin.ts @@ -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,