From d9e5008dd571b9c6d77c0e4ad04d263d52e484cd Mon Sep 17 00:00:00 2001 From: LauritsLL Date: Tue, 23 Feb 2021 08:29:42 +0100 Subject: [PATCH] Added Danish Translation --- app/client/public/locales/da/translation.json | 45 +++++++++++++++++++ app/client/src/config/i18n.ts | 2 +- app/configs/app.lang.config.ts | 3 +- app/configs/i18next.config.client.ts | 2 + app/locales/da/translation.json | 3 ++ app/locales/en/translation.json | 1 + app/locales/es/translation.json | 1 + app/locales/ru/translation.json | 1 + app/locales/ua/translation.json | 1 + app/locales/zh_CN/translation.json | 1 + app/locales/zh_TW/translation.json | 1 + 11 files changed, 59 insertions(+), 2 deletions(-) create mode 100644 app/client/public/locales/da/translation.json diff --git a/app/client/public/locales/da/translation.json b/app/client/public/locales/da/translation.json new file mode 100644 index 0000000..3c7c7f9 --- /dev/null +++ b/app/client/public/locales/da/translation.json @@ -0,0 +1,45 @@ +{ + "Waiting for user to click ALLOW button on screen sharing device...": "Venter på at brugeren klikker TILLAD knappen på skærmdelingsenheden...", + "Waiting for user to select source to share from screen sharing device...": "Venter på at brugeren vælger kilden, som skal deles fra skærmdelingsenheden...", + "My Device Info": "Min enhedsinfo", + "Device Type": "Enhedstype", + "Your Device IP should match with Device IP in alert popup appeared on your computer, where Deskreen is running": "Din Enheds IP burde matche sammen med den Enheds IP, som ses i advarselspopup'en vist på din computer, hvor Deskreen kører", + "Device IP": "Enhedens IP", + "Device Browser": "Enhedens Browser", + "Device OS": "Enhedens Operativsystem", + "These details should match with the ones that you see in alert popup on computer screen, where Deskreen is running": "Disse detaljer skal matche med dem, som du ser i advarselspopup'en på computerskærmen, hvor Deskreen kører", + "Deskreen Screen Viewer": "Deskreen Skærmviser", + "Connected!": "Forbundet!", + "Error occurred": "Der skete en fejl", + "Deskreen Error Dialog": "Deskreen Fejl Dialog", + "Something went wrong": "Noget gik galt", + "You may close this browser window then try to connect again": "Prøv at lukke dette browservindue og forbind igen", + "An unknown error occurred": "Der opstod en ukendt fejl", + "You were not allowed to connect": "Der blev ikke tilladt forbindelse", + "You were disconnected": "Du blev afbrudt", + "WebRTC error occurred": "Der opstod en WebRTC fejl", + "If you like Deskreen consider contributing financially Deskreen is open-source Your donations keep us motivated to make Deskreen even better": "Hvis du er vild med Deskreen, så overvej at bidrage til Deskreen financielt. Deskreen er open-source. Dine donationer hjælper os med at forblive motiverede for at gøre Deskreen endnu bedre.", + "Donate": "Donér", + "Video stream is paused": "Videostream er pauset", + "Video stream is playing": "Videostream kører", + "Pause": "Pause", + "Play": "Kør", + "Video Settings": "Videoindstillinger", + "Flip": "Vend", + "Video quality has been changed to": "Videokvaliteten er blevet ændret til", + "Click to Open Video Settings": "Klik her for at åbne Videoindstillinger", + "Click to Enter Full Screen Mode": "Klik her for at gå ind i fuldskærmstilstand", + "Default video player has been turned OFF": "Standard videospiller er blevet slået FRA", + "Default video player has been turned ON": "Standard videospiller er blevet slået TIL", + "ON": "TIL", + "OFF": "FRA", + "Default Video Player": "Standard Videospiller", + "Click to visit our website": "Klik jer for at besøge vores hjemmeside", + "Video is flipped horizontally": "Videoen er vendt horisontalt", + "TRANSLATIONS BELOW ARE NOT ADDED TO UI YET, BUT YOUR TRANSLATIONS ARE WELCOME! THE FEATURES WILL BE ADDED SOON SO YOUR TRANSLATIONS ARE NEEDED": "", + "Click to see connection info": "Klik jer for at se forbindelsesinfo", + "Pair ID": "Par ID", + "Unpair": "Annullér Pardannelse", + "Session ID": "Sessionsid", + "Click to boost video stream if it is lagging": "Klik her for at booste videostreamen, hvis det lagger" +} diff --git a/app/client/src/config/i18n.ts b/app/client/src/config/i18n.ts index e2db954..854686d 100644 --- a/app/client/src/config/i18n.ts +++ b/app/client/src/config/i18n.ts @@ -23,7 +23,7 @@ i18n saveMissingTo: 'all', fallbackLng: 'en', // TODO: to generate missing keys use false as value here, will be useful when custom nodejs server is created to store missing values debug: false, // change to true to see debug message logs in browser console - whitelist: ['en', 'es', 'ru', 'ua', 'zh_CN', 'zh_TW'], + whitelist: ['en', 'es', 'ru', 'ua', 'zh_CN', 'zh_TW', 'da'], backend: { // path where resources get loaded from diff --git a/app/configs/app.lang.config.ts b/app/configs/app.lang.config.ts index 8db6603..6d56677 100644 --- a/app/configs/app.lang.config.ts +++ b/app/configs/app.lang.config.ts @@ -3,7 +3,7 @@ export default { fallbackLng: 'en', namespace: 'translation', - languages: ['ru', 'en', 'es', 'ua', 'zh_CN', 'zh_TW'], + languages: ['ru', 'en', 'es', 'ua', 'zh_CN', 'zh_TW', 'da'], langISOKeyToLangFullNameMap: { en: 'English', es: 'Español', @@ -11,5 +11,6 @@ export default { ua: 'Українська', zh_CN: '简体中文', zh_TW: '繁體中文', + da: 'Dansk', }, }; diff --git a/app/configs/i18next.config.client.ts b/app/configs/i18next.config.client.ts index a0bf4aa..7d90fd5 100644 --- a/app/configs/i18next.config.client.ts +++ b/app/configs/i18next.config.client.ts @@ -16,6 +16,7 @@ import translationUA from '../locales/ua/translation.json'; import translationRU from '../locales/ru/translation.json'; import translationZH_CN from '../locales/zh_CN/translation.json'; import translationZH_TW from '../locales/zh_TW/translation.json'; +import translationDA from '../locales/da/translation.json'; export const getLangFullNameToLangISOKeyMap = (): Map => { const res = new Map(); @@ -55,6 +56,7 @@ export const getShuffledArrayOfHello = (): string[] => { res.push(translationRU.Hello); res.push(translationZH_CN.Hello); res.push(translationZH_TW.Hello); + res.push(translationDA.Hello); shuffleArray(res); diff --git a/app/locales/da/translation.json b/app/locales/da/translation.json index f189092..3e8b55b 100644 --- a/app/locales/da/translation.json +++ b/app/locales/da/translation.json @@ -4,8 +4,11 @@ "Language": "Sprog", "ru": "Русский", "en": "English", + "es": "Español", "ua": "Українська", "zh_CN": "简体中文", + "zh_TW": "繁體中文", + "da": "Dansk", "Donate": "Donér", "If you like Deskreen consider contributing financially Deskreen is open-source Your donations keep us motivated to make Deskreen even better": "Hvis du er vild med Deskreen, så overvej at bidrage til Deskreen financielt. Deskreen er open-source. Dine donationer hjælper os med at forblive motiverede for at gøre Deskreen endnu bedre.", "Click to visit our website": "Klik her for at besøge vores hjemmeside", diff --git a/app/locales/en/translation.json b/app/locales/en/translation.json index 46bd52a..1421f2e 100644 --- a/app/locales/en/translation.json +++ b/app/locales/en/translation.json @@ -8,6 +8,7 @@ "ua": "Українська", "zh_CN": "简体中文", "zh_TW": "繁體中文", + "da": "Dansk", "Donate": "Donate", "If you like Deskreen consider contributing financially Deskreen is open-source Your donations keep us motivated to make Deskreen even better": "If you like Deskreen, consider contributing financially. Deskreen is open-source. Your donations keep us motivated to make Deskreen even better.", "Click to visit our website": "Click to visit our website", diff --git a/app/locales/es/translation.json b/app/locales/es/translation.json index 7e96dff..71a261f 100644 --- a/app/locales/es/translation.json +++ b/app/locales/es/translation.json @@ -8,6 +8,7 @@ "ua": "Українська", "zh_CN": "简体中文", "zh_TW": "繁體中文", + "da": "Dansk", "Donate": "Donar", "If you like Deskreen consider contributing financially Deskreen is open-source Your donations keep us motivated to make Deskreen even better": "Si te gusta Deskreen, considera la posibilidad de contribuir económicamente. Deskreen es de código abierto. Tus donaciones nos mantienen motivados para hacer que Deskreen sea aún mejor.", "Click to visit our website": "Clic para visitar nuestro sitio web", diff --git a/app/locales/ru/translation.json b/app/locales/ru/translation.json index 65a4142..97a8fd1 100644 --- a/app/locales/ru/translation.json +++ b/app/locales/ru/translation.json @@ -8,6 +8,7 @@ "ua": "Українська", "zh_CN": "简体中文", "zh_TW": "繁體中文", + "da": "Dansk", "Donate": "Пожертвовать", "If you like Deskreen consider contributing financially Deskreen is open-source Your donations keep us motivated to make Deskreen even better": "Если вам нравится Deskreen, подумайте о том, чтобы внести финансовый вклад. Deskreen - это оупенсорсный проэкт. Ваши пожертвования позволяют нам делать Deskreen еще лучше.", "Click to visit our website": "Нажмите, чтобы посетить наш сайт", diff --git a/app/locales/ua/translation.json b/app/locales/ua/translation.json index c56369d..d2f4c68 100644 --- a/app/locales/ua/translation.json +++ b/app/locales/ua/translation.json @@ -8,6 +8,7 @@ "ua": "Українська", "zh_CN": "简体中文", "zh_TW": "繁體中文", + "da": "Dansk", "Donate": "Пожертвувати", "If you like Deskreen consider contributing financially Deskreen is open-source Your donations keep us motivated to make Deskreen even better": "Якщо вам подобається Deskreen, подумайте про те, щоб внести фінансовий внесок. Deskreen - це оупенсорсний проект. Ваші пожертвування дозволяють нам робити Deskreen ще краще.", "Click to visit our website": "Натисніть, щоб відвідати наш сайт", diff --git a/app/locales/zh_CN/translation.json b/app/locales/zh_CN/translation.json index aec3d1a..6fa194a 100644 --- a/app/locales/zh_CN/translation.json +++ b/app/locales/zh_CN/translation.json @@ -8,6 +8,7 @@ "ua": "Українська", "zh_CN": "简体中文", "zh_TW": "繁體中文", + "da": "Dansk", "Donate": "捐赠", "If you like Deskreen consider contributing financially Deskreen is open-source Your donations keep us motivated to make Deskreen even better": "如果你喜欢 Deskreen,可以考虑出钱。Deskreen 是开源的。您的捐赠使我们有动力让 Deskreen 变得更好。", "Click to visit our website": "点击访问我们的网站", diff --git a/app/locales/zh_TW/translation.json b/app/locales/zh_TW/translation.json index e8274c8..8db8f60 100644 --- a/app/locales/zh_TW/translation.json +++ b/app/locales/zh_TW/translation.json @@ -8,6 +8,7 @@ "ua": "Українська", "zh_CN": "简体中文", "zh_TW": "繁體中文", + "da": "Dansk", "Donate": "捐贈", "If you like Deskreen consider contributing financially Deskreen is open-source Your donations keep us motivated to make Deskreen even better": "如果你喜歡 Deskreen,可以考慮出錢。Deskreen 是開源的。您的捐贈使我們有動力讓 Deskreen 變得更好。", "Click to visit our website": "點選訪問我們的網站",