* refactor: audit-log * refactor: audit-log fix view action * refactor: audit-log view fix * refactor(audit-log): collection field fix * refactor: audit-log view field fix * refactor(audit-log): support fixedBlock * refactor(audit-log): i18n fix * refactor(audit-log): fixedTable and drag issue * refactor(audit-log): remove template support * refactor(audit-log): drag fix * refactor(audit-log): disableTemplate & DndContext --------- Co-authored-by: anuoua <anuoua@gmail.com>
13 lines
292 B
TypeScript
13 lines
292 B
TypeScript
import { i18n } from '@nocobase/client';
|
|
import { useTranslation } from 'react-i18next';
|
|
|
|
export const NAMESPACE = 'audit-logs';
|
|
|
|
export function lang(key: string) {
|
|
return i18n.t(key, { ns: NAMESPACE });
|
|
}
|
|
|
|
export function useAuditLogsTranslation() {
|
|
return useTranslation(NAMESPACE);
|
|
}
|