]> Untitled Git - lemmy.git/blobdiff - ui/src/i18next.ts
routes.api: fix get_captcha endpoint (#1135)
[lemmy.git] / ui / src / i18next.ts
index 5d68b180330c87dcf3512fb2c47966fd366c8cee..39f7d65ccc08ef481847287aae7a522bb910651e 100644 (file)
@@ -28,6 +28,7 @@ import { sq } from './translations/sq';
 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 = {
@@ -59,22 +60,22 @@ 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 };