feat(i18n): i18n auto-importer

This commit is contained in:
JellyBrick
2023-12-02 02:13:49 +09:00
parent c8554a12f6
commit fd3438a20d
8 changed files with 75 additions and 16 deletions

View File

@ -0,0 +1,11 @@
export interface LanguageResources {
[lang: string]: {
translation: Record<string, unknown> & {
language: {
name: string;
'local-name': string;
code: string;
};
};
};
}

View File

@ -1,11 +0,0 @@
import enJson from './en.json';
import koJson from './ko.json';
export const languageResources = {
en: {
translation: enJson
},
ko: {
translation: koJson
}
};