From 345dd4583ddbe2f853ed1f5f1244b910471eac3e Mon Sep 17 00:00:00 2001 From: Mawoka Date: Tue, 18 Apr 2023 18:39:20 +0200 Subject: [PATCH] :globe_with_meridians: Integrated Dutch --- frontend/src/lib/i18n/i18n-service.ts | 2 ++ frontend/src/lib/language-toggle.svelte | 5 +++++ frontend/src/routes/docs/attribution/+page.svelte | 9 +++++++++ 3 files changed, 16 insertions(+) diff --git a/frontend/src/lib/i18n/i18n-service.ts b/frontend/src/lib/i18n/i18n-service.ts index 8fa249e..3a5294b 100644 --- a/frontend/src/lib/i18n/i18n-service.ts +++ b/frontend/src/lib/i18n/i18n-service.ts @@ -19,6 +19,7 @@ import zh_Hant from './locales/zh_Hant.json'; import pl from './locales/pl.json'; import pt from './locales/pt.json'; import uk from './locales/uk.json'; +import nl from './locales/nl.json'; // import uz from './locales/uz.json' // import zh_Hans from './locales/zh_Hans.json'; import LanguageDetector from 'i18next-browser-languagedetector'; @@ -79,6 +80,7 @@ export class I18nService { this.i18n.addResourceBundle('pl', 'translation', pl); this.i18n.addResourceBundle('pt', 'translation', pt); this.i18n.addResourceBundle('uk', 'translation', uk); + this.i18n.addResourceBundle('nl', 'translation', nl); // this.i18n.addResourceBundle('uz', 'translation', uz); } diff --git a/frontend/src/lib/language-toggle.svelte b/frontend/src/lib/language-toggle.svelte index 13d3a3e..67cf8ee 100644 --- a/frontend/src/lib/language-toggle.svelte +++ b/frontend/src/lib/language-toggle.svelte @@ -117,6 +117,11 @@ code: 'uk', name: 'Українська', flag: '🇺🇦' + }, + { + code: 'nl', + name: 'Nederlands', + flag: '🇳🇱' } ]; const get_selected_language = (): string => { diff --git a/frontend/src/routes/docs/attribution/+page.svelte b/frontend/src/routes/docs/attribution/+page.svelte index 89370f5..de23751 100644 --- a/frontend/src/routes/docs/attribution/+page.svelte +++ b/frontend/src/routes/docs/attribution/+page.svelte @@ -50,6 +50,15 @@
  • RicoLaaa (Spanish)
  • +
  • + Waldemar Stoczkowski (Polish) +
  • +
  • + OptimisticSean (Chinese) +
  • +
  • + Miniontoby (Dutch) +
  • ...Maybe you?