react-input-emoji 5.6.6 → 5.6.7
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.es.js +71 -3
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +89 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
@@ -3613,12 +3613,31 @@ function EmojiPicker(props) {
|
|
3613
3613
|
categoryies = [].concat(_toConsumableArray(categoryies), ["people", "nature", "foods", "activity", "places", "objects", "symbols", "flags"]);
|
3614
3614
|
return categoryies;
|
3615
3615
|
}, [disableRecent]);
|
3616
|
-
var
|
3616
|
+
var _useState = useState(undefined),
|
3617
|
+
_useState2 = _slicedToArray(_useState, 2),
|
3618
|
+
i18n = _useState2[0],
|
3619
|
+
setI18n = _useState2[1];
|
3620
|
+
useEffect(function () {
|
3617
3621
|
if (!language) {
|
3618
|
-
|
3622
|
+
// @ts-ignore
|
3623
|
+
Promise.resolve().then(function () { return en$1; }).then(function (translations) {
|
3624
|
+
setI18n(translations);
|
3625
|
+
})["catch"](function (error) {
|
3626
|
+
console.error("Failed to load translations:", error);
|
3627
|
+
});
|
3628
|
+
return;
|
3619
3629
|
}
|
3620
|
-
|
3630
|
+
|
3631
|
+
// @ts-ignore
|
3632
|
+
import("@emoji-mart/data/i18n/".concat(language, ".json")).then(function (translations) {
|
3633
|
+
setI18n(translations);
|
3634
|
+
})["catch"](function (error) {
|
3635
|
+
console.error("Failed to load translations:", error);
|
3636
|
+
});
|
3621
3637
|
}, [language]);
|
3638
|
+
if (!i18n) {
|
3639
|
+
return null;
|
3640
|
+
}
|
3622
3641
|
return /*#__PURE__*/React.createElement($e5534fc185f7111e$export$2e2bcd8739ae039, {
|
3623
3642
|
data: undefined,
|
3624
3643
|
theme: theme,
|
@@ -4680,5 +4699,54 @@ InputEmojiWithRef.defaultProps = {
|
|
4680
4699
|
language: undefined
|
4681
4700
|
};
|
4682
4701
|
|
4702
|
+
var search = "Search";
|
4703
|
+
var search_no_results_1 = "Oh no!";
|
4704
|
+
var search_no_results_2 = "That emoji couldn’t be found";
|
4705
|
+
var pick = "Pick an emoji…";
|
4706
|
+
var add_custom = "Add custom emoji";
|
4707
|
+
var categories = {
|
4708
|
+
activity: "Activity",
|
4709
|
+
custom: "Custom",
|
4710
|
+
flags: "Flags",
|
4711
|
+
foods: "Food & Drink",
|
4712
|
+
frequent: "Frequently used",
|
4713
|
+
nature: "Animals & Nature",
|
4714
|
+
objects: "Objects",
|
4715
|
+
people: "Smileys & People",
|
4716
|
+
places: "Travel & Places",
|
4717
|
+
search: "Search Results",
|
4718
|
+
symbols: "Symbols"
|
4719
|
+
};
|
4720
|
+
var skins = {
|
4721
|
+
"1": "Default",
|
4722
|
+
"2": "Light",
|
4723
|
+
"3": "Medium-Light",
|
4724
|
+
"4": "Medium",
|
4725
|
+
"5": "Medium-Dark",
|
4726
|
+
"6": "Dark",
|
4727
|
+
choose: "Choose default skin tone"
|
4728
|
+
};
|
4729
|
+
var en = {
|
4730
|
+
search: search,
|
4731
|
+
search_no_results_1: search_no_results_1,
|
4732
|
+
search_no_results_2: search_no_results_2,
|
4733
|
+
pick: pick,
|
4734
|
+
add_custom: add_custom,
|
4735
|
+
categories: categories,
|
4736
|
+
skins: skins
|
4737
|
+
};
|
4738
|
+
|
4739
|
+
var en$1 = /*#__PURE__*/Object.freeze({
|
4740
|
+
__proto__: null,
|
4741
|
+
search: search,
|
4742
|
+
search_no_results_1: search_no_results_1,
|
4743
|
+
search_no_results_2: search_no_results_2,
|
4744
|
+
pick: pick,
|
4745
|
+
add_custom: add_custom,
|
4746
|
+
categories: categories,
|
4747
|
+
skins: skins,
|
4748
|
+
'default': en
|
4749
|
+
});
|
4750
|
+
|
4683
4751
|
export { InputEmojiWithRef as default };
|
4684
4752
|
//# sourceMappingURL=index.es.js.map
|