7f1dfcdd42
- Update translation index to support Korean
`application/src/translation/index.ts`
- Update translation indexes
`application/src/translation/{de,en,ja,km,zhcn}/index.ts`
- Update dropdown menu item in dashboard header
`application/src/components/dashboard/Header.tsx`
22 lines
656 B
TypeScript
22 lines
656 B
TypeScript
import enTranslations from './en';
|
|
import kmTranslations from './km';
|
|
import deTranslations from './de';
|
|
import koTranslations from './ko';
|
|
import jaTranslations from './ja';
|
|
import zhcnTranslations from './zhcn';
|
|
|
|
export type Language = "en" | "km" | "de" | "ko" | "ja" | "zhcn";
|
|
|
|
export const translations = {
|
|
en: enTranslations,
|
|
km: kmTranslations,
|
|
de: deTranslations,
|
|
ko: koTranslations,
|
|
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];
|