code refactor

This commit is contained in:
MaysWind
2025-01-14 00:14:07 +08:00
parent 593e123610
commit f4ea9a85f0
11 changed files with 73 additions and 73 deletions
+5 -5
View File
@@ -116,14 +116,14 @@ import { useSettingsStore } from '@/stores/setting.ts';
import { useUserStore } from '@/stores/user.ts';
export interface LocalizedErrorParameter {
key: string;
localized: boolean;
value: string;
readonly key: string;
readonly localized: boolean;
readonly value: string;
}
export interface LocalizedError {
message: string;
parameters?: LocalizedErrorParameter[];
readonly message: string;
readonly parameters?: LocalizedErrorParameter[];
}
export function getI18nOptions(): object {
+5 -5
View File
@@ -3,11 +3,11 @@ import vi from './vi.json';
import zhHans from './zh_Hans.json';
export interface LanguageInfo {
name: string;
displayName: string;
alternativeLanguageTag: string;
aliases?: string[];
content: object;
readonly name: string;
readonly displayName: string;
readonly alternativeLanguageTag: string;
readonly aliases?: string[];
readonly content: object;
}
export const DEFAULT_LANGUAGE: string = 'en';