chore deps: upgrade lingui to v5

This commit is contained in:
baorong
2026-02-18 15:53:34 +08:00
parent 83f2cc1344
commit 741b04f120
2 changed files with 7 additions and 9 deletions
+4 -4
View File
@@ -5,7 +5,7 @@
"description": "An admin dashboard application demo built upon Ant Design and UmiJS",
"dependencies": {
"@ant-design/icons": "^4.8.3",
"@lingui/react": "^4.14.1",
"@lingui/react": "^5.0.0",
"@rc-component/picker": "^1.9.0",
"antd": "^6.0.0",
"axios": "^0.21.4",
@@ -45,11 +45,11 @@
"devDependencies": {
"@babel/core": "^7.29.0",
"@babel/preset-react": "^7.24.1",
"@lingui/cli": "^4.14.1",
"@lingui/core": "^4.14.1",
"@lingui/cli": "^5.0.0",
"@lingui/core": "^5.0.0",
"@lingui/format-json": "^5.9.1",
"@lingui/macro": "^4.14.1",
"@umijs/preset-react": "^1.8.32",
"@lingui/macro": "^5.0.0",
"babel-eslint": "^10.1.0",
"babel-plugin-dev-expression": "^0.2.3",
"babel-plugin-import": "^1.13.8",
+3 -5
View File
@@ -57,11 +57,9 @@ class Login extends PureComponent {
placeholder={t`Username`}
/>
</FormItem>
<Trans id="Password" render={({translation}) => (
<FormItem name="password" rules={[{ required: true }]} hasFeedback>
<Input type='password' placeholder={translation} required />
</FormItem>)}
/>
<FormItem name="password" rules={[{ required: true }]} hasFeedback>
<Input type='password' placeholder={t`Password`} required />
</FormItem>
<Row>
<Button
type="primary"