From 9f13f6fc8bade48d387b5f7d3554b17ea5010977 Mon Sep 17 00:00:00 2001 From: Nguyen Huu Tu Date: Thu, 26 Sep 2024 11:37:13 +0700 Subject: [PATCH] add indonesian support --- README.md | 2 +- packages/emoji-mart-data/i18n/id.json | 29 +++++++++++++++++++ packages/emoji-mart-website/index.html | 1 + packages/emoji-mart/README.md | 2 +- .../src/components/Picker/PickerProps.ts | 1 + 5 files changed, 33 insertions(+), 2 deletions(-) create mode 100644 packages/emoji-mart-data/i18n/id.json diff --git a/README.md b/README.md index 6a6f11ae..0ba89ecb 100644 --- a/README.md +++ b/README.md @@ -103,7 +103,7 @@ function App() { | **emojiVersion** | `14` | `1`, `2`, `3`, `4`, `5`, `11`, `12`, `12.1`, `13`, `13.1`, `14` | The version of the emoji data to use. Latest version supported in `@emoji-mart/data` is currently [14](https://emojipedia.org/emoji-14.0) | | **exceptEmojis** | `[]` | | List of emoji IDs that will be excluded from the picker | | **icons** | `auto` | `auto`, `outline`, `solid` | The type of icons to use for the picker. `outline` with light theme and `solid` with dark theme. | -| **locale** | `en` | `en`, `ar`, `be`, `cs`, `de`, `es`, `fa`, `fi`, `fr`, `hi`, `it`, `ja`, `ko`, `nl`, `pl`, `pt`, `ru`, `sa`, `tr`, `uk`, `vi`, `zh` | The locale to use for the picker | +| **locale** | `en` | `en`, `ar`, `be`, `cs`, `de`, `es`, `fa`, `fi`, `fr`, `hi`,`id`, `it`, `ja`, `ko`, `nl`, `pl`, `pt`, `ru`, `sa`, `tr`, `uk`, `vi`, `zh` | The locale to use for the picker | | **maxFrequentRows** | `4` | | The maximum number of frequent rows to show. `0` will disable frequent category | | **navPosition** | `top` | `top`, `bottom`, `none` | The position of the navigation bar | | **noCountryFlags** | `false` | | Whether to show country flags or not. If not provided, tbhis is handled automatically (Windows doesn’t support country flags) | diff --git a/packages/emoji-mart-data/i18n/id.json b/packages/emoji-mart-data/i18n/id.json new file mode 100644 index 00000000..0b48f22b --- /dev/null +++ b/packages/emoji-mart-data/i18n/id.json @@ -0,0 +1,29 @@ +{ + "search": "Cari", + "search_no_results_1": "Oh tidak!", + "search_no_results_2": "Emoji itu tidak dapat ditemukan", + "pick": "Pilih emoji…", + "add_custom": "Tambahkan emoji kustom", + "categories": { + "activity": "Aktivitas", + "custom": "Kustom", + "flags": "Bendera", + "foods": "Makanan & Minuman", + "frequent": "Sering digunakan", + "nature": "Hewan & Alam", + "objects": "Benda", + "people": "Emoji & Orang", + "places": "Perjalanan & Tempat", + "search": "Hasil Pencarian", + "symbols": "Simbol" + }, + "skins": { + "choose": "Pilih warna kulit default", + "1": "Default", + "2": "Terang", + "3": "Agak Terang", + "4": "Sedang", + "5": "Agak Gelap", + "6": "Gelap" + } +} diff --git a/packages/emoji-mart-website/index.html b/packages/emoji-mart-website/index.html index 201b06a5..b1d48f2c 100644 --- a/packages/emoji-mart-website/index.html +++ b/packages/emoji-mart-website/index.html @@ -73,6 +73,7 @@ + diff --git a/packages/emoji-mart/README.md b/packages/emoji-mart/README.md index 6a6f11ae..0ba89ecb 100644 --- a/packages/emoji-mart/README.md +++ b/packages/emoji-mart/README.md @@ -103,7 +103,7 @@ function App() { | **emojiVersion** | `14` | `1`, `2`, `3`, `4`, `5`, `11`, `12`, `12.1`, `13`, `13.1`, `14` | The version of the emoji data to use. Latest version supported in `@emoji-mart/data` is currently [14](https://emojipedia.org/emoji-14.0) | | **exceptEmojis** | `[]` | | List of emoji IDs that will be excluded from the picker | | **icons** | `auto` | `auto`, `outline`, `solid` | The type of icons to use for the picker. `outline` with light theme and `solid` with dark theme. | -| **locale** | `en` | `en`, `ar`, `be`, `cs`, `de`, `es`, `fa`, `fi`, `fr`, `hi`, `it`, `ja`, `ko`, `nl`, `pl`, `pt`, `ru`, `sa`, `tr`, `uk`, `vi`, `zh` | The locale to use for the picker | +| **locale** | `en` | `en`, `ar`, `be`, `cs`, `de`, `es`, `fa`, `fi`, `fr`, `hi`,`id`, `it`, `ja`, `ko`, `nl`, `pl`, `pt`, `ru`, `sa`, `tr`, `uk`, `vi`, `zh` | The locale to use for the picker | | **maxFrequentRows** | `4` | | The maximum number of frequent rows to show. `0` will disable frequent category | | **navPosition** | `top` | `top`, `bottom`, `none` | The position of the navigation bar | | **noCountryFlags** | `false` | | Whether to show country flags or not. If not provided, tbhis is handled automatically (Windows doesn’t support country flags) | diff --git a/packages/emoji-mart/src/components/Picker/PickerProps.ts b/packages/emoji-mart/src/components/Picker/PickerProps.ts index 50eb7186..3b56bef1 100644 --- a/packages/emoji-mart/src/components/Picker/PickerProps.ts +++ b/packages/emoji-mart/src/components/Picker/PickerProps.ts @@ -41,6 +41,7 @@ export default { 'fi', 'fr', 'hi', + 'id', 'it', 'ja', 'ko',