From c01140f47140b62b3efceda8eb9557890b1777c6 Mon Sep 17 00:00:00 2001 From: Qing <48283713+CapQing@users.noreply.github.com> Date: Mon, 27 May 2024 11:36:11 +0800 Subject: [PATCH] feat(i18n): add in-ID and update others (#6632) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat(i18n): add locale de-DE & ms-MY & ar-SA & vi-VN * feat(i18n): add in-ID and update others * test: update snapshot * test: fix test case * test: fix test case --------- Co-authored-by: qingyan Co-authored-by: 二货机器人 --- docs/guide/i18n.en.md | 1 + docs/guide/i18n.zh.md | 1 + .../config-provider.test.tsx.snap | 4668 ++++++++++++++++- .../tests/config-provider.test.tsx | 2 + src/components/dialog/tests/dialog.test.tsx | 78 +- src/locales/ar-SA.ts | 4 +- src/locales/de-DE.ts | 14 +- src/locales/es-ES.ts | 4 +- src/locales/fr-FR.ts | 2 +- src/locales/in-ID.ts | 115 + src/locales/ja-JP.ts | 4 +- src/locales/th-TH.ts | 4 +- 12 files changed, 4829 insertions(+), 68 deletions(-) create mode 100644 src/locales/in-ID.ts diff --git a/docs/guide/i18n.en.md b/docs/guide/i18n.en.md index f6b96d0f9a..6751a2ace9 100644 --- a/docs/guide/i18n.en.md +++ b/docs/guide/i18n.en.md @@ -30,6 +30,7 @@ The following languages are currently supported: | Japanese | ja-JP | | Kazakh | kk-KZ | | Indonesian | id-ID | +| Indonesian(old form) | in-ID | | Italian | it-IT | | Danish | da-DK | | Norwegian (Bokmål) | nb-NO | diff --git a/docs/guide/i18n.zh.md b/docs/guide/i18n.zh.md index 491fd8607b..bbb4600b15 100644 --- a/docs/guide/i18n.zh.md +++ b/docs/guide/i18n.zh.md @@ -29,6 +29,7 @@ return ( | 日语 | ja-JP | | 哈萨克语 | kk-KZ | | 印度尼西亚语 | id-ID | +| 印度尼西亚语(旧版) | in-ID | | 意大利语 | it-IT | | 丹麦语 | da-DK | | 挪威 | nb-NO | 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 0960fc97c4..1eff27f4e7 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 @@ -9475,32 +9475,32 @@ exports[`ConfigProvider should display the text as de-DE 1`] = `
- Montag + I
- Dienstag + II
- Mittwoch + III
- Donnerstag + IV
- Freitag + V
- Samstag + Sechs
- Montag + I
- Dienstag + II
- Mittwoch + III
- Donnerstag + IV
- Freitag + V
- Samstag + Sechs
`; +exports[`ConfigProvider should display the text as in-ID 1`] = ` +
+
+ +
+
+ Minggu +
+
+ Senin +
+
+ Selasa +
+
+ Rabu +
+
+ Kamis +
+
+ Jumat +
+
+ Sabtu +
+
+
+
+
+ 27 +
+
+
+
+
+ 28 +
+
+
+
+
+ 1 +
+
+
+
+
+ 2 +
+
+
+
+
+ 3 +
+
+
+
+
+ 4 +
+
+
+
+
+ 5 +
+
+
+
+
+ 6 +
+
+
+
+
+ 7 +
+
+
+
+
+ 8 +
+
+
+
+
+ 9 +
+
+
+
+
+ 10 +
+
+
+
+
+ 11 +
+
+
+
+
+ 12 +
+
+
+
+
+ 13 +
+
+
+
+
+ 14 +
+
+
+
+
+ 15 +
+
+
+
+
+ 16 +
+
+
+
+
+ 17 +
+
+
+
+
+ 18 +
+
+
+
+
+ 19 +
+
+
+
+
+ 20 +
+
+
+
+
+ 21 +
+
+
+
+
+ 22 +
+
+
+
+
+ 23 +
+
+
+
+
+ 24 +
+
+
+
+
+ 25 +
+
+
+
+
+ 26 +
+
+
+
+
+ 27 +
+
+
+
+
+ 28 +
+
+
+
+
+ 29 +
+
+
+
+
+ 30 +
+
+
+
+
+ 31 +
+
+
+
+
+ 1 +
+
+
+
+
+ 2 +
+
+
+
+
+ 3 +
+
+
+
+
+ 4 +
+
+
+
+
+ 5 +
+
+
+
+
+ 6 +
+
+
+
+
+ 7 +
+
+
+
+
+ 8 +
+
+
+
+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il +
+
+ Coba lagi nanti +
+
+
+
+
+
+
+
+
+
+
+ +
+
+
+ +
+
+
+
+
+
+
+
+
+ + +
+
+
+
+
+
+ + + +
+ +
+ + + + + + + + + + +
+
+
+
+ + + + + + + + + + + + + +
+
+
+
+
+`; + exports[`ConfigProvider should display the text as it-IT 1`] = `
{ diff --git a/src/components/dialog/tests/dialog.test.tsx b/src/components/dialog/tests/dialog.test.tsx index 5536f77179..ddeb782f36 100644 --- a/src/components/dialog/tests/dialog.test.tsx +++ b/src/components/dialog/tests/dialog.test.tsx @@ -1,17 +1,17 @@ /* eslint-disable @typescript-eslint/no-non-null-assertion */ +import { act } from '@testing-library/react' import React from 'react' import { + fireEvent, render, + screen, testA11y, - fireEvent, + waitFakeTimers, waitFor, waitForElementToBeRemoved, - screen, - waitFakeTimers, } from 'testing' import Dialog, { DialogAlertProps } from '..' -import { act } from '@testing-library/react' const classPrefix = `adm-dialog` @@ -120,38 +120,44 @@ describe('Dialog', () => { expect(fn).toBeCalled() }) - test('wait for confirm to complete', async () => { - const fn = jest.fn() - const Confirm = () => ( - - ) - - render() - const btn = screen.getByRole('button', { name: 'btn' }) - fireEvent.click(btn) - const dialog = screen.getByRole('dialog') - fireEvent.click(screen.getByRole('button', { name: '确定' })) - await act(async () => { - await Promise.resolve() - }) - expect(fn.mock.calls[0][0]).toBe(true) - await waitForElementToBeRemoved(dialog) - - fireEvent.click(btn) - fireEvent.click(screen.getByRole('button', { name: '取消' })) - await act(async () => { - await Promise.resolve() - }) - expect(fn.mock.calls[1][0]).toBe(false) + describe('wait for confirm to complete', () => { + function testFn(button: string, result: boolean) { + test(`wait for confirm to complete (${String(result)})`, async () => { + jest.useFakeTimers() + + const fn = jest.fn() + const Confirm = () => ( + + ) + + render() + + // First click to open + const btn = screen.getByRole('button', { name: 'btn' }) + fireEvent.click(btn) + await waitFakeTimers() + + // Click confirm + fireEvent.click(screen.getByRole('button', { name: button })) + expect(fn).not.toHaveBeenCalled() + await waitFakeTimers() + expect(fn).toHaveBeenCalledWith(result) + + jest.useRealTimers() + }) + } + + testFn('确定', true) + testFn('取消', false) }) test('custom actions', async () => { diff --git a/src/locales/ar-SA.ts b/src/locales/ar-SA.ts index b648972051..cfa5fe5cfb 100644 --- a/src/locales/ar-SA.ts +++ b/src/locales/ar-SA.ts @@ -21,7 +21,7 @@ const arSA = mergeLocale(base, { 'yearAndMonth': '${year} سنة ${month} شهر', }, 'Cascader': { 'placeholder': 'اختر من فضلك' }, - 'Dialog': { 'ok': 'عرفت' }, + 'Dialog': { 'ok': 'فهمت' }, 'DatePicker': { 'tillNow': 'إلى اليوم' }, 'ErrorBlock': { 'default': { @@ -95,7 +95,7 @@ const arSA = mergeLocale(base, { }, 'Input': { 'clear': 'إزالة' }, 'Mask': { 'name': 'قناع الخلفية' }, - 'Modal': { 'ok': 'عرفت' }, + 'Modal': { 'ok': 'فهمت' }, 'PasscodeInput': { 'name': 'مربع إدخال كلمة المرور' }, 'PullToRefresh': { 'pulling': 'اسحب إلى الأسفل للتحديث', diff --git a/src/locales/de-DE.ts b/src/locales/de-DE.ts index fb3f957ce9..447d0395b7 100644 --- a/src/locales/de-DE.ts +++ b/src/locales/de-DE.ts @@ -17,19 +17,11 @@ const deDE = mergeLocale(base, { 'start': 'Starten', 'end': 'Beenden', 'today': 'Heute', - 'markItems': [ - 'Montag', - 'Dienstag', - 'Mittwoch', - 'Donnerstag', - 'Freitag', - 'Samstag', - 'Tag', - ], + 'markItems': ['I', 'II', 'III', 'IV', 'V', 'Sechs', 'Tag'], 'yearAndMonth': '${year}Jahr${month}Monat', }, 'Cascader': { 'placeholder': 'Bitte auswählen' }, - 'Dialog': { 'ok': 'OK' }, + 'Dialog': { 'ok': 'Ich weiß.' }, 'DatePicker': { 'tillNow': 'Bis heute' }, 'ErrorBlock': { 'default': { @@ -108,7 +100,7 @@ const deDE = mergeLocale(base, { }, 'Input': { 'clear': 'Löschen' }, 'Mask': { 'name': 'Hintergrundmaske' }, - 'Modal': { 'ok': 'OK' }, + 'Modal': { 'ok': 'Ich weiß.' }, 'PasscodeInput': { 'name': 'Passwort-Eingabefeld' }, 'PullToRefresh': { 'pulling': 'Nach unten zum Aktualisieren ziehen', diff --git a/src/locales/es-ES.ts b/src/locales/es-ES.ts index b7fc56b8b9..6177551027 100644 --- a/src/locales/es-ES.ts +++ b/src/locales/es-ES.ts @@ -18,7 +18,7 @@ const esES = mergeLocale(base, { placeholder: 'Seleccionando', }, Dialog: { - ok: 'OK', + ok: 'Entendido', }, ErrorBlock: { default: { @@ -96,7 +96,7 @@ const esES = mergeLocale(base, { name: 'Máscara', }, Modal: { - ok: 'OK', + ok: 'Entendido', }, PullToRefresh: { pulling: 'Desplácese hacia abajo para refrescar', diff --git a/src/locales/fr-FR.ts b/src/locales/fr-FR.ts index becc248234..9cacf81dad 100644 --- a/src/locales/fr-FR.ts +++ b/src/locales/fr-FR.ts @@ -6,7 +6,7 @@ const typeTemplate = '${label}Pas un valide${type}' const frFR = mergeLocale(base, { locale: 'fr-FR', common: { - confirm: 'Valider', + confirm: 'Activer', cancel: 'Annuler', loading: 'Chargement', }, diff --git a/src/locales/in-ID.ts b/src/locales/in-ID.ts new file mode 100644 index 0000000000..8a09ce9870 --- /dev/null +++ b/src/locales/in-ID.ts @@ -0,0 +1,115 @@ +import { mergeLocale } from '../utils/merge-locale' +import { base } from './base' + +const typeTemplate = '${label} bukan ${type} yang valid' + +const inID = mergeLocale(base, { + locale: 'in-ID', + common: { + confirm: 'Yakin', + cancel: 'Batal ', + loading: 'memuat', + close: 'Tutup', + }, + Calendar: { + title: 'Pilih Tanggal', + confirm: 'OK', + start: 'Mulai', + end: 'Selesai', + today: 'Hari Ini', + markItems: ['Senin', 'Selasa', 'Rabu', 'Kamis', 'Jumat', 'Sabtu', 'Minggu'], + yearAndMonth: '${year} Tahun ${month} Bulan', + }, + Cascader: { placeholder: 'Silahkan Pilih' }, + Dialog: { ok: 'Saya mendapatkannya' }, + DatePicker: { tillNow: 'Sampai sekarang' }, + ErrorBlock: { + default: { + title: 'Halaman mengalami beberapa permasalahan kecil', + description: 'Coba lagi nanti', + }, + busy: { + title: 'kepadatan diawal', + description: 'Coba untuk menyegarkan', + }, + disconnected: { + title: 'jaringan sedikit sibuk', + description: 'Gerakkan jari Anda untuk membantu memperbaiki', + }, + empty: { + title: 'Itu tidak menemukan apa yang Anda butuhkan', + description: 'Silahkan cari yang lain', + }, + }, + Form: { + required: 'Diperlukan', + optional: 'opsional untuk diisi', + defaultValidateMessages: { + default: 'Kesalahan validasi bidang ${label}', + required: 'Harap masukkan ${label}', + enum: '${label} harus salah satu dari [${enum}]', + whitespace: '${label} tidak boleh berupa karakter kosong', + date: { + format: 'Format tanggal ${label} tidak valid', + parse: '${label} tidak dapat dikonversi ke tanggal', + invalid: '${label} adalah tanggal yang tidak valid', + }, + types: { + string: typeTemplate, + method: typeTemplate, + array: typeTemplate, + object: typeTemplate, + number: typeTemplate, + date: typeTemplate, + boolean: typeTemplate, + integer: typeTemplate, + float: typeTemplate, + regexp: typeTemplate, + email: typeTemplate, + url: typeTemplate, + hex: typeTemplate, + }, + string: { + len: '${label} harus berupa ${len} karakter', + min: '${label} Minimal ${min} karakter', + max: '${label}Maksimum ${max} karakter', + range: '${label} harus antara ${min}-${max} karakter', + }, + number: { + len: '${label} harus sama dengan ${len}', + min: 'Nilai minimum ${label} adalah ${min}', + max: '${label} memiliki nilai maksimum ${max}', + range: '${label} harus antara ${min}-${max}', + }, + array: { + len: 'Harus ${len} ${label}', + min: 'Minimal ${min} ${label}', + max: 'Hingga ${max} ${label}', + range: 'Jumlah ${label} harus antara ${min}-${max}', + }, + pattern: { mismatch: '${label} tidak cocok dengan pola ${pattern}' }, + }, + }, + ImageUploader: { uploading: 'mengunggah...', upload: 'diunggah' }, + InfiniteScroll: { + noMore: 'tidak ada lagi', + failedToLoad: 'Gagal memuat', + retry: 'memuat ulang', + }, + Input: { clear: 'Hapus' }, + Mask: { name: 'lapisan pelindung' }, + Modal: { ok: 'Saya mendapatkannya' }, + PasscodeInput: { name: 'Kotak kata sandi' }, + PullToRefresh: { + pulling: 'Tarik ke bawah untuk menyegarkan', + canRelease: 'Lepaskan untuk menyegarkan segera', + complete: 'Segarkan berhasil', + }, + SearchBar: { name: 'Bilah Pencarian' }, + Slider: { name: 'Penggeser' }, + Stepper: { decrease: 'mengurangi', increase: 'meningkat' }, + Switch: { name: 'Mengalihkan' }, + Selector: { name: 'Grup pilih' }, +}) + +export default inID diff --git a/src/locales/ja-JP.ts b/src/locales/ja-JP.ts index 564d729d44..96d150e4a7 100644 --- a/src/locales/ja-JP.ts +++ b/src/locales/ja-JP.ts @@ -18,7 +18,7 @@ const jaJP = mergeLocale(base, { placeholder: '選択下さい', }, Dialog: { - ok: 'わかりました', + ok: '了解', }, ErrorBlock: { default: { @@ -105,7 +105,7 @@ const jaJP = mergeLocale(base, { name: 'マスク', }, Modal: { - ok: 'わかりました', + ok: '了解', }, PasscodeInput: { name: 'パスコード入力', diff --git a/src/locales/th-TH.ts b/src/locales/th-TH.ts index e27ce81bdf..452b66b939 100644 --- a/src/locales/th-TH.ts +++ b/src/locales/th-TH.ts @@ -32,7 +32,7 @@ const thTH = mergeLocale(base, { placeholder: 'เลือก', }, Dialog: { - ok: 'โอเค', + ok: 'ฉันรู้แล้ว', }, DatePicker: { tillNow: 'จนถึงตอนนี้', @@ -122,7 +122,7 @@ const thTH = mergeLocale(base, { name: 'มาสก์', }, Modal: { - ok: 'ตกลง', + ok: 'ฉันรู้แล้ว', }, PasscodeInput: { name: 'ป้อนรหัสผ่าน',