Translate module link name in project settings (#18343)

* Translate module link name in project settings

* Add changset
This commit is contained in:
ian
2023-04-28 01:14:28 +08:00
committed by GitHub
parent cdf8d94ec1
commit 321cd1e9c9
2 changed files with 7 additions and 1 deletions

View File

@@ -69,6 +69,7 @@ import { nanoid } from 'nanoid';
import { Field, DeepPartial } from '@directus/types';
import { MODULE_BAR_DEFAULT } from '@/constants';
import { useExtensions } from '@/extensions';
import { translate } from '@/utils/translate-object-values';
type PreviewExtra = {
to: string;
@@ -200,7 +201,7 @@ export default defineComponent({
...part,
to: part.url,
icon: part.icon,
name: part.name,
name: translate(part.name),
};
}