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:
canisminor1990
2023-07-15 19:22:16 +08:00
parent 53cd87c8ba
commit 32e0255387
2 changed files with 13 additions and 2 deletions

View File

@@ -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',
};
});

View File

@@ -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"
}
}