* feat: compact theme * fix: theme * fix: styling * fix: margin * feat: improve * fix: remove console.log * test: enable plugin test * refactor: multi app * test: lazy load sync plugin * test: lazy load test * fix: beforeGetApplication Event * feat: loadFromDatabase options in traverseSubApps * fix: test * fix: multi app manager test * chore: test * test: should upgrade sub apps when main app upgrade * feat: plugin require check * chore: yarn.lock * fix: sql typo * feat: share collections * fix: record name * test: belongs to many repository * fix: belongs to many with targetKey alias * fix: extend collection error * fix: transaction error * feat: collection graph * fix: update options in collection * chore: collections graph * chore: export uitls * feat: connected nodes method in collections graph * feat: exclude params in connected nodes * chore: sub app collection list params * fix: collections graph * feat: syncToApps migration * fix: translation --------- Co-authored-by: chenos <chenlinxh@gmail.com>
12 lines
276 B
TypeScript
12 lines
276 B
TypeScript
import { useTranslation } from 'react-i18next';
|
|
|
|
export const usePluginUtils = () => {
|
|
const { t } = useTranslation('multi-app-share-collection');
|
|
|
|
return { t };
|
|
};
|
|
|
|
export const i18nText = (text) => {
|
|
return `{{t("${text}", { ns: 'multi-app-share-collection' })}}`;
|
|
};
|