diff --git a/src/plugins/i18n.ts b/src/plugins/i18n.ts index ec3fe93c765..1b4ae2d7ebb 100644 --- a/src/plugins/i18n.ts +++ b/src/plugins/i18n.ts @@ -4,6 +4,7 @@ import processor, { KoreanPostpositionProcessor } from "i18next-korean-postposit import { caEsConfig} from "#app/locales/ca_ES/config"; import { deConfig } from "#app/locales/de/config"; +import { dkConfig } from "#app/locales/he/config"; import { enConfig } from "#app/locales/en/config"; import { esConfig } from "#app/locales/es/config"; import { frConfig } from "#app/locales/fr/config"; @@ -55,12 +56,12 @@ const fonts: Array = [ { face: new FontFace("emerald", "url(./fonts/unifont-15.1.05.subset.woff2)", { unicodeRange: rangesByLanguage.chinese }), extraOptions: { sizeAdjust: "70%", format: "woff2" }, - only: [ "en", "es", "fr", "it", "de", "zh", "pt", "ko", "ca" ], + only: [ "en", "es", "fr", "it", "de", "zh", "pt", "ko", "ca", "dk" ], }, { face: new FontFace("pkmnems", "url(./fonts/unifont-15.1.05.subset.woff2)", { unicodeRange: rangesByLanguage.chinese }), extraOptions: { format: "woff2" }, - only: [ "en", "es", "fr", "it", "de", "zh", "pt", "ko", "ca" ], + only: [ "en", "es", "fr", "it", "de", "zh", "pt", "ko", "ca", "dk" ], }, // japanese { @@ -119,7 +120,7 @@ export async function initI18n(): Promise { await i18next.init({ nonExplicitSupportedLngs: true, fallbackLng: "en", - supportedLngs: ["en", "es", "fr", "it", "de", "zh", "pt", "ko", "ja", "ca"], + supportedLngs: ["en", "es", "fr", "it", "de", "zh", "pt", "ko", "ja", "ca", "dk"], defaultNS: "menu", ns: Object.keys(enConfig), detection: { @@ -162,6 +163,9 @@ export async function initI18n(): Promise { }, "ca-ES": { ...caEsConfig + }, + "dk": { + ...dkConfig } }, postProcess: ["korean-postposition"],