mirror of
https://github.com/lobehub/lobehub.git
synced 2026-03-27 13:29:15 +07:00
The import statement for "@lobehub/i18n-cli" is added in ".i18nrc.js" to enable its usage. Additionally, the module.exports is updated to use the defineConfig function for better configuration management. feat: Add new peerDependencies and publishConfig fields in package.json New peerDependencies and publishConfig fields are added in "package.json" to specify the required dependencies and publishing configuration respectively. This ensures proper functioning and compatibility of the project.
14 lines
377 B
JavaScript
14 lines
377 B
JavaScript
const { description } = require('./package.json');
|
|
const { defineConfig } = require('@lobehub/i18n-cli');
|
|
|
|
module.exports = defineConfig({
|
|
reference: description,
|
|
entry: 'public/locales/zh_CN',
|
|
entryLocale: 'zh_CN',
|
|
output: 'public/locales',
|
|
outputLocales: ['zh_HK', 'en_US', 'ja_JP', 'ko_KR'],
|
|
splitToken: 2500,
|
|
temperature: 0,
|
|
modelName: 'gpt-3.5-turbo',
|
|
});
|