diff --git a/rust/tauri.conf.json b/rust/tauri.conf.json index d7a257a..eb017a8 100644 --- a/rust/tauri.conf.json +++ b/rust/tauri.conf.json @@ -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", diff --git a/src/components/ProfileList.vue b/src/components/ProfileList.vue index 227cbab..22aae72 100644 --- a/src/components/ProfileList.vue +++ b/src/components/ProfileList.vue @@ -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" diff --git a/src/i18n.ts b/src/i18n.ts index b0bca60..b1309ab 100644 --- a/src/i18n.ts +++ b/src/i18n.ts @@ -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) => { diff --git a/src/i18n/zh.ts b/src/i18n/zh-Hans.ts similarity index 100% rename from src/i18n/zh.ts rename to src/i18n/zh-Hans.ts