1
0
ohmyform/ui/i18n.ts
Michael Schramm 9c4c325e5a
Switch to single branch (#221)
* remove submodules
* add api and ui files
* update github actions
* use sparse checkout
* update node setup
* update checkout
* update docker
* change permissions
* update mariadb health check
* update changelog
2023-12-02 19:22:40 +01:00

21 lines
504 B
TypeScript

import i18n from "i18next"
import detector from "i18next-browser-languagedetector"
import {initReactI18next} from "react-i18next"
import {resources} from './locales'
export const languages = Object.keys(resources)
i18n
.use(detector)
.use(initReactI18next)
.init({
fallbackLng: 'en',
resources,
defaultNS: 'common',
react: {
useSuspense: process.browser,
transSupportBasicHtmlNodes: true,
transKeepBasicHtmlNodesFor: ['br', 'strong', 'i', 'em', 'u'],
}
})