-
-
Notifications
You must be signed in to change notification settings - Fork 265
Expand file tree
/
Copy path.i18nrc.js
More file actions
25 lines (22 loc) · 643 Bytes
/
.i18nrc.js
File metadata and controls
25 lines (22 loc) · 643 Bytes
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
const { description } = require('./package.json');
const options = require('./locales/options.json');
const outputLocales = options.map((item) => item.value).filter((item) => item !== 'en_US');
module.exports = {
reference: description,
entry: 'locales/en_US.json',
entryLocale: 'en_US',
output: 'locales',
outputLocales: outputLocales,
modelName: 'gpt-3.5-turbo-0125',
experimental: {
jsonMode: true,
},
markdown: {
entry: ['./README.md'],
outputLocales: ['zh_CN'],
outputExtensions: (locale) => {
if (locale === 'en_US') return '.md';
return `.${locale.replace('_', '-')}.md`;
},
},
};