mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-18 16:54:25 +08:00
code refactor
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user