fix: zh -> zh-Hans

This commit is contained in:
2025-05-14 15:58:11 +00:00
parent 77f5b6cd5e
commit 45b06e4478
4 changed files with 4 additions and 4 deletions

View File

@ -1,7 +1,7 @@
{
"$schema": "https://schema.tauri.app/config/2",
"productName": "STARTLINER",
"version": "0.20.1",
"version": "0.21.0",
"identifier": "zip.patafour.startliner",
"build": {
"beforeDevCommand": "bun run dev",

View File

@ -217,7 +217,7 @@ const importPick = async () => {
{ title: 'English', value: 'en' },
{ title: '日本語', value: 'ja' },
{ title: 'Polski', value: 'pl' },
{ title: '简体中文', value: 'zh' },
{ title: '简体中文', value: 'zh-Hans' },
]"
size="small"
option-label="title"

View File

@ -1,7 +1,7 @@
import en from './i18n/en';
import { createI18n } from 'vue-i18n';
export type Locale = 'en' | 'ja' | 'pl' | 'zh';
export type Locale = 'en' | 'ja' | 'pl' | 'zh-Hans';
const loadLocaleMessages = async (locale: Locale) => {
return (await import(`./i18n/${locale}.ts`)).default;
@ -13,7 +13,7 @@ const i18n = createI18n({
fallbackLocale: 'en',
warnHtmlInMessage: false,
warnHtmlMessage: false,
messages: { en, ja: {}, pl: {}, zh: {} },
messages: { en, ja: {}, pl: {}, 'zh-Hans': {} },
});
const setLocale = async (locale: Locale) => {