* feat: snapshort init * feat: snapshot update yarn.lock * feat: snapshot add to preset * feat: snapshot add field fix * feat: snapshot remove Table Column SnapshotField * feat: snapshot field label fix * feat: snapshot request error fix * feat: snapshot 二级关联数据打开 * feat: snapshot batch edit fix * feat: snapshot 2 level draw fix * feat: snapshot translate * feat: snapshot global historyCollection provider * feat: snapshot install initial * feat: snapshot refreshCH * feat: snapshot add transaction * feat: snapshot default collecitonField * feat: snapshot build fix * feat: snapshot useSnapshotFieldTargetCollectionKey * feat: snapshot batch update * feat: snapshot linkto support * feat: snapshot use getRepository * feat: snapshot recreate fix * feat: snapshot collectionKey to collectionName & rebuild collection * feat: snapshot remove SnapshotHistoryCollectionProvider & collectionName * feat: snapshot use historyCollections in inherit table * feat: snapshot fix TableSelectorBlock appends * feat: snapshot kanban fix * feat: snapshot snapshot association field fix * feat: snapshot add CollectionFieldProvider fallback * feat: snapshot AssociationSelect fix * feat: snapshot TableField fix
25 lines
662 B
TypeScript
25 lines
662 B
TypeScript
import { i18n } from '@nocobase/client';
|
|
import { useTranslation } from 'react-i18next';
|
|
|
|
import enUS from './en-US';
|
|
import jaJP from './ja-JP';
|
|
import ruRU from './ru-RU';
|
|
import trTR from './tr-TR';
|
|
import zhCN from './zh-CN';
|
|
|
|
export const NAMESPACE = 'snapshot-field';
|
|
|
|
i18n.addResources('zh-CN', NAMESPACE, zhCN);
|
|
i18n.addResources('en-US', NAMESPACE, enUS);
|
|
i18n.addResources('ja-JP', NAMESPACE, jaJP);
|
|
i18n.addResources('ru-RU', NAMESPACE, ruRU);
|
|
i18n.addResources('tr-TR', NAMESPACE, trTR);
|
|
|
|
export function lang(key: string) {
|
|
return i18n.t(key, { ns: NAMESPACE });
|
|
}
|
|
|
|
export function useSnapshotTranslation() {
|
|
return useTranslation(NAMESPACE);
|
|
}
|