import { km } from './translations/km';
import { ga } from './translations/ga';
import { sr_Latn } from './translations/sr_Latn';
+import { ko } from './translations/ko';
// https://github.com/nimbusec-oss/inferno-i18next/blob/master/tests/T.test.js#L66
const resources = {
km,
ga,
sr_Latn,
+ ko,
};
function format(value: any, format: any, lng: any): any {
return format === 'uppercase' ? value.toUpperCase() : value;
}
-export function i18nextSetup() {
- i18next.init({
- debug: false,
- // load: 'languageOnly',
+i18next.init({
+ debug: false,
+ // load: 'languageOnly',
+
+ // initImmediate: false,
+ lng: getLanguage(),
+ fallbackLng: 'en',
+ resources,
+ interpolation: { format },
+});
- // initImmediate: false,
- lng: getLanguage(),
- fallbackLng: 'en',
- resources,
- interpolation: { format },
- });
-}
export { i18next as i18n, resources };