mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-27 10:49:44 +00:00
Add german translation (#7636)
Some checks are pending
CI / uitest-qms (push) Waiting to run
CI / build (push) Waiting to run
CI / svelte-check (push) Blocked by required conditions
CI / formatting (push) Blocked by required conditions
CI / test (push) Blocked by required conditions
CI / uitest (push) Waiting to run
CI / uitest-pg (push) Waiting to run
CI / docker-build (push) Blocked by required conditions
CI / dist-build (push) Blocked by required conditions
Some checks are pending
CI / uitest-qms (push) Waiting to run
CI / build (push) Waiting to run
CI / svelte-check (push) Blocked by required conditions
CI / formatting (push) Blocked by required conditions
CI / test (push) Blocked by required conditions
CI / uitest (push) Waiting to run
CI / uitest-pg (push) Waiting to run
CI / docker-build (push) Blocked by required conditions
CI / dist-build (push) Blocked by required conditions
Signed-off-by: Alexander Onnikov <Alexander.Onnikov@xored.com>
This commit is contained in:
parent
01677b2039
commit
59141b9096
@ -248,7 +248,7 @@ export async function configurePlatform (): Promise<void> {
|
|||||||
setMetadata(aiBot.metadata.EndpointURL, config.AI_URL)
|
setMetadata(aiBot.metadata.EndpointURL, config.AI_URL)
|
||||||
setMetadata(presence.metadata.PresenceUrl, config.PRESENCE_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)
|
setMetadata(uiPlugin.metadata.Languages, languages)
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"localhost:8080": {
|
"localhost:8080": {
|
||||||
"title": "Huly",
|
"title": "Huly",
|
||||||
"languages": "en,ru,pt,es,zh,fr",
|
"languages": "en,ru,pt,es,zh,fr,de",
|
||||||
"defaultLanguage": "en",
|
"defaultLanguage": "en",
|
||||||
"defaultApplication": "tracker",
|
"defaultApplication": "tracker",
|
||||||
"defaultSpace": "tracker:project:DefaultProject",
|
"defaultSpace": "tracker:project:DefaultProject",
|
||||||
@ -30,7 +30,7 @@
|
|||||||
},
|
},
|
||||||
"localhost:8087": {
|
"localhost:8087": {
|
||||||
"title": "Huly",
|
"title": "Huly",
|
||||||
"languages": "en,ru,pt,es,zh,fr",
|
"languages": "en,ru,pt,es,zh,fr,de",
|
||||||
"defaultLanguage": "en",
|
"defaultLanguage": "en",
|
||||||
"defaultApplication": "tracker",
|
"defaultApplication": "tracker",
|
||||||
"defaultSpace": "tracker:project:DefaultProject",
|
"defaultSpace": "tracker:project:DefaultProject",
|
||||||
|
@ -346,7 +346,7 @@ export async function configurePlatform() {
|
|||||||
setMetadata(sign.metadata.SignURL, config.SIGN_URL)
|
setMetadata(sign.metadata.SignURL, config.SIGN_URL)
|
||||||
setMetadata(presence.metadata.PresenceUrl, config.PRESENCE_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)
|
setMetadata(uiPlugin.metadata.Languages, languages)
|
||||||
|
|
||||||
|
@ -54,6 +54,7 @@
|
|||||||
"French": "Français",
|
"French": "Français",
|
||||||
"Italian": "Italiano",
|
"Italian": "Italiano",
|
||||||
"Czech": "Čeština",
|
"Czech": "Čeština",
|
||||||
|
"German": "Deutsch",
|
||||||
"MinutesBefore": "{minutes, plural, =1 {1 minuta před} other {# minut před}}",
|
"MinutesBefore": "{minutes, plural, =1 {1 minuta před} other {# minut před}}",
|
||||||
"HoursBefore": "{hours, plural, =1 {1 hodina před} other {# hodin 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}}",
|
"DaysBefore": "{days, plural, =1 {1 den před} other {# dní před}}",
|
||||||
|
@ -54,6 +54,7 @@
|
|||||||
"French": "Français",
|
"French": "Français",
|
||||||
"Italian": "Italiano",
|
"Italian": "Italiano",
|
||||||
"Czech": "Čeština",
|
"Czech": "Čeština",
|
||||||
|
"German": "Deutsch",
|
||||||
"MinutesBefore": "{minutes, plural, =1 {a minute before} other {# minutes before}}",
|
"MinutesBefore": "{minutes, plural, =1 {a minute before} other {# minutes before}}",
|
||||||
"HoursBefore": "{hours, plural, =1 {an hour before} other {# hours before}}",
|
"HoursBefore": "{hours, plural, =1 {an hour before} other {# hours before}}",
|
||||||
"DaysBefore": "{days, plural, =1 {a day before} other {# days before}}",
|
"DaysBefore": "{days, plural, =1 {a day before} other {# days before}}",
|
||||||
|
@ -54,6 +54,7 @@
|
|||||||
"French": "Français",
|
"French": "Français",
|
||||||
"Italian": "Italiano",
|
"Italian": "Italiano",
|
||||||
"Czech": "Čeština",
|
"Czech": "Čeština",
|
||||||
|
"German": "Deutsch",
|
||||||
"MinutesBefore": "{minutes, plural, =1 {un minuto antes} other {# minutos antes}}",
|
"MinutesBefore": "{minutes, plural, =1 {un minuto antes} other {# minutos antes}}",
|
||||||
"HoursBefore": "{hours, plural, =1 {una hora antes} other {# horas antes}}",
|
"HoursBefore": "{hours, plural, =1 {una hora antes} other {# horas antes}}",
|
||||||
"DaysBefore": "{days, plural, =1 {un día antes} other {# días antes}}",
|
"DaysBefore": "{days, plural, =1 {un día antes} other {# días antes}}",
|
||||||
|
@ -54,6 +54,7 @@
|
|||||||
"French": "Français",
|
"French": "Français",
|
||||||
"Italian": "Italiano",
|
"Italian": "Italiano",
|
||||||
"Czech": "Čeština",
|
"Czech": "Čeština",
|
||||||
|
"German": "Deutsch",
|
||||||
"MinutesBefore": "{minutes, plural, =1 {une minute avant} other {# minutes avant}}",
|
"MinutesBefore": "{minutes, plural, =1 {une minute avant} other {# minutes avant}}",
|
||||||
"HoursBefore": "{hours, plural, =1 {une heure avant} other {# heures avant}}",
|
"HoursBefore": "{hours, plural, =1 {une heure avant} other {# heures avant}}",
|
||||||
"DaysBefore": "{days, plural, =1 {un jour avant} other {# jours avant}}",
|
"DaysBefore": "{days, plural, =1 {un jour avant} other {# jours avant}}",
|
||||||
|
@ -54,6 +54,7 @@
|
|||||||
"French": "Français",
|
"French": "Français",
|
||||||
"Italian": "Italiano",
|
"Italian": "Italiano",
|
||||||
"Czech": "Čeština",
|
"Czech": "Čeština",
|
||||||
|
"German": "Deutsch",
|
||||||
"MinutesBefore": "{minutes, plural, =1 {un minuto prima} other {# minuti prima}}",
|
"MinutesBefore": "{minutes, plural, =1 {un minuto prima} other {# minuti prima}}",
|
||||||
"HoursBefore": "{hours, plural, =1 {un'ora prima} other {# ore prima}}",
|
"HoursBefore": "{hours, plural, =1 {un'ora prima} other {# ore prima}}",
|
||||||
"DaysBefore": "{days, plural, =1 {un giorno prima} other {# giorni prima}}",
|
"DaysBefore": "{days, plural, =1 {un giorno prima} other {# giorni prima}}",
|
||||||
|
@ -54,6 +54,7 @@
|
|||||||
"French": "Français",
|
"French": "Français",
|
||||||
"Italian": "Italiano",
|
"Italian": "Italiano",
|
||||||
"Czech": "Čeština",
|
"Czech": "Čeština",
|
||||||
|
"German": "Deutsch",
|
||||||
"MinutesBefore": "{minutes, plural, =1 {um minuto antes} other {# minutos antes}}",
|
"MinutesBefore": "{minutes, plural, =1 {um minuto antes} other {# minutos antes}}",
|
||||||
"HoursBefore": "{hours, plural, =1 {uma hora antes} other {# horas antes}}",
|
"HoursBefore": "{hours, plural, =1 {uma hora antes} other {# horas antes}}",
|
||||||
"DaysBefore": "{days, plural, =1 {um dia antes} other {# dias antes}}",
|
"DaysBefore": "{days, plural, =1 {um dia antes} other {# dias antes}}",
|
||||||
|
@ -54,6 +54,7 @@
|
|||||||
"French": "Français",
|
"French": "Français",
|
||||||
"Italian": "Italiano",
|
"Italian": "Italiano",
|
||||||
"Czech": "Čeština",
|
"Czech": "Čeština",
|
||||||
|
"German": "Deutsch",
|
||||||
"MinutesBefore": "{minutes, plural, =1 {за минуту} one {за # минуту} few {за # минуты} other {за # минут}}",
|
"MinutesBefore": "{minutes, plural, =1 {за минуту} one {за # минуту} few {за # минуты} other {за # минут}}",
|
||||||
"HoursBefore": "{hours, plural, =1 {за час} one {за # час} few {за # часа} other {за # часов}}",
|
"HoursBefore": "{hours, plural, =1 {за час} one {за # час} few {за # часа} other {за # часов}}",
|
||||||
"DaysBefore": "{days, plural, =1 {за день} one {за # день} few {за # дня} other {за # дней}}",
|
"DaysBefore": "{days, plural, =1 {за день} one {за # день} few {за # дня} other {за # дней}}",
|
||||||
|
@ -54,6 +54,7 @@
|
|||||||
"French": "Français",
|
"French": "Français",
|
||||||
"Italian": "Italiano",
|
"Italian": "Italiano",
|
||||||
"Czech": "Čeština",
|
"Czech": "Čeština",
|
||||||
|
"German": "Deutsch",
|
||||||
"MinutesBefore": "{minutes, plural, =1 {一分钟前} other {# 分钟前}}",
|
"MinutesBefore": "{minutes, plural, =1 {一分钟前} other {# 分钟前}}",
|
||||||
"HoursBefore": "{hours, plural, =1 {一小时前} other {# 小时前}}",
|
"HoursBefore": "{hours, plural, =1 {一小时前} other {# 小时前}}",
|
||||||
"DaysBefore": "{days, plural, =1 {一天前} other {# 天前}}",
|
"DaysBefore": "{days, plural, =1 {一天前} other {# 天前}}",
|
||||||
|
@ -33,7 +33,8 @@
|
|||||||
{ id: 'zh', label: ui.string.Chinese, logo: '🇨🇳' },
|
{ id: 'zh', label: ui.string.Chinese, logo: '🇨🇳' },
|
||||||
{ id: 'fr', label: ui.string.French, logo: '🇫🇷' },
|
{ id: 'fr', label: ui.string.French, logo: '🇫🇷' },
|
||||||
{ id: 'it', label: ui.string.Italian, 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))
|
].filter((lang) => uiLangs.has(lang.id))
|
||||||
if (langs.findIndex((l) => l.id === currentLanguage) < 0 && langs.length !== 0) {
|
if (langs.findIndex((l) => l.id === currentLanguage) < 0 && langs.length !== 0) {
|
||||||
setLanguage(langs[0].id)
|
setLanguage(langs[0].id)
|
||||||
|
@ -75,6 +75,7 @@ export const uis = plugin(uiId, {
|
|||||||
French: '' as IntlString,
|
French: '' as IntlString,
|
||||||
Italian: '' as IntlString,
|
Italian: '' as IntlString,
|
||||||
Czech: '' as IntlString,
|
Czech: '' as IntlString,
|
||||||
|
German: '' as IntlString,
|
||||||
MinutesBefore: '' as IntlString,
|
MinutesBefore: '' as IntlString,
|
||||||
HoursBefore: '' as IntlString,
|
HoursBefore: '' as IntlString,
|
||||||
DaysBefore: '' as IntlString,
|
DaysBefore: '' as IntlString,
|
||||||
|
Loading…
Reference in New Issue
Block a user