Files
lobe-chat/.i18nrc.js
T
Cong Le c2e560644b 🌐 style: Add Vietnamese files and add the vi-VN option in the General Settings (#860)
* 🔨 chore: Add vi-VN locale to language setting option

* 🔨 chore: Add all Vietnamese files for the UI

*  feat: add SpeedInsights and change local port to 4010

* 🔨 chore: remove SpeedInsight and revert local port number

* 🔨 chore: remove Vercel SpeedInsights package

* 🔨 chore: Update the vi-VN folder using i18nrc.js and add the missing string "downloading"
2024-01-03 17:00:57 +08:00

40 lines
805 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',
'tr-TR',
'es-ES',
'pt-BR',
'de-DE',
'it-IT',
'nl-NL',
'pl-PL',
'vi-VN',
],
temperature: 0,
modelName: 'gpt-3.5-turbo-1106',
splitToken: 1024,
experimental: {
jsonMode: true,
},
markdown: {
entry: ['./README.zh-CN.md', './docs/**/*.zh-CN.md'],
entryLocale: 'zh-CN',
entryExtension: '.zh-CN.md',
outputLocales: ['en-US'],
outputExtensions: (locale, { getDefaultExtension }) => {
if (locale === 'en-US') return '.md';
return getDefaultExtension(locale);
},
},
});