fix: i18n

This commit is contained in:
sealday 2024-03-15 19:19:32 +08:00
parent ebd35abeb0
commit e5038e2e96
3 changed files with 3 additions and 1 deletions

View File

@ -1,7 +1,7 @@
import { i18n, tval as nTval } from '@nocobase/client'; import { i18n, tval as nTval } from '@nocobase/client';
import { useTranslation } from 'react-i18next'; import { useTranslation } from 'react-i18next';
export const NAMESPACE = 'audit-logs'; export const NAMESPACE = '@hera/plugin-audit-logs';
export function lang(key: string) { export function lang(key: string) {
return i18n.t(key, { ns: NAMESPACE }); return i18n.t(key, { ns: NAMESPACE });

View File

@ -25,6 +25,7 @@
"Details of changes": "Details of changes", "Details of changes": "Details of changes",
"Details": "Details", "Details": "Details",
"Display fields": "Display fields", "Display fields": "Display fields",
"Display association fields": "Display association fields",
"Enable actions": "Enable actions", "Enable actions": "Enable actions",
"Field display name": "Field display name", "Field display name": "Field display name",
"Field value changes": "Field value changes", "Field value changes": "Field value changes",

View File

@ -24,6 +24,7 @@
"Delete": "删除", "Delete": "删除",
"Details of changes": "变化详情", "Details of changes": "变化详情",
"Details": "详情", "Details": "详情",
"Display association fields": "显示关联字段",
"Display fields": "显示字段", "Display fields": "显示字段",
"Enable actions": "启用的操作", "Enable actions": "启用的操作",
"Field display name": "字段显示名称", "Field display name": "字段显示名称",