Skip to content
This repository was archived by the owner on Jun 17, 2025. It is now read-only.

Commit ccd9f04

Browse files
committed
fix: i18n files lost after building
1 parent 6f24599 commit ccd9f04

File tree

5 files changed

+12
-5
lines changed

5 files changed

+12
-5
lines changed

src/components/Function/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const triggerScroll = () => {
2222
<TokenUsage />
2323

2424
<!-- 当前聊天角色对象 -->
25-
<i18n-t keypath="session.chatWith" tag="div">
25+
<i18n-t keypath="session.chatWith" tag="div" scope="global">
2626
<a-tooltip :content="t('session.chatTip')">
2727
<span class="mark cursor-pointer" @click="triggerScroll">
2828
{{ currentRole?.name }}

src/components/Session/components/NoSession.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const { shortcutKeys } = storeToRefs(useSettingsStore())
2525
>
2626

2727
<span>
28-
<i18n-t keypath="session.empty.role" tag="label">
28+
<i18n-t keypath="session.empty.role" tag="label" scope="global">
2929
<a-typography-text code>/</a-typography-text>
3030
</i18n-t>
3131
</span>

src/components/Settings/components/General.vue

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,12 @@ const relaunch = () => {
7171
<a-switch v-model="proxy.bypass" type="round"></a-switch>
7272

7373
<span class="text-sm text-[var(--color-text-3)]" v-if="proxy.bypass">
74-
<i18n-t keypath="setting.general.proxyTip" tag="label" for="restart">
74+
<i18n-t
75+
keypath="setting.general.proxyTip"
76+
tag="label"
77+
for="restart"
78+
scope="global"
79+
>
7580
<span class="mark cursor-pointer" @click="relaunch">{{
7681
$t('setting.general.restart')
7782
}}</span>

src/components/Settings/components/Model.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ watch(
9393
{{ usedCredit }} / {{ totalCredit }}
9494
</div> -->
9595
<div>{{ $t('setting.model.balanceTip') }}</div>
96-
<i18n-t keypath="setting.model.aiModelTip" tag="label">
96+
<i18n-t keypath="setting.model.aiModelTip" tag="label" scope="global">
9797
<span class="mark">gpt-3.5-turbo-0301</span>
9898
</i18n-t>
9999
</div>

vite.config.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ import VueI18nPlugin from '@intlify/unplugin-vue-i18n/vite'
1414
export default defineConfig(async () => ({
1515
plugins: [
1616
vue(),
17-
VueI18nPlugin({}),
17+
VueI18nPlugin({
18+
include: ['./src/locales/**']
19+
}),
1820
Unocss({
1921
presets: [presetUno(), presetIcons(), presetAutoprefixer()],
2022
transformers: [

0 commit comments

Comments
 (0)