revite/src/context/Locale.tsx

15 lines
333 B
TypeScript
Raw Normal View History

2021-06-18 10:18:10 -04:00
import { IntlProvider } from "preact-i18n";
import definition from "../../external/lang/en.json";
interface Props {
children: JSX.Element | JSX.Element[]
}
export default function Locale({ children }: Props) {
return (
<IntlProvider definition={definition}>
{ children }
</IntlProvider>
)
}