fix: 修复模板字符串中缺失admin前缀的i18n key
This commit is contained in:
@@ -432,7 +432,7 @@ onMounted(() => {
|
||||
</div>
|
||||
<div class="flex justify-between text-sm">
|
||||
<span class="text-muted-foreground">{{ t('admin.cloudVariables.create.type') }}</span>
|
||||
<span>{{ t(`.cloudVariables.types.${form.var_type}`) }}</span>
|
||||
<span>{{ t(`admin.cloudVariables.types.${form.var_type}`) }}</span>
|
||||
</div>
|
||||
<div v-if="form.var_type === 'stream'" class="flex justify-between text-sm">
|
||||
<span class="text-muted-foreground">最大记录数</span>
|
||||
|
||||
@@ -269,7 +269,7 @@ export function getColumns(t: Composer['t']): ColumnDef<Log>[] {
|
||||
cell: ({ row }) => {
|
||||
const action = row.getValue('action') as string
|
||||
if (!action) return '-'
|
||||
const actionKey = `.logs.actions.${action}`
|
||||
const actionKey = `admin.logs.actions.${action}`
|
||||
const translated = t(actionKey)
|
||||
return translated === actionKey ? action : translated
|
||||
},
|
||||
|
||||
@@ -294,7 +294,7 @@ onMounted(() => {
|
||||
</div>
|
||||
<div class="flex justify-between text-sm">
|
||||
<span class="text-muted-foreground">{{ t('admin.cloudConstants.create.type') }}</span>
|
||||
<span>{{ t(`.cloudConstants.types.${form.var_type}`) }}</span>
|
||||
<span>{{ t(`admin.cloudConstants.types.${form.var_type}`) }}</span>
|
||||
</div>
|
||||
<div class="flex justify-between text-sm">
|
||||
<span class="text-muted-foreground">{{ t('admin.cloudConstants.create.key') }}</span>
|
||||
|
||||
@@ -412,7 +412,7 @@ onMounted(() => {
|
||||
</div>
|
||||
<div class="flex justify-between text-sm">
|
||||
<span class="text-muted-foreground">{{ t('admin.cloudVariables.create.type') }}</span>
|
||||
<span>{{ t(`.cloudVariables.types.${form.var_type}`) }}</span>
|
||||
<span>{{ t(`admin.cloudVariables.types.${form.var_type}`) }}</span>
|
||||
</div>
|
||||
<div class="flex justify-between text-sm">
|
||||
<span class="text-muted-foreground">{{ t('admin.cloudVariables.create.key') }}</span>
|
||||
|
||||
Reference in New Issue
Block a user