migrate i18n helper.js some code to typescript and migrate vue file to composition API and typescript

This commit is contained in:
MaysWind
2025-01-11 00:49:21 +08:00
parent 25c8b9baf8
commit 8da3d2aa35
30 changed files with 937 additions and 492 deletions
+2 -2
View File
@@ -2,7 +2,7 @@ import en from './en.json';
import vi from './vi.json';
import zhHans from './zh_Hans.json';
interface LanguageInfo {
export interface LanguageInfo {
name: string;
displayName: string;
alternativeLanguageTag: string;
@@ -10,7 +10,7 @@ interface LanguageInfo {
content: object;
}
export const defaultLanguage: string = 'en';
export const DEFAULT_LANGUAGE: string = 'en';
// To add new languages, please refer to https://ezbookkeeping.mayswind.net/translating
export const allLanguages: Record<string, LanguageInfo> = {