Skip to content

Commit 5eccd49

Browse files
committed
Switch i18next-parser to i18next-cli.
Signed-off-by: Anders Kaseorg <[email protected]>
1 parent c08bbf4 commit 5eccd49

File tree

5 files changed

+1195
-1678
lines changed

5 files changed

+1195
-1678
lines changed

i18next-parser.config.ts

Lines changed: 0 additions & 18 deletions
This file was deleted.

i18next.config.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import {defineConfig} from "i18next-cli";
2+
3+
export default defineConfig({
4+
locales: ["en"],
5+
extract: {
6+
input: ["app/**/*.ts"],
7+
output: "public/translations/{{language}}.json",
8+
functions: ["t.__", "t.__mf"],
9+
keySeparator: false,
10+
nsSeparator: false,
11+
sort: (a, b) => (a.key < b.key ? -1 : a.key > b.key ? 1 : 0),
12+
indentation: "\t",
13+
},
14+
});

0 commit comments

Comments
 (0)