mirror of
https://github.com/revoltchat/revite.git
synced 2024-11-13 02:39:58 -05:00
15 lines
333 B
TypeScript
15 lines
333 B
TypeScript
|
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>
|
||
|
)
|
||
|
}
|