mirror of
https://github.com/lobehub/lobehub.git
synced 2026-03-26 13:19:34 +07:00
✨ feat: Add new import statement and update module.exports in .i18nrc.js
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.
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
const { description } = require('./package.json');
|
||||
const { defineConfig } = require('@lobehub/i18n-cli');
|
||||
|
||||
module.exports = {
|
||||
module.exports = defineConfig({
|
||||
reference: description,
|
||||
entry: 'public/locales/zh_CN',
|
||||
entryLocale: 'zh_CN',
|
||||
@@ -9,4 +10,4 @@ module.exports = {
|
||||
splitToken: 2500,
|
||||
temperature: 0,
|
||||
modelName: 'gpt-3.5-turbo',
|
||||
};
|
||||
});
|
||||
|
||||
10
package.json
10
package.json
@@ -123,5 +123,15 @@
|
||||
"stylelint": "^15",
|
||||
"typescript": "^5",
|
||||
"vitest": "latest"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"antd": ">=5",
|
||||
"antd-style": ">=3",
|
||||
"react": ">=18",
|
||||
"react-dom": ">=18"
|
||||
},
|
||||
"publishConfig": {
|
||||
"access": "public",
|
||||
"registry": "https://registry.npmjs.org"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user