Skip to content

Commit

Permalink
✨ feat: Add new import statement and update module.exports in .i18nrc.js
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
canisminor1990 committed Jul 15, 2023
1 parent 53cd87c commit 32e0255
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .i18nrc.js
Original file line number Diff line number Diff line change
@@ -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',
Expand All @@ -9,4 +10,4 @@ module.exports = {
splitToken: 2500,
temperature: 0,
modelName: 'gpt-3.5-turbo',
};
});
10 changes: 10 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}

0 comments on commit 32e0255

Please sign in to comment.