@ckbox/i18n 0.0.3 → 0.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +1 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * @license Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
3
3
  */
4
- const _0x196143=_0x2772;(function(_0x251749,_0x215e3a){const _0x5b614f=_0x2772,_0x373036=_0x251749();while(!![]){try{const _0x2827a9=parseInt(_0x5b614f(0x190))/0x1+parseInt(_0x5b614f(0x1ab))/0x2+parseInt(_0x5b614f(0x19d))/0x3+parseInt(_0x5b614f(0x18b))/0x4+parseInt(_0x5b614f(0x1b2))/0x5*(-parseInt(_0x5b614f(0x1a3))/0x6)+-parseInt(_0x5b614f(0x192))/0x7+parseInt(_0x5b614f(0x18a))/0x8*(-parseInt(_0x5b614f(0x1bb))/0x9);if(_0x2827a9===_0x215e3a)break;else _0x373036['push'](_0x373036['shift']());}catch(_0x20b0b2){_0x373036['push'](_0x373036['shift']());}}}(_0x5119,0xe37a4));import*as _0x8d38d4 from'react';import{__rest}from'tslib';function _0x2772(_0x1d6e79,_0x2e0d73){const _0x5119dc=_0x5119();return _0x2772=function(_0x2772ea,_0x3117a6){_0x2772ea=_0x2772ea-0x188;let _0x2870cf=_0x5119dc[_0x2772ea];return _0x2870cf;},_0x2772(_0x1d6e79,_0x2e0d73);}import{sprintf}from'sprintf-js';class Plural{constructor(_0x109028){const _0xa26911=_0x2772;this[_0xa26911(0x19c)]=_0x109028;try{this[_0xa26911(0x1a9)]=new Intl[(_0xa26911(0x1b6))](_0x109028);}catch(_0x74b5bd){console[_0xa26911(0x19e)](_0xa26911(0x188));}}[_0x196143(0x1a7)](_0x4f4ab9,_0x5b11ff){const _0x2ebdb5=_0x196143;if(!this[_0x2ebdb5(0x1a9)])return _0x4f4ab9+'_one';const _0x121363=this[_0x2ebdb5(0x1a9)]['select'](_0x5b11ff);return _0x4f4ab9+'_'+_0x121363;}}Plural[_0x196143(0x1ae)]=_0x3ef644=>{try{return Intl['PluralRules']['supportedLocalesOf']([_0x3ef644])['length']>0x0;}catch(_0x317467){return![];}};const I18nContext=_0x8d38d4[_0x196143(0x1ad)]({'changeLang':()=>{},'debug':![],'lang':'en','resources':{},'pluralUtils':new Plural('en')});function reducer(_0x4ab1ed,_0x18cb8d){const _0x38d978=_0x196143;switch(_0x18cb8d[_0x38d978(0x18d)]){case _0x38d978(0x1ba):return Object[_0x38d978(0x1b5)](Object[_0x38d978(0x1b5)]({},_0x4ab1ed),{'lang':_0x18cb8d[_0x38d978(0x1b7)]});case _0x38d978(0x1a8):return Object[_0x38d978(0x1b5)](Object[_0x38d978(0x1b5)]({},_0x4ab1ed),{'lang':_0x18cb8d[_0x38d978(0x1b7)]['lang'],'resources':Object[_0x38d978(0x1b5)](Object[_0x38d978(0x1b5)]({},_0x4ab1ed[_0x38d978(0x1a0)]),{[_0x18cb8d[_0x38d978(0x1b7)][_0x38d978(0x19c)]]:_0x18cb8d['payload'][_0x38d978(0x1b4)]})});}}function _0x5119(){const _0x4b8518=['Plural\x20form\x20for\x20language\x20\x22','filter','then','20hrOzqG','keys','translations','assign','PluralRules','payload',']:\x20Translation\x20for\x20key\x20\x27','map','changeLang','308349fAlguc','Plural\x20rules\x20could\x20not\x20be\x20created.\x20Perhaps\x20`Intl.PluralRules`\x20is\x20not\x20supported?','pluralUtils','120DZRIXE','766824CkvSXr','undefined','type','children','useContext','282947ahlTHt','length','4654573AsAYsn','useEffect','createElement','indexOf','log','processTags','values','push','exec','json','lang','4541235fWlGxW','warn','CKBOX_TRANSLATIONS','resources','\x22\x20is\x20not\x20supported.','useReducer','495654taVTcd','charAt','code','text','getKey','loadTranslations','_rules','Provider','905280YwcwEr','slice','createContext','isSupported'];_0x5119=function(){return _0x4b8518;};return _0x5119();}const useI18n=({debug:debug=![],loadURL:_0x386b6d,lang:_0x55b8f6='en',resources:_0x1e8306={}})=>{const _0x4d3f6a=_0x196143,[{lang:_0x5ac6a0,resources:_0x262cdc},_0x4ae863]=_0x8d38d4[_0x4d3f6a(0x1a2)](reducer,{'lang':_0x55b8f6,'resources':_0x1e8306});_0x8d38d4[_0x4d3f6a(0x193)](()=>{const _0x5aba50=_0x4d3f6a,_0x453af8=Plural[_0x5aba50(0x1ae)](_0x5ac6a0);!_0x453af8&&console['warn'](_0x5aba50(0x1af)+_0x5ac6a0+_0x5aba50(0x1a1));},[_0x5ac6a0]),_0x8d38d4[_0x4d3f6a(0x193)](()=>{const _0x3a763b=_0x4d3f6a;if(_0x262cdc[_0x5ac6a0]||!_0x386b6d)return;fetch(_0x386b6d(_0x5ac6a0))[_0x3a763b(0x1b1)](_0x27c98b=>_0x27c98b[_0x3a763b(0x19b)]())[_0x3a763b(0x1b1)](_0x10f5dd=>{const _0x531ff1=_0x3a763b;_0x4ae863({'type':_0x531ff1(0x1a8),'payload':{'lang':_0x5ac6a0,'translations':_0x10f5dd}});});},[_0x5ac6a0,_0x386b6d,_0x262cdc]);const _0x4fb8eb=_0x2de34f=>{const _0x17fc93=_0x4d3f6a;_0x4ae863({'type':_0x17fc93(0x1ba),'payload':_0x2de34f});};return{'changeLang':_0x4fb8eb,'debug':debug,'lang':_0x5ac6a0,'pluralUtils':new Plural(_0x5ac6a0),'resources':_0x262cdc};},I18nProvider=_0xd189e6=>{const _0x53c421=_0x196143;var {children:_0x4f2bed}=_0xd189e6,_0x834e85=__rest(_0xd189e6,[_0x53c421(0x18e)]);const _0x487ea8=useI18n(_0x834e85);return _0x8d38d4[_0x53c421(0x194)](I18nContext[_0x53c421(0x1aa)],{'value':_0x487ea8},_0x4f2bed);},getTranslations=_0x33e0d7=>{const _0x23ba93=_0x196143;var _0xf37143,_0x568a51;const _0x3f6097=typeof globalThis!==_0x23ba93(0x18c)?globalThis:global||self;return(_0x568a51=(_0xf37143=_0x3f6097===null||_0x3f6097===void 0x0?void 0x0:_0x3f6097[_0x23ba93(0x19f)])===null||_0xf37143===void 0x0?void 0x0:_0xf37143[_0x33e0d7])!==null&&_0x568a51!==void 0x0?_0x568a51:{};},TAG_REGEX=/<[a-zA-Z0-9\-!/](?:"[^"]*"|'[^']*'|[^'">])*>/g,ALLOWED_TAGS=['em','strong',_0x196143(0x1a5)],getMsg=(_0x172b5f,_0x52da84={},_0x50cb95)=>{const _0x80a3c=_0x196143,_0x5b5396=_0x50cb95['plural'];if(_0x52da84[_0x172b5f]&&_0x5b5396===undefined)return{'found':!![],'msg':_0x52da84[_0x172b5f]};const _0x2d3563=Object[_0x80a3c(0x1b3)](_0x52da84)[_0x80a3c(0x1b0)](_0x47c6ff=>_0x47c6ff[_0x80a3c(0x195)](_0x172b5f)===0x0);if(_0x2d3563['length']===0x0||_0x5b5396===undefined)return{'found':![],'msg':_0x172b5f};const _0x29f208=_0x50cb95[_0x80a3c(0x189)][_0x80a3c(0x1a7)](_0x172b5f,_0x5b5396);return{'found':!![],'msg':_0x52da84[_0x29f208]};},parseMsgTags=_0x6976fa=>{const _0x849a3d=_0x196143,_0x54f5c8=[];let _0xba7b96=0x0,_0x147a13;while((_0x147a13=TAG_REGEX[_0x849a3d(0x19a)](_0x6976fa))!==null){const _0x53655d=_0x147a13[0x0],{index:_0x384c96}=_0x147a13,_0x3c89aa=_0x53655d[_0x849a3d(0x1a4)](0x1)==='/',_0x2ec8bd=_0x3c89aa?_0x53655d[_0x849a3d(0x1ac)](0x2,-0x1):_0x53655d['slice'](0x1,-0x1),_0x36eaa5=ALLOWED_TAGS['includes'](_0x2ec8bd);if(!_0x36eaa5)continue;const _0x3ae3e5=_0x6976fa['slice'](_0xba7b96,_0x384c96);if(!_0x3ae3e5){_0xba7b96=_0x384c96+_0x53655d[_0x849a3d(0x191)];continue;}_0x3c89aa?_0x54f5c8[_0x849a3d(0x199)]({'type':'tag','name':_0x53655d[_0x849a3d(0x1ac)](0x2,-0x1),'content':_0x3ae3e5}):_0x54f5c8['push']({'type':'text','content':_0x3ae3e5}),_0xba7b96=_0x384c96+_0x53655d['length'];}return _0xba7b96<_0x6976fa[_0x849a3d(0x191)]&&_0x54f5c8[_0x849a3d(0x199)]({'type':_0x849a3d(0x1a6),'content':_0x6976fa[_0x849a3d(0x1ac)](_0xba7b96)}),_0x54f5c8;};function formatMsgWithTags(_0x4bc29a){const _0xb4f157=_0x196143,_0x5a4a45=parseMsgTags(_0x4bc29a),_0x2b9a64=_0x5a4a45[_0xb4f157(0x1b9)](({content:_0x3eed08,type:_0x568e35,name:_0x27ff3c},_0x59b472)=>{const _0x4b85e8=_0xb4f157,_0x1a11f9=_0x568e35!=='text'&&_0x27ff3c?_0x27ff3c:_0x8d38d4['Fragment'];return _0x8d38d4[_0x4b85e8(0x194)](_0x1a11f9,{'key':''+_0x59b472},_0x3eed08);});return _0x2b9a64;}function formatMsg(_0x5ed8c5,_0x3e0d23,_0x5be014){const _0x3b8d16=sprintf(_0x5ed8c5,..._0x3e0d23!==null&&_0x3e0d23!==void 0x0?_0x3e0d23:[]);if(!_0x5be014)return _0x3b8d16;return formatMsgWithTags(_0x3b8d16);}const useTranslation=()=>{const _0x23a994=_0x196143,{lang:_0x43f09c,debug:_0x787384,pluralUtils:_0xb958fe,resources:_0x4012c6}=_0x8d38d4[_0x23a994(0x18f)](I18nContext);function _0x4a9598(_0x5503f5,_0x4072cd){const _0x3dc589=_0x23a994,{found:_0x36fa27,msg:_0x564295}=getMsg(_0x5503f5,_0x4012c6[_0x43f09c],{'plural':_0x4072cd===null||_0x4072cd===void 0x0?void 0x0:_0x4072cd['plural'],'pluralUtils':_0xb958fe});_0x787384&&!_0x36fa27&&console[_0x3dc589(0x196)]('['+_0x43f09c+_0x3dc589(0x1b8)+_0x5503f5+'\x27\x20is\x20missing.');if(_0x4072cd===null||_0x4072cd===void 0x0?void 0x0:_0x4072cd[_0x3dc589(0x197)])return formatMsg(_0x564295,_0x4072cd===null||_0x4072cd===void 0x0?void 0x0:_0x4072cd[_0x3dc589(0x198)],!![]);return formatMsg(_0x564295,_0x4072cd===null||_0x4072cd===void 0x0?void 0x0:_0x4072cd['values'],![]);}return{'t':_0x4a9598,'lang':_0x43f09c};};export{I18nContext,I18nProvider,getTranslations,useTranslation};
4
+ const _0x4b7700=_0x2347;(function(_0x235731,_0x5ea4f8){const _0x2ed073=_0x2347,_0x2348c3=_0x235731();while(!![]){try{const _0x585e63=-parseInt(_0x2ed073(0x1f0))/0x1+-parseInt(_0x2ed073(0x205))/0x2*(-parseInt(_0x2ed073(0x206))/0x3)+parseInt(_0x2ed073(0x1ec))/0x4+-parseInt(_0x2ed073(0x204))/0x5+parseInt(_0x2ed073(0x1ef))/0x6*(-parseInt(_0x2ed073(0x1ee))/0x7)+parseInt(_0x2ed073(0x1e7))/0x8*(parseInt(_0x2ed073(0x210))/0x9)+parseInt(_0x2ed073(0x21a))/0xa;if(_0x585e63===_0x5ea4f8)break;else _0x2348c3['push'](_0x2348c3['shift']());}catch(_0x298225){_0x2348c3['push'](_0x2348c3['shift']());}}}(_0x3ff8,0xa00a6));import*as _0x15af98 from'react';import{__rest}from'tslib';function _0x3ff8(){const _0x469724=['18EsKlUp','warn','Plural\x20rules\x20could\x20not\x20be\x20created.\x20Perhaps\x20`Intl.PluralRules`\x20is\x20not\x20supported?','exec','\x27\x20is\x20missing.','tag',']:\x20Translation\x20for\x20key\x20\x27','loadTranslations','filter','payload','711UKCFdV','useContext','lang','charAt','translations','length','push','code','type','\x22\x20is\x20not\x20supported.','5032270wTceyR','then','indexOf','children','92760ulDedB','createElement','Provider','includes','_one','5152012ecAMFg','changeLang','7Qqxaqx','2863686UwUbwJ','1299740OKHDnL','resources','CKBOX_TRANSLATIONS','plural','json','slice','select','useEffect','log','strong','values','assign','text','pluralUtils','map','_rules','createContext','processTags','PluralRules','isSupported','5948800IObqCi','305024AtjqRF'];_0x3ff8=function(){return _0x469724;};return _0x3ff8();}import{sprintf}from'sprintf-js';class Plural{constructor(_0x3742ad){const _0x46f07b=_0x2347;this['lang']=_0x3742ad;try{this[_0x46f07b(0x1ff)]=new Intl[(_0x46f07b(0x202))](_0x3742ad);}catch(_0x3b9ecd){console[_0x46f07b(0x207)](_0x46f07b(0x208));}}['getKey'](_0x1c9f22,_0x2e1f03){const _0x106484=_0x2347;if(!this[_0x106484(0x1ff)])return _0x1c9f22+_0x106484(0x1eb);const _0x1e43fd=this[_0x106484(0x1ff)][_0x106484(0x1f6)](_0x2e1f03);return _0x1c9f22+'_'+_0x1e43fd;}}Plural['isSupported']=_0x5d405a=>{const _0x236936=_0x2347;try{return Intl[_0x236936(0x202)]['supportedLocalesOf']([_0x5d405a])[_0x236936(0x215)]>0x0;}catch(_0x138db2){return![];}};const I18nContext=_0x15af98[_0x4b7700(0x200)]({'changeLang':()=>{},'debug':![],'lang':'en','resources':{},'pluralUtils':new Plural('en')});function _0x2347(_0x1ebfda,_0x30b216){const _0x3ff80c=_0x3ff8();return _0x2347=function(_0x234791,_0x5cfc2c){_0x234791=_0x234791-0x1e4;let _0x3a14c6=_0x3ff80c[_0x234791];return _0x3a14c6;},_0x2347(_0x1ebfda,_0x30b216);}function reducer(_0x4d98c8,_0x4c3294){const _0x32f1d4=_0x4b7700;switch(_0x4c3294[_0x32f1d4(0x218)]){case _0x32f1d4(0x1ed):return Object[_0x32f1d4(0x1fb)](Object[_0x32f1d4(0x1fb)]({},_0x4d98c8),{'lang':_0x4c3294['payload']});case _0x32f1d4(0x20d):return Object[_0x32f1d4(0x1fb)](Object[_0x32f1d4(0x1fb)]({},_0x4d98c8),{'lang':_0x4c3294[_0x32f1d4(0x20f)][_0x32f1d4(0x212)],'resources':Object['assign'](Object[_0x32f1d4(0x1fb)]({},_0x4d98c8[_0x32f1d4(0x1f1)]),{[_0x4c3294[_0x32f1d4(0x20f)][_0x32f1d4(0x212)]]:_0x4c3294[_0x32f1d4(0x20f)][_0x32f1d4(0x214)]})});}}const useI18n=({debug:debug=![],loadURL:_0x51add9,lang:_0x158dd4='en',resources:_0xd0391={}})=>{const _0x351b49=_0x4b7700,[{lang:_0xa22ab8,resources:_0x4b6a3e},_0x3620d0]=_0x15af98['useReducer'](reducer,{'lang':_0x158dd4,'resources':_0xd0391});_0x15af98[_0x351b49(0x1f7)](()=>{const _0x31cf26=_0x351b49,_0x2a02d3=Plural[_0x31cf26(0x203)](_0xa22ab8);!_0x2a02d3&&console[_0x31cf26(0x207)]('Plural\x20form\x20for\x20language\x20\x22'+_0xa22ab8+_0x31cf26(0x219));},[_0xa22ab8]),_0x15af98[_0x351b49(0x1f7)](()=>{const _0x53cfa0=_0x351b49;if(_0x4b6a3e[_0xa22ab8]||!_0x51add9)return;fetch(_0x51add9(_0xa22ab8))[_0x53cfa0(0x1e4)](_0x11251b=>_0x11251b[_0x53cfa0(0x1f4)]())['then'](_0x5d505d=>{const _0x265ebb=_0x53cfa0;_0x3620d0({'type':_0x265ebb(0x20d),'payload':{'lang':_0xa22ab8,'translations':_0x5d505d}});});},[_0xa22ab8,_0x51add9,_0x4b6a3e]);const _0x384a19=_0x396ef8=>{_0x3620d0({'type':'changeLang','payload':_0x396ef8});};return{'changeLang':_0x384a19,'debug':debug,'lang':_0xa22ab8,'pluralUtils':new Plural(_0xa22ab8),'resources':_0x4b6a3e};},I18nProvider=_0x7a4b99=>{const _0x185640=_0x4b7700;var {children:_0x194ebc}=_0x7a4b99,_0x472bde=__rest(_0x7a4b99,[_0x185640(0x1e6)]);const _0xde8f1e=useI18n(_0x472bde);return _0x15af98[_0x185640(0x1e8)](I18nContext[_0x185640(0x1e9)],{'value':_0xde8f1e},_0x194ebc);},getTranslations=_0x108916=>{const _0x493237=_0x4b7700;var _0x520b00,_0x2a8770;const _0x3b9ba6=typeof globalThis!=='undefined'?globalThis:global||self;return(_0x2a8770=(_0x520b00=_0x3b9ba6===null||_0x3b9ba6===void 0x0?void 0x0:_0x3b9ba6[_0x493237(0x1f2)])===null||_0x520b00===void 0x0?void 0x0:_0x520b00[_0x108916])!==null&&_0x2a8770!==void 0x0?_0x2a8770:{};},TAG_REGEX=/<[a-zA-Z0-9\-!/](?:"[^"]*"|'[^']*'|[^'">])*>/g,ALLOWED_TAGS=['em',_0x4b7700(0x1f9),_0x4b7700(0x217)],getMsg=(_0x255072,_0xeaf72a={},_0x127b7b)=>{const _0x31da7f=_0x4b7700,_0x4e9d34=_0x127b7b[_0x31da7f(0x1f3)];if(_0xeaf72a[_0x255072]&&_0x4e9d34===undefined)return{'found':!![],'msg':_0xeaf72a[_0x255072]};const _0x4d7547=Object['keys'](_0xeaf72a)[_0x31da7f(0x20e)](_0x1ca7b5=>_0x1ca7b5[_0x31da7f(0x1e5)](_0x255072)===0x0);if(_0x4d7547[_0x31da7f(0x215)]===0x0||_0x4e9d34===undefined)return{'found':![],'msg':_0x255072};const _0x354b53=_0x127b7b[_0x31da7f(0x1fd)]['getKey'](_0x255072,_0x4e9d34);return{'found':!![],'msg':_0xeaf72a[_0x354b53]};},parseMsgTags=_0x932ab5=>{const _0x29a742=_0x4b7700,_0x119156=[];let _0x3f56d5=0x0,_0x138c9e;while((_0x138c9e=TAG_REGEX[_0x29a742(0x209)](_0x932ab5))!==null){const _0x54adef=_0x138c9e[0x0],{index:_0x358742}=_0x138c9e,_0x3491d9=_0x54adef[_0x29a742(0x213)](0x1)==='/',_0x15ff8a=_0x3491d9?_0x54adef[_0x29a742(0x1f5)](0x2,-0x1):_0x54adef[_0x29a742(0x1f5)](0x1,-0x1),_0x3ebc7f=ALLOWED_TAGS[_0x29a742(0x1ea)](_0x15ff8a);if(!_0x3ebc7f)continue;const _0x30264b=_0x932ab5[_0x29a742(0x1f5)](_0x3f56d5,_0x358742);if(!_0x30264b){_0x3f56d5=_0x358742+_0x54adef[_0x29a742(0x215)];continue;}_0x3491d9?_0x119156[_0x29a742(0x216)]({'type':_0x29a742(0x20b),'name':_0x54adef[_0x29a742(0x1f5)](0x2,-0x1),'content':_0x30264b}):_0x119156[_0x29a742(0x216)]({'type':'text','content':_0x30264b}),_0x3f56d5=_0x358742+_0x54adef[_0x29a742(0x215)];}return _0x3f56d5<_0x932ab5[_0x29a742(0x215)]&&_0x119156['push']({'type':_0x29a742(0x1fc),'content':_0x932ab5[_0x29a742(0x1f5)](_0x3f56d5)}),_0x119156;};function formatMsgWithTags(_0x1b5260){const _0x1cef66=_0x4b7700,_0x4d2951=parseMsgTags(_0x1b5260),_0x2f850b=_0x4d2951[_0x1cef66(0x1fe)](({content:_0x2a6a8a,type:_0x147c94,name:_0x5293ec},_0x17ac7f)=>{const _0x6348f2=_0x1cef66,_0x9607b1=_0x147c94!==_0x6348f2(0x1fc)&&_0x5293ec?_0x5293ec:_0x15af98['Fragment'];return _0x15af98[_0x6348f2(0x1e8)](_0x9607b1,{'key':''+_0x17ac7f},_0x2a6a8a);});return _0x2f850b;}function formatMsg(_0x149d0a,_0x1a29bd,_0x3110bd){const _0x1c3666=sprintf(_0x149d0a,..._0x1a29bd!==null&&_0x1a29bd!==void 0x0?_0x1a29bd:[]);if(!_0x3110bd)return _0x1c3666;return formatMsgWithTags(_0x1c3666);}const useTranslation=()=>{const _0x51ab09=_0x4b7700,{lang:_0x344b88,debug:_0xfead55,pluralUtils:_0x2d191d,resources:_0x34ca70}=_0x15af98[_0x51ab09(0x211)](I18nContext);function _0x4d86d2(_0x363a63,_0x1028a8){const _0x36a362=_0x51ab09,{found:_0xe2d0ea,msg:_0x3fda4a}=getMsg(_0x363a63,_0x34ca70[_0x344b88],{'plural':_0x1028a8===null||_0x1028a8===void 0x0?void 0x0:_0x1028a8[_0x36a362(0x1f3)],'pluralUtils':_0x2d191d});_0xfead55&&!_0xe2d0ea&&console[_0x36a362(0x1f8)]('['+_0x344b88+_0x36a362(0x20c)+_0x363a63+_0x36a362(0x20a));if(_0x1028a8===null||_0x1028a8===void 0x0?void 0x0:_0x1028a8[_0x36a362(0x201)])return formatMsg(_0x3fda4a,_0x1028a8===null||_0x1028a8===void 0x0?void 0x0:_0x1028a8[_0x36a362(0x1fa)],!![]);return formatMsg(_0x3fda4a,_0x1028a8===null||_0x1028a8===void 0x0?void 0x0:_0x1028a8[_0x36a362(0x1fa)],![]);}return{'t':_0x4d86d2,'lang':_0x344b88};};export{I18nContext,I18nProvider,getTranslations,useTranslation};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckbox/i18n",
3
- "version": "0.0.3",
3
+ "version": "0.0.5",
4
4
  "description": "i18n functionality",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",