Fix fallback of unrecognized extension categories (#1807)

This commit is contained in:
Chenlei Hu
2024-12-05 08:06:06 -08:00
committed by GitHub
parent c45f03f5e7
commit 80a42ebf10
2 changed files with 9 additions and 2 deletions

View File

@@ -144,7 +144,10 @@ const categories = computed<SettingTreeNode[]>(() =>
aboutPanelNode
].map((node) => ({
...node,
translatedLabel: t(`settingsCategories.${normalizeI18nKey(node.label)}`)
translatedLabel: t(
`settingsCategories.${normalizeI18nKey(node.label)}`,
node.label
)
}))
)

View File

@@ -1,7 +1,11 @@
<template>
<div class="setting-group">
<Divider v-if="divider" />
<h3>{{ $t(`settingsCategories.${normalizeI18nKey(group.label)}`) }}</h3>
<h3>
{{
$t(`settingsCategories.${normalizeI18nKey(group.label)}`, group.label)
}}
</h3>
<div
v-for="setting in group.settings"
:key="setting.id"