From 00f5f238c9a5fa0cd6206a3cf11a2d445f78d53d Mon Sep 17 00:00:00 2001 From: "open.source" Date: Wed, 22 Jun 2022 17:29:09 +0430 Subject: [PATCH] Adding Persian localization into the project --- packages/emoji-mart-data/i18n/fa.json | 29 ++++++++++++++++++++++++++ packages/emoji-mart-website/index.html | 3 ++- packages/emoji-mart/src/config.js | 2 +- 3 files changed, 32 insertions(+), 2 deletions(-) create mode 100644 packages/emoji-mart-data/i18n/fa.json diff --git a/packages/emoji-mart-data/i18n/fa.json b/packages/emoji-mart-data/i18n/fa.json new file mode 100644 index 000000000..95d3eb01d --- /dev/null +++ b/packages/emoji-mart-data/i18n/fa.json @@ -0,0 +1,29 @@ +{ + "search": "جستجو", + "search_no_results_1": "اوه نه!", + "search_no_results_2": "این ایموجی بافت نشد", + "pick": "یک ایموجی انتخاب کنید", + "add_custom": "ایموجی سفارشی اضافه کنید", + "categories": { + "activity": "فعالیت", + "custom": "سفارشی", + "flags": "پرچم ها", + "foods": "غذا و نوشیدنی", + "frequent": "پر استفاده ها", + "nature": "حیوانات و طبیعت", + "objects": "اشیاء", + "people": "شکلک ها و مردم", + "places": "سفر و مکان ها", + "search": "نتایج جستجو", + "symbols": "نمادها" + }, + "skins": { + "choose": "رنگ پوسته پیش فرض را انتخب کنید", + "1": "پیش فرض", + "2": "روشن", + "3": "میانه-روشن", + "4": "میانه", + "5": "میانه تاریک", + "6": "تاریک" + } + } \ No newline at end of file diff --git a/packages/emoji-mart-website/index.html b/packages/emoji-mart-website/index.html index 07736a39c..9c05e3087 100644 --- a/packages/emoji-mart-website/index.html +++ b/packages/emoji-mart-website/index.html @@ -69,7 +69,8 @@ - 中文 + diff --git a/packages/emoji-mart/src/config.js b/packages/emoji-mart/src/config.js index adea4b4ec..bc1ac42b8 100644 --- a/packages/emoji-mart/src/config.js +++ b/packages/emoji-mart/src/config.js @@ -30,7 +30,7 @@ const DEFAULT_PROPS = { }, locale: { value: 'en', - choices: ['en', 'de', 'fr', 'it', 'pl', 'pt', 'ru', 'zh'], + choices: ['en', 'de', 'fr', 'it', 'pl', 'pt', 'ru', 'zh', 'fa'], }, maxFrequentRows: { value: 4,