This commit is contained in:
Mythie
2025-01-02 15:33:37 +11:00
committed by David Nguyen
parent 9183f668d3
commit f7a98180d7
413 changed files with 29538 additions and 1606 deletions

View File

@ -9,7 +9,9 @@ import { APP_I18N_OPTIONS } from '../constants/i18n';
export async function dynamicActivate(i18nInstance: I18n, locale: string) {
const extension = process.env.NODE_ENV === 'development' ? 'po' : 'js';
const { messages } = await import(`../translations/${locale}/web.${extension}`);
// const { messages } = await import(`../translations/${locale}/web.${extension}`);
// todo
const messages = {};
i18nInstance.loadAndActivate({ locale, messages });
}