@ckbox/i18n 0.0.4 → 0.0.5-dev.0

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 _0x371d3d=_0x4b6e;(function(_0x2415f9,_0x53925d){const _0x42dc13=_0x4b6e,_0x439ac5=_0x2415f9();while(!![]){try{const _0x3a8fe7=-parseInt(_0x42dc13(0x20c))/0x1*(parseInt(_0x42dc13(0x20b))/0x2)+parseInt(_0x42dc13(0x219))/0x3+-parseInt(_0x42dc13(0x1f5))/0x4*(-parseInt(_0x42dc13(0x200))/0x5)+parseInt(_0x42dc13(0x1f9))/0x6+parseInt(_0x42dc13(0x1f1))/0x7*(-parseInt(_0x42dc13(0x1f8))/0x8)+-parseInt(_0x42dc13(0x213))/0x9+parseInt(_0x42dc13(0x1ef))/0xa*(parseInt(_0x42dc13(0x1f0))/0xb);if(_0x3a8fe7===_0x53925d)break;else _0x439ac5['push'](_0x439ac5['shift']());}catch(_0x361923){_0x439ac5['push'](_0x439ac5['shift']());}}}(_0x17a3,0xb9b89));import*as _0x1988da from'react';import{__rest}from'tslib';import{sprintf}from'sprintf-js';class Plural{constructor(_0x1ffb8a){const _0x1a75ee=_0x4b6e;this[_0x1a75ee(0x1e6)]=_0x1ffb8a;try{this[_0x1a75ee(0x201)]=new Intl['PluralRules'](_0x1ffb8a);}catch(_0x2c7e3a){console[_0x1a75ee(0x206)]('Plural\x20rules\x20could\x20not\x20be\x20created.\x20Perhaps\x20`Intl.PluralRules`\x20is\x20not\x20supported?');}}[_0x371d3d(0x1f7)](_0x4f27e5,_0x36c153){const _0x28c8d1=_0x371d3d;if(!this['_rules'])return _0x4f27e5+_0x28c8d1(0x205);const _0x383f68=this[_0x28c8d1(0x201)][_0x28c8d1(0x1eb)](_0x36c153);return _0x4f27e5+'_'+_0x383f68;}}function _0x17a3(){const _0x2ef3db=['createElement','translations','Fragment','1010cLYWzD','138259bdLKPw','84742ZozJKo','createContext','values','filter','1092340eDzgKc','tag','getKey','32IxDVQm','1843686PcLsea','keys','pluralUtils','useReducer','charAt','indexOf','log','25AJoYkC','_rules','loadTranslations','map','payload','_one','warn','length','strong','useEffect','type','113756Aueulw','26nbuZyu','json','supportedLocalesOf','children','useContext','text','\x22\x20is\x20not\x20supported.','11476863uYgaCM','isSupported','resources','\x27\x20is\x20missing.','push','exec','1862991GBCTkV','plural','assign','Plural\x20form\x20for\x20language\x20\x22','lang','then','changeLang','slice','code','select'];_0x17a3=function(){return _0x2ef3db;};return _0x17a3();}function _0x4b6e(_0x54ef0c,_0x3b0bff){const _0x17a3f1=_0x17a3();return _0x4b6e=function(_0x4b6e0a,_0x13d342){_0x4b6e0a=_0x4b6e0a-0x1e6;let _0x4962fe=_0x17a3f1[_0x4b6e0a];return _0x4962fe;},_0x4b6e(_0x54ef0c,_0x3b0bff);}Plural['isSupported']=_0x4069c0=>{const _0x181566=_0x371d3d;try{return Intl['PluralRules'][_0x181566(0x20e)]([_0x4069c0])[_0x181566(0x207)]>0x0;}catch(_0xc279c7){return![];}};const I18nContext=_0x1988da[_0x371d3d(0x1f2)]({'changeLang':()=>{},'debug':![],'lang':'en','resources':{},'pluralUtils':new Plural('en')});function reducer(_0x264c49,_0x20aa8d){const _0x454e25=_0x371d3d;switch(_0x20aa8d[_0x454e25(0x20a)]){case'changeLang':return Object['assign'](Object['assign']({},_0x264c49),{'lang':_0x20aa8d[_0x454e25(0x204)]});case'loadTranslations':return Object[_0x454e25(0x21b)](Object[_0x454e25(0x21b)]({},_0x264c49),{'lang':_0x20aa8d[_0x454e25(0x204)]['lang'],'resources':Object[_0x454e25(0x21b)](Object[_0x454e25(0x21b)]({},_0x264c49[_0x454e25(0x215)]),{[_0x20aa8d['payload'][_0x454e25(0x1e6)]]:_0x20aa8d[_0x454e25(0x204)][_0x454e25(0x1ed)]})});}}const useI18n=({debug:debug=![],loadURL:_0x4958c0,lang:_0x4ad392='en',resources:_0xc6028f={}})=>{const _0x42a46b=_0x371d3d,[{lang:_0x3317c3,resources:_0x325fa6},_0x2ec0f7]=_0x1988da[_0x42a46b(0x1fc)](reducer,{'lang':_0x4ad392,'resources':_0xc6028f});_0x1988da[_0x42a46b(0x209)](()=>{const _0x41eb4f=_0x42a46b,_0x3720eb=Plural[_0x41eb4f(0x214)](_0x3317c3);!_0x3720eb&&console[_0x41eb4f(0x206)](_0x41eb4f(0x21c)+_0x3317c3+_0x41eb4f(0x212));},[_0x3317c3]),_0x1988da[_0x42a46b(0x209)](()=>{const _0x5b225=_0x42a46b;if(_0x325fa6[_0x3317c3]||!_0x4958c0)return;fetch(_0x4958c0(_0x3317c3))[_0x5b225(0x1e7)](_0x103e33=>_0x103e33[_0x5b225(0x20d)]())[_0x5b225(0x1e7)](_0x38e967=>{const _0x3a16e4=_0x5b225;_0x2ec0f7({'type':_0x3a16e4(0x202),'payload':{'lang':_0x3317c3,'translations':_0x38e967}});});},[_0x3317c3,_0x4958c0,_0x325fa6]);const _0x4c267a=_0x2a8c61=>{const _0x95ef05=_0x42a46b;_0x2ec0f7({'type':_0x95ef05(0x1e8),'payload':_0x2a8c61});};return{'changeLang':_0x4c267a,'debug':debug,'lang':_0x3317c3,'pluralUtils':new Plural(_0x3317c3),'resources':_0x325fa6};},I18nProvider=_0x4fb8e1=>{const _0x27a025=_0x371d3d;var {children:_0x40d30f}=_0x4fb8e1,_0x1a0448=__rest(_0x4fb8e1,[_0x27a025(0x20f)]);const _0xfad24b=useI18n(_0x1a0448);return _0x1988da[_0x27a025(0x1ec)](I18nContext['Provider'],{'value':_0xfad24b},_0x40d30f);},getTranslations=_0x399d85=>{var _0x55859a,_0x4a1fc3;const _0x12a07f=typeof globalThis!=='undefined'?globalThis:global||self;return(_0x4a1fc3=(_0x55859a=_0x12a07f===null||_0x12a07f===void 0x0?void 0x0:_0x12a07f['CKBOX_TRANSLATIONS'])===null||_0x55859a===void 0x0?void 0x0:_0x55859a[_0x399d85])!==null&&_0x4a1fc3!==void 0x0?_0x4a1fc3:{};},TAG_REGEX=/<[a-zA-Z0-9\-!/](?:"[^"]*"|'[^']*'|[^'">])*>/g,ALLOWED_TAGS=['em',_0x371d3d(0x208),_0x371d3d(0x1ea)],getMsg=(_0x4eeabb,_0x1448c1={},_0x12ef25)=>{const _0x4f24f5=_0x371d3d,_0xc06010=_0x12ef25[_0x4f24f5(0x21a)];if(_0x1448c1[_0x4eeabb]&&_0xc06010===undefined)return{'found':!![],'msg':_0x1448c1[_0x4eeabb]};const _0x4c5c47=Object[_0x4f24f5(0x1fa)](_0x1448c1)[_0x4f24f5(0x1f4)](_0x89e70e=>_0x89e70e[_0x4f24f5(0x1fe)](_0x4eeabb)===0x0);if(_0x4c5c47[_0x4f24f5(0x207)]===0x0||_0xc06010===undefined)return{'found':![],'msg':_0x4eeabb};const _0x244eff=_0x12ef25[_0x4f24f5(0x1fb)][_0x4f24f5(0x1f7)](_0x4eeabb,_0xc06010);return{'found':!![],'msg':_0x1448c1[_0x244eff]};},parseMsgTags=_0x3aa284=>{const _0x2e8490=_0x371d3d,_0x43e0b5=[];let _0x991d64=0x0,_0xa888ef;while((_0xa888ef=TAG_REGEX[_0x2e8490(0x218)](_0x3aa284))!==null){const _0x4d6de2=_0xa888ef[0x0],{index:_0x37fb1a}=_0xa888ef,_0x19bd17=_0x4d6de2[_0x2e8490(0x1fd)](0x1)==='/',_0x2d9f66=_0x19bd17?_0x4d6de2[_0x2e8490(0x1e9)](0x2,-0x1):_0x4d6de2[_0x2e8490(0x1e9)](0x1,-0x1),_0x29dfbf=ALLOWED_TAGS['includes'](_0x2d9f66);if(!_0x29dfbf)continue;const _0x317fe7=_0x3aa284['slice'](_0x991d64,_0x37fb1a);if(!_0x317fe7){_0x991d64=_0x37fb1a+_0x4d6de2[_0x2e8490(0x207)];continue;}_0x19bd17?_0x43e0b5[_0x2e8490(0x217)]({'type':_0x2e8490(0x1f6),'name':_0x4d6de2[_0x2e8490(0x1e9)](0x2,-0x1),'content':_0x317fe7}):_0x43e0b5['push']({'type':'text','content':_0x317fe7}),_0x991d64=_0x37fb1a+_0x4d6de2[_0x2e8490(0x207)];}return _0x991d64<_0x3aa284[_0x2e8490(0x207)]&&_0x43e0b5['push']({'type':_0x2e8490(0x211),'content':_0x3aa284[_0x2e8490(0x1e9)](_0x991d64)}),_0x43e0b5;};function formatMsgWithTags(_0x4d65bf){const _0x10e4e6=_0x371d3d,_0x681299=parseMsgTags(_0x4d65bf),_0x423893=_0x681299[_0x10e4e6(0x203)](({content:_0x3254ab,type:_0x5b8425,name:_0x56fe0a},_0x584dd3)=>{const _0xd8d63=_0x10e4e6,_0x5340=_0x5b8425!==_0xd8d63(0x211)&&_0x56fe0a?_0x56fe0a:_0x1988da[_0xd8d63(0x1ee)];return _0x1988da['createElement'](_0x5340,{'key':''+_0x584dd3},_0x3254ab);});return _0x423893;}function formatMsg(_0x12b0cc,_0x2752db,_0x171371){const _0x476836=sprintf(_0x12b0cc,..._0x2752db!==null&&_0x2752db!==void 0x0?_0x2752db:[]);if(!_0x171371)return _0x476836;return formatMsgWithTags(_0x476836);}const useTranslation=()=>{const _0x42d45b=_0x371d3d,{lang:_0x44d07,debug:_0x2759e1,pluralUtils:_0x197ffc,resources:_0x5bda38}=_0x1988da[_0x42d45b(0x210)](I18nContext);function _0x38fd66(_0x350b06,_0x2a6c4a){const _0x2715c4=_0x42d45b,{found:_0x37a9f3,msg:_0x2fbecc}=getMsg(_0x350b06,_0x5bda38[_0x44d07],{'plural':_0x2a6c4a===null||_0x2a6c4a===void 0x0?void 0x0:_0x2a6c4a['plural'],'pluralUtils':_0x197ffc});_0x2759e1&&!_0x37a9f3&&console[_0x2715c4(0x1ff)]('['+_0x44d07+']:\x20Translation\x20for\x20key\x20\x27'+_0x350b06+_0x2715c4(0x216));if(_0x2a6c4a===null||_0x2a6c4a===void 0x0?void 0x0:_0x2a6c4a['processTags'])return formatMsg(_0x2fbecc,_0x2a6c4a===null||_0x2a6c4a===void 0x0?void 0x0:_0x2a6c4a[_0x2715c4(0x1f3)],!![]);return formatMsg(_0x2fbecc,_0x2a6c4a===null||_0x2a6c4a===void 0x0?void 0x0:_0x2a6c4a[_0x2715c4(0x1f3)],![]);}return{'t':_0x38fd66,'lang':_0x44d07};};export{I18nContext,I18nProvider,getTranslations,useTranslation};
4
+ function _0x25a0(){const _0x40a4ca=['strong','useContext','translations','processTags','Plural\x20rules\x20could\x20not\x20be\x20created.\x20Perhaps\x20`Intl.PluralRules`\x20is\x20not\x20supported?','lang','isSupported','8ycJwpR','then','Fragment','map','assign','log','useReducer','12FuyzQB','select','Provider','length','includes','slice','createElement','values','keys','exec','text','16292BKAvCC','getKey','warn','json','517EapuEl','85mJatDR',']:\x20Translation\x20for\x20key\x20\x27','plural','supportedLocalesOf','3fvEMby','PluralRules','push','useEffect','changeLang','createContext','46160gkxGiM','38226RRbnrd','24039EWpBkI','undefined','360246boMwyK','charAt','payload','408qIEKbL','_rules','867433fROAVL','Plural\x20form\x20for\x20language\x20\x22','resources','545519jDbokM','loadTranslations'];_0x25a0=function(){return _0x40a4ca;};return _0x25a0();}const _0x37758c=_0x2129;(function(_0x275abf,_0x393327){const _0x26f99e=_0x2129,_0x32e260=_0x275abf();while(!![]){try{const _0x54f4e1=-parseInt(_0x26f99e(0x116))/0x1*(parseInt(_0x26f99e(0x10d))/0x2)+-parseInt(_0x26f99e(0x120))/0x3*(parseInt(_0x26f99e(0x131))/0x4)+parseInt(_0x26f99e(0x112))/0x5*(-parseInt(_0x26f99e(0x11d))/0x6)+parseInt(_0x26f99e(0x125))/0x7+parseInt(_0x26f99e(0x123))/0x8*(parseInt(_0x26f99e(0x11e))/0x9)+parseInt(_0x26f99e(0x11c))/0xa*(parseInt(_0x26f99e(0x111))/0xb)+-parseInt(_0x26f99e(0x138))/0xc*(-parseInt(_0x26f99e(0x128))/0xd);if(_0x54f4e1===_0x393327)break;else _0x32e260['push'](_0x32e260['shift']());}catch(_0x1f641e){_0x32e260['push'](_0x32e260['shift']());}}}(_0x25a0,0x23ae2));import*as _0x5677ce from'react';import{__rest}from'tslib';import{sprintf}from'sprintf-js';class Plural{constructor(_0x176f4f){const _0x4ed09e=_0x2129;this[_0x4ed09e(0x12f)]=_0x176f4f;try{this['_rules']=new Intl[(_0x4ed09e(0x117))](_0x176f4f);}catch(_0x343e93){console[_0x4ed09e(0x10f)](_0x4ed09e(0x12e));}}['getKey'](_0x18facb,_0x50a70d){const _0x148816=_0x2129;if(!this[_0x148816(0x124)])return _0x18facb+'_one';const _0x312f5d=this[_0x148816(0x124)][_0x148816(0x103)](_0x50a70d);return _0x18facb+'_'+_0x312f5d;}}Plural['isSupported']=_0x1c2f37=>{const _0x2e4445=_0x2129;try{return Intl['PluralRules'][_0x2e4445(0x115)]([_0x1c2f37])[_0x2e4445(0x105)]>0x0;}catch(_0x3469ec){return![];}};const I18nContext=_0x5677ce[_0x37758c(0x11b)]({'changeLang':()=>{},'debug':![],'lang':'en','resources':{},'pluralUtils':new Plural('en')});function reducer(_0x43f4a3,_0x32ca89){const _0x22697b=_0x37758c;switch(_0x32ca89['type']){case _0x22697b(0x11a):return Object[_0x22697b(0x135)](Object[_0x22697b(0x135)]({},_0x43f4a3),{'lang':_0x32ca89[_0x22697b(0x122)]});case _0x22697b(0x129):return Object[_0x22697b(0x135)](Object[_0x22697b(0x135)]({},_0x43f4a3),{'lang':_0x32ca89[_0x22697b(0x122)][_0x22697b(0x12f)],'resources':Object['assign'](Object[_0x22697b(0x135)]({},_0x43f4a3[_0x22697b(0x127)]),{[_0x32ca89[_0x22697b(0x122)][_0x22697b(0x12f)]]:_0x32ca89[_0x22697b(0x122)][_0x22697b(0x12c)]})});}}const useI18n=({debug:debug=![],loadURL:_0x2246e4,lang:_0x1f4d68='en',resources:_0x4f97ef={}})=>{const _0x2572b6=_0x37758c,[{lang:_0x54b406,resources:_0x361373},_0x100c6c]=_0x5677ce[_0x2572b6(0x137)](reducer,{'lang':_0x1f4d68,'resources':_0x4f97ef});_0x5677ce[_0x2572b6(0x119)](()=>{const _0x5cfc34=_0x2572b6,_0x37d391=Plural[_0x5cfc34(0x130)](_0x54b406);!_0x37d391&&console[_0x5cfc34(0x10f)](_0x5cfc34(0x126)+_0x54b406+'\x22\x20is\x20not\x20supported.');},[_0x54b406]),_0x5677ce[_0x2572b6(0x119)](()=>{const _0xe432c=_0x2572b6;if(_0x361373[_0x54b406]||!_0x2246e4)return;fetch(_0x2246e4(_0x54b406))[_0xe432c(0x132)](_0x11a103=>_0x11a103[_0xe432c(0x110)]())['then'](_0x4f60a0=>{_0x100c6c({'type':'loadTranslations','payload':{'lang':_0x54b406,'translations':_0x4f60a0}});});},[_0x54b406,_0x2246e4,_0x361373]);const _0x5f5d6b=_0x349727=>{_0x100c6c({'type':'changeLang','payload':_0x349727});};return{'changeLang':_0x5f5d6b,'debug':debug,'lang':_0x54b406,'pluralUtils':new Plural(_0x54b406),'resources':_0x361373};},I18nProvider=_0x450331=>{const _0x4b2e43=_0x37758c;var {children:_0x3a0371}=_0x450331,_0x1a5dfc=__rest(_0x450331,['children']);const _0x4cb2fb=useI18n(_0x1a5dfc);return _0x5677ce[_0x4b2e43(0x108)](I18nContext[_0x4b2e43(0x104)],{'value':_0x4cb2fb},_0x3a0371);},getTranslations=_0x570cb6=>{const _0x32e139=_0x37758c;var _0x31f2cd,_0x262bea;const _0xb86436=typeof globalThis!==_0x32e139(0x11f)?globalThis:global||self;return(_0x262bea=(_0x31f2cd=_0xb86436===null||_0xb86436===void 0x0?void 0x0:_0xb86436['CKBOX_TRANSLATIONS'])===null||_0x31f2cd===void 0x0?void 0x0:_0x31f2cd[_0x570cb6])!==null&&_0x262bea!==void 0x0?_0x262bea:{};},TAG_REGEX=/<[a-zA-Z0-9\-!/](?:"[^"]*"|'[^']*'|[^'">])*>/g,ALLOWED_TAGS=['em',_0x37758c(0x12a),'code'],getMsg=(_0x4d7ee2,_0x2b0390={},_0x1f4353)=>{const _0x1a4246=_0x37758c,_0x57fb9f=_0x1f4353[_0x1a4246(0x114)];if(_0x2b0390[_0x4d7ee2]&&_0x57fb9f===undefined)return{'found':!![],'msg':_0x2b0390[_0x4d7ee2]};const _0x3064ee=Object[_0x1a4246(0x10a)](_0x2b0390)['filter'](_0x52cdfc=>_0x52cdfc['indexOf'](_0x4d7ee2)===0x0);if(_0x3064ee[_0x1a4246(0x105)]===0x0||_0x57fb9f===undefined)return{'found':![],'msg':_0x4d7ee2};const _0x318d64=_0x1f4353['pluralUtils'][_0x1a4246(0x10e)](_0x4d7ee2,_0x57fb9f);return{'found':!![],'msg':_0x2b0390[_0x318d64]};},parseMsgTags=_0x2a9ec5=>{const _0x2fd49c=_0x37758c,_0x458506=[];let _0x4722c1=0x0,_0x1b3e96;while((_0x1b3e96=TAG_REGEX[_0x2fd49c(0x10b)](_0x2a9ec5))!==null){const _0x2f7642=_0x1b3e96[0x0],{index:_0x305d16}=_0x1b3e96,_0x2aa013=_0x2f7642[_0x2fd49c(0x121)](0x1)==='/',_0xb969f=_0x2aa013?_0x2f7642[_0x2fd49c(0x107)](0x2,-0x1):_0x2f7642[_0x2fd49c(0x107)](0x1,-0x1),_0x10f5a5=ALLOWED_TAGS[_0x2fd49c(0x106)](_0xb969f);if(!_0x10f5a5)continue;const _0x449fcc=_0x2a9ec5[_0x2fd49c(0x107)](_0x4722c1,_0x305d16);if(!_0x449fcc){_0x4722c1=_0x305d16+_0x2f7642['length'];continue;}_0x2aa013?_0x458506[_0x2fd49c(0x118)]({'type':'tag','name':_0x2f7642[_0x2fd49c(0x107)](0x2,-0x1),'content':_0x449fcc}):_0x458506[_0x2fd49c(0x118)]({'type':_0x2fd49c(0x10c),'content':_0x449fcc}),_0x4722c1=_0x305d16+_0x2f7642[_0x2fd49c(0x105)];}return _0x4722c1<_0x2a9ec5['length']&&_0x458506[_0x2fd49c(0x118)]({'type':_0x2fd49c(0x10c),'content':_0x2a9ec5[_0x2fd49c(0x107)](_0x4722c1)}),_0x458506;};function formatMsgWithTags(_0x4e4316){const _0x158c23=_0x37758c,_0x1b0a3e=parseMsgTags(_0x4e4316),_0x29ec44=_0x1b0a3e[_0x158c23(0x134)](({content:_0x237863,type:_0x4a5a0,name:_0x5476ab},_0x214c06)=>{const _0x449a99=_0x158c23,_0xf4383d=_0x4a5a0!==_0x449a99(0x10c)&&_0x5476ab?_0x5476ab:_0x5677ce[_0x449a99(0x133)];return _0x5677ce[_0x449a99(0x108)](_0xf4383d,{'key':''+_0x214c06},_0x237863);});return _0x29ec44;}function formatMsg(_0x4c11ad,_0x23a1f6,_0x18aa3d){const _0x382321=sprintf(_0x4c11ad,..._0x23a1f6!==null&&_0x23a1f6!==void 0x0?_0x23a1f6:[]);if(!_0x18aa3d)return _0x382321;return formatMsgWithTags(_0x382321);}function _0x2129(_0x9dab15,_0x5ae51a){const _0x25a0c5=_0x25a0();return _0x2129=function(_0x2129ac,_0x54c146){_0x2129ac=_0x2129ac-0x103;let _0x3d58b3=_0x25a0c5[_0x2129ac];return _0x3d58b3;},_0x2129(_0x9dab15,_0x5ae51a);}const useTranslation=()=>{const _0x5e3fc7=_0x37758c,{lang:_0x41ab09,debug:_0x484f5e,pluralUtils:_0x56eb2c,resources:_0x33d45f}=_0x5677ce[_0x5e3fc7(0x12b)](I18nContext);function _0x45337d(_0x1a5cf8,_0x385a66){const _0x48b3b5=_0x5e3fc7,{found:_0x4e14dc,msg:_0x46cdcb}=getMsg(_0x1a5cf8,_0x33d45f[_0x41ab09],{'plural':_0x385a66===null||_0x385a66===void 0x0?void 0x0:_0x385a66[_0x48b3b5(0x114)],'pluralUtils':_0x56eb2c});_0x484f5e&&!_0x4e14dc&&console[_0x48b3b5(0x136)]('['+_0x41ab09+_0x48b3b5(0x113)+_0x1a5cf8+'\x27\x20is\x20missing.');if(_0x385a66===null||_0x385a66===void 0x0?void 0x0:_0x385a66[_0x48b3b5(0x12d)])return formatMsg(_0x46cdcb,_0x385a66===null||_0x385a66===void 0x0?void 0x0:_0x385a66['values'],!![]);return formatMsg(_0x46cdcb,_0x385a66===null||_0x385a66===void 0x0?void 0x0:_0x385a66[_0x48b3b5(0x109)],![]);}return{'t':_0x45337d,'lang':_0x41ab09};};export{I18nContext,I18nProvider,getTranslations,useTranslation};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckbox/i18n",
3
- "version": "0.0.4",
3
+ "version": "0.0.5-dev.0",
4
4
  "description": "i18n functionality",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",