init commit,

This commit is contained in:
louiscklaw
2025-05-28 09:55:51 +08:00
commit efe70ceb69
8042 changed files with 951668 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
import i18n from 'i18next';
import Languagedetector from 'i18next-browser-languagedetector';
import { initReactI18next } from 'react-i18next';
import en from './locales/en/en.json';
import hk from './locales/hk/hk.json';
i18n
.use(initReactI18next)
.use(Languagedetector)
.init({
resources: {
en: { translation: en },
zhHk: { translation: hk },
},
fallbackLng: 'en',
interpolation: {
escapeValue: false,
},
});
export { i18n };