Files
lobe-chat/.i18nrc.js
T
canisminor1990 f44b41e05c 🐛 fix: Fix locale typo
2023-12-13 18:30:09 +08:00

23 lines
564 B
JavaScript

const { defineConfig } = require('@lobehub/i18n-cli');
module.exports = defineConfig({
entry: 'locales/zh_CN',
entryLocale: 'zh_CN',
output: 'locales',
outputLocales: ['zh_TW', 'en_US', 'ru_RU', 'ja_JP', 'ko_KR', 'fr_FR'],
temperature: 0,
modelName: 'gpt-3.5-turbo-1106',
splitToken: 1024,
experimental: {
jsonMode: true,
},
markdown: {
entry: ['./README.md'],
outputLocales: ['zh_CN'],
outputExtensions: (locale) => {
if (locale === 'en_US') return '.md';
return `.${locale.replace('_', '-')}.md`;
},
},
});