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: {