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