tachybase_todo/packages/plugins/@nocobase/plugin-localization-management/src/server/constans.ts
YANG QIA ff097936dd
fix(lm): reserve i18n namespaces for plugins to avoid conflicts (#3121)
* fix: fix T-2063

* fix: fix T-2589

* chore: remove translation of page header

* chore: add version check for migration

* chore: switch locale files to JSON format

* fix: bug

* fix(auth): fix translation

* fix: add App provider

---------

Co-authored-by: chenos <chenlinxh@gmail.com>
2023-12-06 14:30:17 +08:00

16 lines
386 B
TypeScript

export const CACHE_KEY = 'localization:texts';
export const NAMESPACE_PREFIX = 'lm-';
export const NAMESPACE_MENUS = `${NAMESPACE_PREFIX}menus`;
export const NAMESPACE_COLLECTIONS = `${NAMESPACE_PREFIX}collections`;
export const EXTEND_MODULES = [
{
value: NAMESPACE_MENUS,
label: 'Menu',
},
{
value: NAMESPACE_COLLECTIONS,
label: 'Collections & Fields',
},
];