diff --git a/packages/desktop-electron/src/renderer/i18n/index.ts b/packages/desktop-electron/src/renderer/i18n/index.ts index cdc0483035..2a7a7b188e 100644 --- a/packages/desktop-electron/src/renderer/i18n/index.ts +++ b/packages/desktop-electron/src/renderer/i18n/index.ts @@ -15,6 +15,7 @@ import { dict as desktopAr } from "./ar" import { dict as desktopNo } from "./no" import { dict as desktopBr } from "./br" import { dict as desktopBs } from "./bs" +import { dict as desktopNl } from "./nl" import { dict as appEn } from "../../../../app/src/i18n/en" import { dict as appZh } from "../../../../app/src/i18n/zh" @@ -31,6 +32,7 @@ import { dict as appAr } from "../../../../app/src/i18n/ar" import { dict as appNo } from "../../../../app/src/i18n/no" import { dict as appBr } from "../../../../app/src/i18n/br" import { dict as appBs } from "../../../../app/src/i18n/bs" +import { dict as appNl } from "../../../../app/src/i18n/nl" export type Locale = | "en" @@ -48,6 +50,7 @@ export type Locale = | "no" | "br" | "bs" + | "nl" type RawDictionary = typeof appEn & typeof desktopEn type Dictionary = i18n.Flatten @@ -99,6 +102,7 @@ function detectLocale(): Locale { return "no" if (language.toLowerCase().startsWith("pt")) return "br" if (language.toLowerCase().startsWith("bs")) return "bs" + if (language.toLowerCase().startsWith("nl")) return "nl" } return "en" @@ -153,6 +157,7 @@ function build(locale: Locale): Dictionary { if (locale === "no") return { ...base, ...i18n.flatten(appNo), ...i18n.flatten(desktopNo) } if (locale === "br") return { ...base, ...i18n.flatten(appBr), ...i18n.flatten(desktopBr) } if (locale === "bs") return { ...base, ...i18n.flatten(appBs), ...i18n.flatten(desktopBs) } + if (locale === "nl") return { ...base, ...i18n.flatten(appNl), ...i18n.flatten(desktopNl) } return { ...base, ...i18n.flatten(appKo), ...i18n.flatten(desktopKo) } } diff --git a/packages/desktop/src/i18n/index.ts b/packages/desktop/src/i18n/index.ts index 3bc14d7f31..13d9cf0099 100644 --- a/packages/desktop/src/i18n/index.ts +++ b/packages/desktop/src/i18n/index.ts @@ -16,6 +16,7 @@ import { dict as desktopAr } from "./ar" import { dict as desktopNo } from "./no" import { dict as desktopBr } from "./br" import { dict as desktopBs } from "./bs" +import { dict as desktopNl } from "./nl" import { dict as appEn } from "../../../app/src/i18n/en" import { dict as appZh } from "../../../app/src/i18n/zh" @@ -32,6 +33,7 @@ import { dict as appAr } from "../../../app/src/i18n/ar" import { dict as appNo } from "../../../app/src/i18n/no" import { dict as appBr } from "../../../app/src/i18n/br" import { dict as appBs } from "../../../app/src/i18n/bs" +import { dict as appNl } from "../../../app/src/i18n/nl" export type Locale = | "en" @@ -49,6 +51,7 @@ export type Locale = | "no" | "br" | "bs" + | "nl" type RawDictionary = typeof appEn & typeof desktopEn type Dictionary = i18n.Flatten @@ -100,6 +103,7 @@ function detectLocale(): Locale { return "no" if (language.toLowerCase().startsWith("pt")) return "br" if (language.toLowerCase().startsWith("bs")) return "bs" + if (language.toLowerCase().startsWith("nl")) return "nl" } return "en" @@ -154,6 +158,7 @@ function build(locale: Locale): Dictionary { if (locale === "no") return { ...base, ...i18n.flatten(appNo), ...i18n.flatten(desktopNo) } if (locale === "br") return { ...base, ...i18n.flatten(appBr), ...i18n.flatten(desktopBr) } if (locale === "bs") return { ...base, ...i18n.flatten(appBs), ...i18n.flatten(desktopBs) } + if (locale === "nl") return { ...base, ...i18n.flatten(appNl), ...i18n.flatten(desktopNl) } return { ...base, ...i18n.flatten(appKo), ...i18n.flatten(desktopKo) } }