From a9c9de2dee7def33ddbb044e285c114a84182e48 Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Wed, 6 Aug 2025 12:49:08 -0700 Subject: [PATCH] Convert i18next-parser configuration to TypeScript. Signed-off-by: Anders Kaseorg --- i18next-parser.config.js => i18next-parser.config.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) rename i18next-parser.config.js => i18next-parser.config.ts (70%) diff --git a/i18next-parser.config.js b/i18next-parser.config.ts similarity index 70% rename from i18next-parser.config.js rename to i18next-parser.config.ts index 59a168db..0c0821cb 100644 --- a/i18next-parser.config.js +++ b/i18next-parser.config.ts @@ -1,8 +1,10 @@ -const config = { +import type {UserConfig} from "i18next-parser"; + +const config: UserConfig = { createOldCatalogs: false, defaultValue: (locale, namespace, key, value) => - locale === "en" ? key : value, - indentation: "\t", + locale === "en" ? key! : value!, + indentation: "\t" as unknown as number, input: ["app/**/*.ts"], keySeparator: false, lexers: {