-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy path.i18nrc.js
More file actions
52 lines (50 loc) · 1.08 KB
/
.i18nrc.js
File metadata and controls
52 lines (50 loc) · 1.08 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
const { defineConfig } = require('@lobehub/i18n-cli');
const outputLocales = [
'cs-CZ',
'de-DE',
'en-US',
'es-ES',
'es-MX',
'fa-IR',
'fi-FI',
'fr-FR',
'hi-IN',
'hu-HU',
'ja-JP',
'ko-KR',
'no-NO',
'pl-PL',
'pt-BR',
'ro-RO',
'ru-RU',
'th-TH',
'tr-TR',
'uk-UA',
'vi-VN',
'zh-CN',
'zh-HK',
];
module.exports = defineConfig({
modelName: 'gpt-4o-mini',
outputLocales: outputLocales,
markdown: {
// entry: ['./pages/zh-CN/**/*.mdx', './pages/zh-CN/**/*.ts'],
entry: ['./pages/zh-CN/docs/quick/*.mdx'],
exclude: [
'./pages/zh-CN/docs/quick/zeabur.mdx',
'./pages/zh-CN/docs/quick/_meta.ts',
'./pages/zh-CN/docs/quick/docker.*.ts',
// './pages/zh-CN/_meta.ts',
// './pages/zh-CN/changelog',
],
entryLocale: 'zh-CN',
outputExtensions: (locale, config) => {
if (locale === 'zh-CN') {
return config.filePath.endsWith('.ts') ? '.ts' : '.mdx';
}
return config.filePath.endsWith('.ts') ? `.${locale}.ts` : `.${locale}.mdx`;
},
translateCode: true,
includeMatter: true,
},
});