From ab4e970134bc5de2fd70def2f8dba439d062f85f Mon Sep 17 00:00:00 2001 From: tanzhaoying <1771049600@qq.com> Date: Thu, 22 May 2025 17:01:14 +0800 Subject: [PATCH] =?UTF-8?q?feat(i18n):=20=E6=96=B0=E5=A2=9E=E8=AF=AD?= =?UTF-8?q?=E8=A8=80=E5=8C=85=EF=BC=9A=E5=8D=B0=E5=9C=B0=E8=AF=AD=EF=BC=88?= =?UTF-8?q?=E5=8D=B0=E5=BA=A6=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .vscode/settings.json | 2 +- docs/guide/i18n.en.md | 1 + docs/guide/i18n.zh.md | 1 + .../config-provider.test.tsx.snap | 9402 ++++++++++++++++- .../tests/config-provider.test.tsx | 2 + src/locales/hi-IN.ts | 152 + 6 files changed, 9495 insertions(+), 65 deletions(-) create mode 100644 src/locales/hi-IN.ts diff --git a/.vscode/settings.json b/.vscode/settings.json index ad2af43c14..bd42857181 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -24,7 +24,7 @@ "editor.defaultFormatter": "esbenp.prettier-vscode" }, "[typescriptreact]": { - "editor.defaultFormatter": "esbenp.prettier-vscode" + "editor.defaultFormatter": "vscode.typescript-language-features" }, "[vue]": { "editor.defaultFormatter": "esbenp.prettier-vscode" diff --git a/docs/guide/i18n.en.md b/docs/guide/i18n.en.md index 2f5ef71f23..1acf19ef12 100644 --- a/docs/guide/i18n.en.md +++ b/docs/guide/i18n.en.md @@ -47,6 +47,7 @@ The following languages are currently supported: | Serbian | hr-HR | | Croatian | sr-RS | | Montenegrin | cnr-ME | +| Hindi (India) | hi-IN | See more usage at [ConfigProvider](../components/config-provider). diff --git a/docs/guide/i18n.zh.md b/docs/guide/i18n.zh.md index 59fb5910d0..e9422707e2 100644 --- a/docs/guide/i18n.zh.md +++ b/docs/guide/i18n.zh.md @@ -46,6 +46,7 @@ return ( | 克罗地亚语 | hr-HR | | 塞尔维亚语 | sr-RS | | 黑山语 | cnr-ME | +| 印地语(印度) | hi-IN | 具体的使用方法请参考 [ConfigProvider](../components/config-provider) 文档。 diff --git a/src/components/config-provider/tests/__snapshots__/config-provider.test.tsx.snap b/src/components/config-provider/tests/__snapshots__/config-provider.test.tsx.snap index 904400ade7..67917b5a86 100644 --- a/src/components/config-provider/tests/__snapshots__/config-provider.test.tsx.snap +++ b/src/components/config-provider/tests/__snapshots__/config-provider.test.tsx.snap @@ -23185,7 +23185,7 @@ exports[`ConfigProvider should display the text as en 1`] = ` `; -exports[`ConfigProvider should display the text as es 1`] = ` +exports[`ConfigProvider should display the text as en 2`] = `