Skip to content

Commit a9c9de2

Browse files
committed
Convert i18next-parser configuration to TypeScript.
Signed-off-by: Anders Kaseorg <[email protected]>
1 parent 9b62695 commit a9c9de2

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

i18next-parser.config.js renamed to i18next-parser.config.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1-
const config = {
1+
import type {UserConfig} from "i18next-parser";
2+
3+
const config: UserConfig = {
24
createOldCatalogs: false,
35
defaultValue: (locale, namespace, key, value) =>
4-
locale === "en" ? key : value,
5-
indentation: "\t",
6+
locale === "en" ? key! : value!,
7+
indentation: "\t" as unknown as number,
68
input: ["app/**/*.ts"],
79
keySeparator: false,
810
lexers: {

0 commit comments

Comments
 (0)