Files
riwa-ionic/src/locales/index.ts
Seven 3d9785fdf2 Refactor and enhance localization support; update language files and improve validation messages
- Updated localization files for Arabic and Traditional Chinese (Hong Kong).
- Added Arabic language support in the i18n configuration.
- Improved validation messages in the withdrawal schema.
- Refactored Vue components to ensure consistent usage of translation functions.
- Cleaned up CSS files for better formatting and consistency.
2025-12-20 05:30:59 +07:00

22 lines
461 B
TypeScript

import { createI18n } from "vue-i18n";
import ar from "./ar.json";
import enUS from "./en-US.json";
import zhCN from "./zh-CN.json";
import zhTW from "./zh-HK.json";
export type MessageSchema = typeof enUS;
const i18n = createI18n<MessageSchema, "en-US" | "zh-CN" | "zh-HK" | "ar">({
legacy: false,
locale: "zh-CN",
fallbackLocale: "en-US",
messages: {
"en-US": enUS,
"zh-CN": zhCN,
"zh-HK": zhTW,
"ar": ar,
},
});
export { i18n };