fix: add nl to desktop i18n index files

This commit is contained in:
Thomas Brugman
2026-03-22 16:40:13 +01:00
parent ad0fa2b4bd
commit b8bb0e50af
2 changed files with 10 additions and 0 deletions
@@ -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<RawDictionary>
@@ -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) }
}
+5
View File
@@ -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<RawDictionary>
@@ -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) }
}