f15a00772e
- Add simplified Chinese translation files - Add the Simplified Chinese option in the language selection - Update the translation index to support Simplified Chinese
20 lines
592 B
TypeScript
20 lines
592 B
TypeScript
import enTranslations from './en';
|
|
import kmTranslations from './km';
|
|
import deTranslations from './de';
|
|
import jaTranslations from './ja';
|
|
import zhcnTranslations from './zhcn';
|
|
|
|
export type Language = "en" | "km" | "de" | "ja" | "zhcn";
|
|
|
|
export const translations = {
|
|
en: enTranslations,
|
|
km: kmTranslations,
|
|
de: deTranslations,
|
|
ja: jaTranslations,
|
|
zhcn: zhcnTranslations,
|
|
};
|
|
|
|
// Type for accessing translations by module and key
|
|
export type TranslationModule = keyof typeof enTranslations;
|
|
export type TranslationKey<M extends TranslationModule> = keyof typeof enTranslations[M];
|