-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathi18next.config.ts
More file actions
33 lines (32 loc) · 1.03 KB
/
i18next.config.ts
File metadata and controls
33 lines (32 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import { defineConfig } from "i18next-cli";
export default defineConfig({
locales: ["zh-CN", "zh-TW", "en-US", "ja-JP"],
extract: {
input: "src/**/*.{ts,tsx}",
output: "src/locales/{{language}}.json",
keySeparator: ".", // 用的是点号连接嵌套
nsSeparator: false,
defaultNS: false,
defaultValue: "__MISSING__",
removeUnusedKeys: true,
preservePatterns: [
"category.playStatus.*",
"app.NAVIGATION.gameLibrary",
"app.NAVIGATION.collection",
"components.AlertBox.bgmData",
"components.AlertBox.kunData",
"components.AlertBox.vndbData",
"components.AlertBox.ymgalData",
"components.FilterSortModal.allGames",
"components.FilterSortModal.localGames",
"components.FilterSortModal.onlineGames",
"components.FilterSortModal.customGames",
"components.FilterSortModal.addTime",
"components.FilterSortModal.nameSort",
"components.FilterSortModal.releaseTime",
"components.FilterSortModal.lastPlayed",
"components.FilterSortModal.bgmRank",
"components.FilterSortModal.vndbRank",
],
},
});