@ckbox/i18n 0.0.5 → 0.0.6

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 _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};
4
+ const _0x3a1879=_0x3905;(function(_0x3e96fb,_0x293e49){const _0x2afdeb=_0x3905,_0x2a3829=_0x3e96fb();while(!![]){try{const _0x14feca=-parseInt(_0x2afdeb(0x118))/0x1+parseInt(_0x2afdeb(0x106))/0x2+parseInt(_0x2afdeb(0x112))/0x3+-parseInt(_0x2afdeb(0x133))/0x4*(parseInt(_0x2afdeb(0x109))/0x5)+parseInt(_0x2afdeb(0x117))/0x6*(parseInt(_0x2afdeb(0x10b))/0x7)+-parseInt(_0x2afdeb(0x121))/0x8*(parseInt(_0x2afdeb(0x104))/0x9)+parseInt(_0x2afdeb(0x114))/0xa;if(_0x14feca===_0x293e49)break;else _0x2a3829['push'](_0x2a3829['shift']());}catch(_0x4f1d04){_0x2a3829['push'](_0x2a3829['shift']());}}}(_0x2704,0xe5b35));import*as _0x4c1f4f from'react';function _0x3905(_0x2602c0,_0xcadea1){const _0x270408=_0x2704();return _0x3905=function(_0x3905d1,_0x2c9b52){_0x3905d1=_0x3905d1-0x100;let _0x5dc300=_0x270408[_0x3905d1];return _0x5dc300;},_0x3905(_0x2602c0,_0xcadea1);}import{__rest}from'tslib';import{sprintf}from'sprintf-js';class Plural{constructor(_0x3c46db){const _0x1d7fa5=_0x3905;this[_0x1d7fa5(0x134)]=_0x3c46db;try{this[_0x1d7fa5(0x107)]=new Intl[(_0x1d7fa5(0x10f))](_0x3c46db);}catch(_0x5bfef2){console[_0x1d7fa5(0x119)](_0x1d7fa5(0x10e));}}[_0x3a1879(0x116)](_0x966d2d,_0x3fe48c){const _0x238ed6=_0x3a1879;if(!this['_rules'])return _0x966d2d+_0x238ed6(0x12f);const _0x71b9bb=this[_0x238ed6(0x107)][_0x238ed6(0x12a)](_0x3fe48c);return _0x966d2d+'_'+_0x71b9bb;}}Plural[_0x3a1879(0x11c)]=_0x563a6e=>{const _0x10b7f9=_0x3a1879;try{return Intl[_0x10b7f9(0x10f)]['supportedLocalesOf']([_0x563a6e])[_0x10b7f9(0x131)]>0x0;}catch(_0x196d61){return![];}};function _0x2704(){const _0x2fee4d=['useEffect','Provider','log','assign','strong','select','Plural\x20form\x20for\x20language\x20\x22','plural','push','indexOf','_one','useContext','length','useReducer','5228LBRRAg','lang','keys','children','then','text','9XmJeqQ','filter','1110550xlgBgT','_rules','createElement','5015CWLEUv','changeLang','73129aIAubZ','processTags','loadTranslations','Plural\x20rules\x20could\x20not\x20be\x20created.\x20Perhaps\x20`Intl.PluralRules`\x20is\x20not\x20supported?','PluralRules','Fragment','code','4715307BJioca','slice','8301440vtjWaJ','type','getKey','192DHteHj','643639aKYOBa','warn','\x27\x20is\x20missing.','values','isSupported','includes','\x22\x20is\x20not\x20supported.','tag','charAt','3168632ddAuhd','map','payload','pluralUtils'];_0x2704=function(){return _0x2fee4d;};return _0x2704();}const I18nContext=_0x4c1f4f['createContext']({'changeLang':()=>{},'debug':![],'lang':'en','resources':{},'pluralUtils':new Plural('en')});function reducer(_0xb762e0,_0x1dbc6a){const _0x13f663=_0x3a1879;switch(_0x1dbc6a[_0x13f663(0x115)]){case _0x13f663(0x10a):return Object[_0x13f663(0x128)](Object[_0x13f663(0x128)]({},_0xb762e0),{'lang':_0x1dbc6a[_0x13f663(0x123)]});case _0x13f663(0x10d):return Object[_0x13f663(0x128)](Object[_0x13f663(0x128)]({},_0xb762e0),{'lang':_0x1dbc6a[_0x13f663(0x123)][_0x13f663(0x134)],'resources':Object[_0x13f663(0x128)](Object[_0x13f663(0x128)]({},_0xb762e0['resources']),{[_0x1dbc6a['payload'][_0x13f663(0x134)]]:_0x1dbc6a[_0x13f663(0x123)]['translations']})});}}const useI18n=({debug:debug=![],loadURL:_0x464228,lang:_0x2d5070='en',resources:_0x2474ac={}})=>{const _0x1e9de1=_0x3a1879,[{lang:_0x4aa14c,resources:_0x33e118},_0x951dc9]=_0x4c1f4f[_0x1e9de1(0x132)](reducer,{'lang':_0x2d5070,'resources':_0x2474ac});_0x4c1f4f[_0x1e9de1(0x125)](()=>{const _0xeb8dc6=_0x1e9de1,_0x4a2d89=Plural[_0xeb8dc6(0x11c)](_0x4aa14c);!_0x4a2d89&&console[_0xeb8dc6(0x119)](_0xeb8dc6(0x12b)+_0x4aa14c+_0xeb8dc6(0x11e));},[_0x4aa14c]),_0x4c1f4f['useEffect'](()=>{const _0x515a30=_0x1e9de1;if(_0x33e118[_0x4aa14c]||!_0x464228)return;fetch(_0x464228(_0x4aa14c))[_0x515a30(0x102)](_0x59f5d7=>_0x59f5d7['json']())['then'](_0x5c0d9a=>{const _0x3332be=_0x515a30;_0x951dc9({'type':_0x3332be(0x10d),'payload':{'lang':_0x4aa14c,'translations':_0x5c0d9a}});});},[_0x4aa14c,_0x464228,_0x33e118]);const _0x3c92c9=_0x183c20=>{const _0x54aa82=_0x1e9de1;_0x951dc9({'type':_0x54aa82(0x10a),'payload':_0x183c20});};return{'changeLang':_0x3c92c9,'debug':debug,'lang':_0x4aa14c,'pluralUtils':new Plural(_0x4aa14c),'resources':_0x33e118};},I18nProvider=_0x3136ab=>{const _0x386164=_0x3a1879;var {children:_0x550512}=_0x3136ab,_0x4bee04=__rest(_0x3136ab,[_0x386164(0x101)]);const _0x4d5338=useI18n(_0x4bee04);return _0x4c1f4f[_0x386164(0x108)](I18nContext[_0x386164(0x126)],{'value':_0x4d5338},_0x550512);},getTranslations=_0x3fdbbb=>{var _0x473e64,_0x4db869;const _0x3e6f18=typeof globalThis!=='undefined'?globalThis:global||self;return(_0x4db869=(_0x473e64=_0x3e6f18===null||_0x3e6f18===void 0x0?void 0x0:_0x3e6f18['CKBOX_TRANSLATIONS'])===null||_0x473e64===void 0x0?void 0x0:_0x473e64[_0x3fdbbb])!==null&&_0x4db869!==void 0x0?_0x4db869:{};},TAG_REGEX=/<[a-zA-Z0-9\-!/](?:"[^"]*"|'[^']*'|[^'">])*>/g,ALLOWED_TAGS=['em',_0x3a1879(0x129),_0x3a1879(0x111)],getMsg=(_0x383ff7,_0x5566bb={},_0x2a3c59)=>{const _0x380a0a=_0x3a1879,_0x4f975f=_0x2a3c59[_0x380a0a(0x12c)];if(_0x5566bb[_0x383ff7]&&_0x4f975f===undefined)return{'found':!![],'msg':_0x5566bb[_0x383ff7]};const _0x4e1639=Object[_0x380a0a(0x100)](_0x5566bb)[_0x380a0a(0x105)](_0x5a773a=>_0x5a773a[_0x380a0a(0x12e)](_0x383ff7)===0x0);if(_0x4e1639[_0x380a0a(0x131)]===0x0||_0x4f975f===undefined)return{'found':![],'msg':_0x383ff7};const _0x103150=_0x2a3c59[_0x380a0a(0x124)][_0x380a0a(0x116)](_0x383ff7,_0x4f975f);return{'found':!![],'msg':_0x5566bb[_0x103150]};},parseMsgTags=_0xd4b5c4=>{const _0x3a34c6=_0x3a1879,_0x197cb8=[];let _0x25537b=0x0,_0x23aa0a;while((_0x23aa0a=TAG_REGEX['exec'](_0xd4b5c4))!==null){const _0x323cc1=_0x23aa0a[0x0],{index:_0x3991b7}=_0x23aa0a,_0x5f161b=_0x323cc1[_0x3a34c6(0x120)](0x1)==='/',_0x12495b=_0x5f161b?_0x323cc1[_0x3a34c6(0x113)](0x2,-0x1):_0x323cc1[_0x3a34c6(0x113)](0x1,-0x1),_0x49c15e=ALLOWED_TAGS[_0x3a34c6(0x11d)](_0x12495b);if(!_0x49c15e)continue;const _0x1a2e79=_0xd4b5c4['slice'](_0x25537b,_0x3991b7);if(!_0x1a2e79){_0x25537b=_0x3991b7+_0x323cc1[_0x3a34c6(0x131)];continue;}_0x5f161b?_0x197cb8[_0x3a34c6(0x12d)]({'type':_0x3a34c6(0x11f),'name':_0x323cc1[_0x3a34c6(0x113)](0x2,-0x1),'content':_0x1a2e79}):_0x197cb8[_0x3a34c6(0x12d)]({'type':'text','content':_0x1a2e79}),_0x25537b=_0x3991b7+_0x323cc1[_0x3a34c6(0x131)];}return _0x25537b<_0xd4b5c4['length']&&_0x197cb8[_0x3a34c6(0x12d)]({'type':_0x3a34c6(0x103),'content':_0xd4b5c4[_0x3a34c6(0x113)](_0x25537b)}),_0x197cb8;};function formatMsgWithTags(_0xac9a42){const _0x41d448=_0x3a1879,_0x33ca2d=parseMsgTags(_0xac9a42),_0x1e956d=_0x33ca2d[_0x41d448(0x122)](({content:_0x535dc9,type:_0x14e5d8,name:_0x151325},_0x54822c)=>{const _0x2324b5=_0x41d448,_0x5a51af=_0x14e5d8!==_0x2324b5(0x103)&&_0x151325?_0x151325:_0x4c1f4f[_0x2324b5(0x110)];return _0x4c1f4f['createElement'](_0x5a51af,{'key':''+_0x54822c},_0x535dc9);});return _0x1e956d;}function formatMsg(_0x2e7a7d,_0x2a87f1,_0x688607){const _0x280903=sprintf(_0x2e7a7d,..._0x2a87f1!==null&&_0x2a87f1!==void 0x0?_0x2a87f1:[]);if(!_0x688607)return _0x280903;return formatMsgWithTags(_0x280903);}const useTranslation=()=>{const _0x31f63b=_0x3a1879,{lang:_0x3ff605,debug:_0x1f59d2,pluralUtils:_0x27afe2,resources:_0x6578ff}=_0x4c1f4f[_0x31f63b(0x130)](I18nContext);function _0x14230d(_0x41692d,_0x3d8948){const _0x2141e3=_0x31f63b,{found:_0x5da0b2,msg:_0x516925}=getMsg(_0x41692d,_0x6578ff[_0x3ff605],{'plural':_0x3d8948===null||_0x3d8948===void 0x0?void 0x0:_0x3d8948['plural'],'pluralUtils':_0x27afe2});_0x1f59d2&&!_0x5da0b2&&console[_0x2141e3(0x127)]('['+_0x3ff605+']:\x20Translation\x20for\x20key\x20\x27'+_0x41692d+_0x2141e3(0x11a));if(_0x3d8948===null||_0x3d8948===void 0x0?void 0x0:_0x3d8948[_0x2141e3(0x10c)])return formatMsg(_0x516925,_0x3d8948===null||_0x3d8948===void 0x0?void 0x0:_0x3d8948[_0x2141e3(0x11b)],!![]);return formatMsg(_0x516925,_0x3d8948===null||_0x3d8948===void 0x0?void 0x0:_0x3d8948[_0x2141e3(0x11b)],![]);}return{'t':_0x14230d,'lang':_0x3ff605};};export{I18nContext,I18nProvider,getTranslations,useTranslation};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckbox/i18n",
3
- "version": "0.0.5",
3
+ "version": "0.0.6",
4
4
  "description": "i18n functionality",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",