UNPKG
andrei-bread-i18n
Version:
latest (0.1.1)
0.1.1
Small and type-safe package to create multi-language interfaces.
andrei-bread-i18n
/
src
/
react
/
context.ts
5 lines
(3 loc)
•
142 B
text/typescript
View Raw
1
2
3
4
5
import
{ createContext }
from
"react"
;
import
{
I18N
}
from
"../i18n"
;
export
const
I18NContext = createContext<
I18N
<
any
> |
null
>(
null
);