mirror of
https://github.com/directus/directus.git
synced 2026-04-25 03:00:53 -04:00
fix translation of module names (#4057)
This commit is contained in:
@@ -5,7 +5,7 @@ import ActivityItem from './routes/item.vue';
|
||||
export default defineModule(({ i18n }) => ({
|
||||
id: 'activity',
|
||||
hidden: true,
|
||||
name: i18n.t('activity'),
|
||||
name: 'activity',
|
||||
icon: 'notifications',
|
||||
routes: [
|
||||
{
|
||||
|
||||
@@ -45,7 +45,7 @@ const checkForSystem: NavigationGuard = (to, from, next) => {
|
||||
|
||||
export default defineModule(({ i18n }) => ({
|
||||
id: 'collections',
|
||||
name: i18n.t('collections'),
|
||||
name: 'collections',
|
||||
icon: 'box',
|
||||
routes: [
|
||||
{
|
||||
|
||||
@@ -19,7 +19,7 @@ export default defineModule(({ i18n }) => {
|
||||
|
||||
return {
|
||||
id: 'docs',
|
||||
name: i18n.t('documentation'),
|
||||
name: 'documentation',
|
||||
icon: 'info',
|
||||
routes,
|
||||
order: 20,
|
||||
|
||||
@@ -5,7 +5,7 @@ import AddNew from './routes/add-new.vue';
|
||||
|
||||
export default defineModule(({ i18n }) => ({
|
||||
id: 'files',
|
||||
name: i18n.t('file_library'),
|
||||
name: 'file_library',
|
||||
icon: 'folder',
|
||||
routes: [
|
||||
{
|
||||
|
||||
@@ -21,7 +21,7 @@ import { useCollectionsStore, useFieldsStore } from '@/stores';
|
||||
|
||||
export default defineModule(({ i18n }) => ({
|
||||
id: 'settings',
|
||||
name: i18n.t('settings'),
|
||||
name: 'settings',
|
||||
icon: 'settings',
|
||||
color: 'var(--warning)',
|
||||
routes: [
|
||||
|
||||
@@ -5,7 +5,7 @@ import Item from './routes/item.vue';
|
||||
|
||||
export default defineModule(({ i18n }) => ({
|
||||
id: 'users',
|
||||
name: i18n.tc('user_directory'),
|
||||
name: 'user_directory',
|
||||
icon: 'people_alt',
|
||||
routes: [
|
||||
{
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<div class="modules">
|
||||
<v-button
|
||||
v-for="module in _modules"
|
||||
v-tooltip.right="module.name"
|
||||
v-tooltip.right="$t(module.name)"
|
||||
:key="module.id"
|
||||
icon
|
||||
x-large
|
||||
@@ -81,13 +81,11 @@ export default defineComponent({
|
||||
};
|
||||
}
|
||||
}),
|
||||
...registeredModules.filter((module) => module.persistent === true)
|
||||
]
|
||||
...registeredModules.filter((module) => module.persistent === true),
|
||||
];
|
||||
}
|
||||
|
||||
return registeredModules;
|
||||
});
|
||||
|
||||
return { _modules };
|
||||
},
|
||||
});
|
||||
@@ -95,10 +93,10 @@ export default defineComponent({
|
||||
|
||||
<style>
|
||||
body {
|
||||
--module-background: #18222F;
|
||||
--module-background-alt: var(--background-normal);
|
||||
--module-icon: #8196B1;
|
||||
--module-icon-alt: var(--foreground-normal-alt);
|
||||
--module-background: #18222f;
|
||||
--module-background-alt: var(--background-normal);
|
||||
--module-icon: #8196b1;
|
||||
--module-icon-alt: var(--foreground-normal-alt);
|
||||
}
|
||||
</style>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user