@ckbox/i18n 0.0.6 → 1.1.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.
package/dist/index.d.ts CHANGED
@@ -99,14 +99,6 @@ interface Props extends I18nProps {
99
99
  children: React.ReactNode;
100
100
  }
101
101
 
102
- /**
103
- * Gets resources from global scope.
104
- *
105
- * @param locale requested language
106
- * @returns translations
107
- */
108
- declare const getTranslations: (locale: string) => I18nTranslations;
109
-
110
102
  interface TOpts<T extends boolean> {
111
103
  /**
112
104
  * Values to interpolate message with.
@@ -135,4 +127,4 @@ declare const useTranslation: () => {
135
127
  lang: string;
136
128
  };
137
129
 
138
- export { I18nContext, I18nProps, I18nProvider, I18nResources, I18nTranslations, getTranslations, useTranslation };
130
+ export { I18nContext, I18nProps, I18nProvider, I18nResources, I18nTranslations, useTranslation };
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 _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};
4
+ const _0x5df495=_0xdd54;(function(_0x44895e,_0x337861){const _0x53dbcf=_0xdd54,_0x4be460=_0x44895e();while(!![]){try{const _0x1e189a=-parseInt(_0x53dbcf(0x106))/0x1+parseInt(_0x53dbcf(0xf0))/0x2*(parseInt(_0x53dbcf(0x103))/0x3)+-parseInt(_0x53dbcf(0xe6))/0x4+parseInt(_0x53dbcf(0xde))/0x5*(-parseInt(_0x53dbcf(0xe2))/0x6)+parseInt(_0x53dbcf(0xfc))/0x7*(parseInt(_0x53dbcf(0x109))/0x8)+-parseInt(_0x53dbcf(0xf1))/0x9*(parseInt(_0x53dbcf(0xf2))/0xa)+-parseInt(_0x53dbcf(0xf8))/0xb*(-parseInt(_0x53dbcf(0x10d))/0xc);if(_0x1e189a===_0x337861)break;else _0x4be460['push'](_0x4be460['shift']());}catch(_0x5cf0de){_0x4be460['push'](_0x4be460['shift']());}}}(_0x71f3,0x8c6f2));import*as _0x3dc6c9 from'react';import{sprintf}from'sprintf-js';function _0xdd54(_0x4e8002,_0x56231d){const _0x71f33=_0x71f3();return _0xdd54=function(_0xdd5445,_0x6f12c5){_0xdd5445=_0xdd5445-0xdd;let _0x4fa729=_0x71f33[_0xdd5445];return _0x4fa729;},_0xdd54(_0x4e8002,_0x56231d);}class Plural{constructor(_0x58a963){const _0x171a28=_0xdd54;this[_0x171a28(0xfe)]=_0x58a963;try{this[_0x171a28(0xef)]=new Intl[(_0x171a28(0x10b))](_0x58a963);}catch(_0x4b7a6c){console[_0x171a28(0xf6)]('Plural\x20rules\x20could\x20not\x20be\x20created.\x20Perhaps\x20`Intl.PluralRules`\x20is\x20not\x20supported?');}}['getKey'](_0x53cad1,_0x328d86){const _0x12ae3c=_0xdd54;if(!this[_0x12ae3c(0xef)])return _0x53cad1+_0x12ae3c(0xe4);const _0x5a6b79=this[_0x12ae3c(0xef)][_0x12ae3c(0xed)](_0x328d86);return _0x53cad1+'_'+_0x5a6b79;}}Plural[_0x5df495(0x108)]=_0x47337a=>{const _0x5b146e=_0x5df495;try{return Intl[_0x5b146e(0x10b)][_0x5b146e(0xdf)]([_0x47337a])['length']>0x0;}catch(_0x5e092f){return![];}};const I18nContext=_0x3dc6c9[_0x5df495(0x10f)]({'changeLang':()=>{},'debug':![],'lang':'en','resources':{},'pluralUtils':new Plural('en')});function reducer(_0x6e1756,_0x1db6e8){const _0x2c5d70=_0x5df495;switch(_0x1db6e8[_0x2c5d70(0x104)]){case _0x2c5d70(0xfb):return{..._0x6e1756,'lang':_0x1db6e8[_0x2c5d70(0x105)]};case'loadTranslations':return{..._0x6e1756,'lang':_0x1db6e8['payload'][_0x2c5d70(0xfe)],'resources':{..._0x6e1756['resources'],[_0x1db6e8[_0x2c5d70(0x105)][_0x2c5d70(0xfe)]]:_0x1db6e8['payload'][_0x2c5d70(0x101)]}};}}function _0x71f3(){const _0x373ae7=['834033HIzZUs','type','payload','867750JBoCme','log','isSupported','272yviYgK','Fragment','PluralRules','createElement','24sofhyU','useContext','createContext','values','265745gpBdfe','supportedLocalesOf','filter','useEffect','6oblFXJ','slice','_one','\x22\x20is\x20not\x20supported.','2298512ptRUwN','Plural\x20form\x20for\x20language\x20\x22','processTags',']:\x20Translation\x20for\x20key\x20\x27','text','includes','useReducer','select','charAt','_rules','6SzzlPh','9dGzMUN','6984480mzjuLl','pluralUtils','loadTranslations','strong','warn','getKey','10622249kuZILs','indexOf','plural','changeLang','791PovbQG','length','lang','\x27\x20is\x20missing.','exec','translations','map'];_0x71f3=function(){return _0x373ae7;};return _0x71f3();}const useI18n=({debug:debug=![],loadURL:_0x5da9be,lang:_0x2ff140='en',resources:_0x7ee5c4={}})=>{const _0x4a856d=_0x5df495,[{lang:_0x71b888,resources:_0x166c99},_0x5d59bb]=_0x3dc6c9[_0x4a856d(0xec)](reducer,{'lang':_0x2ff140,'resources':_0x7ee5c4});_0x3dc6c9[_0x4a856d(0xe1)](()=>{const _0x4261a3=_0x4a856d,_0x5c2891=Plural[_0x4261a3(0x108)](_0x71b888);!_0x5c2891&&console[_0x4261a3(0xf6)](_0x4261a3(0xe7)+_0x71b888+_0x4261a3(0xe5));},[_0x71b888]),_0x3dc6c9[_0x4a856d(0xe1)](()=>{if(_0x166c99[_0x71b888]||!_0x5da9be)return;fetch(_0x5da9be(_0x71b888))['then'](_0x3d737b=>_0x3d737b['json']())['then'](_0x445b9a=>{const _0x19185a=_0xdd54;_0x5d59bb({'type':_0x19185a(0xf4),'payload':{'lang':_0x71b888,'translations':_0x445b9a}});});},[_0x71b888,_0x5da9be,_0x166c99]);const _0x58e650=_0x22beb2=>{const _0x18b7f1=_0x4a856d;_0x5d59bb({'type':_0x18b7f1(0xfb),'payload':_0x22beb2});};return{'changeLang':_0x58e650,'debug':debug,'lang':_0x71b888,'pluralUtils':new Plural(_0x71b888),'resources':_0x166c99};},I18nProvider=({children:_0x1a6ed6,..._0x2a1be0})=>{const _0x3aeea6=_0x5df495,_0x1474c5=useI18n(_0x2a1be0);return _0x3dc6c9[_0x3aeea6(0x10c)](I18nContext['Provider'],{'value':_0x1474c5},_0x1a6ed6);},TAG_REGEX=/<[a-zA-Z0-9\-!/](?:"[^"]*"|'[^']*'|[^'">])*>/g,ALLOWED_TAGS=['em',_0x5df495(0xf5),'code'],getMsg=(_0x1e5f92,_0x574b71={},_0x2aebb9)=>{const _0x273619=_0x5df495,_0x12967a=_0x2aebb9[_0x273619(0xfa)];if(_0x574b71[_0x1e5f92]&&_0x12967a===undefined)return{'found':!![],'msg':_0x574b71[_0x1e5f92]};const _0x5b043a=Object['keys'](_0x574b71)[_0x273619(0xe0)](_0x4d3a8a=>_0x4d3a8a[_0x273619(0xf9)](_0x1e5f92)===0x0);if(_0x5b043a[_0x273619(0xfd)]===0x0||_0x12967a===undefined)return{'found':![],'msg':_0x1e5f92};const _0x1b9537=_0x2aebb9[_0x273619(0xf3)][_0x273619(0xf7)](_0x1e5f92,_0x12967a);return{'found':!![],'msg':_0x574b71[_0x1b9537]};},parseMsgTags=_0x5e61ed=>{const _0x2f430c=_0x5df495,_0x556974=[];let _0x3b4e5c=0x0,_0x43e840;while((_0x43e840=TAG_REGEX[_0x2f430c(0x100)](_0x5e61ed))!==null){const _0x14ce8a=_0x43e840[0x0],{index:_0x364e47}=_0x43e840,_0x23f211=_0x14ce8a[_0x2f430c(0xee)](0x1)==='/',_0x44021c=_0x23f211?_0x14ce8a[_0x2f430c(0xe3)](0x2,-0x1):_0x14ce8a['slice'](0x1,-0x1),_0x5a4e61=ALLOWED_TAGS[_0x2f430c(0xeb)](_0x44021c);if(!_0x5a4e61)continue;const _0x4ae498=_0x5e61ed[_0x2f430c(0xe3)](_0x3b4e5c,_0x364e47);if(!_0x4ae498){_0x3b4e5c=_0x364e47+_0x14ce8a[_0x2f430c(0xfd)];continue;}_0x23f211?_0x556974['push']({'type':'tag','name':_0x14ce8a[_0x2f430c(0xe3)](0x2,-0x1),'content':_0x4ae498}):_0x556974['push']({'type':_0x2f430c(0xea),'content':_0x4ae498}),_0x3b4e5c=_0x364e47+_0x14ce8a[_0x2f430c(0xfd)];}return _0x3b4e5c<_0x5e61ed['length']&&_0x556974['push']({'type':'text','content':_0x5e61ed['slice'](_0x3b4e5c)}),_0x556974;};function formatMsgWithTags(_0x46d13b){const _0x98f981=_0x5df495,_0x3daee0=parseMsgTags(_0x46d13b),_0x21ca52=_0x3daee0[_0x98f981(0x102)](({content:_0x37657d,type:_0xfd42e3,name:_0x26f2b7},_0x21fec4)=>{const _0x3517f6=_0x98f981,_0x28b66e=_0xfd42e3!=='text'&&_0x26f2b7?_0x26f2b7:_0x3dc6c9[_0x3517f6(0x10a)];return _0x3dc6c9[_0x3517f6(0x10c)](_0x28b66e,{'key':''+_0x21fec4},_0x37657d);});return _0x21ca52;}function formatMsg(_0x5013f5,_0x11df5d,_0x41708a){const _0x541898=sprintf(_0x5013f5,..._0x11df5d!==null&&_0x11df5d!==void 0x0?_0x11df5d:[]);if(!_0x41708a)return _0x541898;return formatMsgWithTags(_0x541898);}const useTranslation=()=>{const _0xee868e=_0x5df495,{lang:_0x2c7f34,debug:_0x132ba4,pluralUtils:_0x16368f,resources:_0x12f4a4}=_0x3dc6c9[_0xee868e(0x10e)](I18nContext);function _0xdfa454(_0x212e98,_0x56c021){const _0x5d7dc4=_0xee868e,{found:_0x5140ae,msg:_0x20bad7}=getMsg(_0x212e98,_0x12f4a4[_0x2c7f34],{'plural':_0x56c021===null||_0x56c021===void 0x0?void 0x0:_0x56c021['plural'],'pluralUtils':_0x16368f});_0x132ba4&&!_0x5140ae&&console[_0x5d7dc4(0x107)]('['+_0x2c7f34+_0x5d7dc4(0xe9)+_0x212e98+_0x5d7dc4(0xff));if(_0x56c021===null||_0x56c021===void 0x0?void 0x0:_0x56c021[_0x5d7dc4(0xe8)])return formatMsg(_0x20bad7,_0x56c021===null||_0x56c021===void 0x0?void 0x0:_0x56c021['values'],!![]);return formatMsg(_0x20bad7,_0x56c021===null||_0x56c021===void 0x0?void 0x0:_0x56c021[_0x5d7dc4(0xdd)],![]);}return{'t':_0xdfa454,'lang':_0x2c7f34};};export{I18nContext,I18nProvider,useTranslation};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckbox/i18n",
3
- "version": "0.0.6",
3
+ "version": "1.1.0",
4
4
  "description": "i18n functionality",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -11,6 +11,5 @@
11
11
  "dependencies": {
12
12
  "sprintf-js": "^1.1.2",
13
13
  "tslib": "^2.4.0"
14
- },
15
- "readme": "## @ckbox/i18n\n\nTo be filled in.\n"
14
+ }
16
15
  }