i18n for setting dialog header (#343)

This commit is contained in:
Chenlei Hu
2024-08-09 09:30:08 -04:00
committed by GitHub
parent 0d31dc5b4c
commit ce14c1c071
3 changed files with 4 additions and 4 deletions

View File

@@ -2,7 +2,7 @@
<div>
<h2>
<i class="pi pi-cog"></i>
<span>Settings</span>
<span>{{ $t('settings') }}</span>
<Tag :value="frontendVersion" severity="secondary" class="version-tag" />
</h2>
</div>

View File

@@ -2,7 +2,7 @@
<SideBarIcon
icon="pi pi-cog"
@click="showSetting"
:tooltip="$t('sideToolBar.settings')"
:tooltip="$t('settings')"
/>
</template>

View File

@@ -2,8 +2,8 @@ import { createI18n } from 'vue-i18n'
const messages = {
en: {
settings: 'Settings',
sideToolBar: {
settings: 'Settings',
themeToggle: 'Toggle Theme',
queue: 'Queue',
nodeLibrary: 'Node Library',
@@ -13,8 +13,8 @@ const messages = {
}
},
zh: {
settings: '设置',
sideToolBar: {
settings: '设置',
themeToggle: '主题切换',
queue: '队列',
nodeLibrary: '节点库',