* get basic hindi support to work * get web app language switcher in * Refactor i18n implementation and remove unused code * add missing strings * add dropdowns and modals missing strings * complete all hindi translations * fix merge conflicts * fix legeacy persisted state * fix data in RecommendedFeeds * fix lint
9 lines
347 B
TypeScript
9 lines
347 B
TypeScript
import React from 'react'
|
|
import {I18nProvider as DefaultI18nProvider} from '@lingui/react'
|
|
import {i18n} from '@lingui/core'
|
|
import {useLocaleLanguage} from './i18n'
|
|
|
|
export default function I18nProvider({children}: {children: React.ReactNode}) {
|
|
useLocaleLanguage()
|
|
return <DefaultI18nProvider i18n={i18n}>{children}</DefaultI18nProvider>
|
|
}
|