mirror of
https://github.com/directus/directus.git
synced 2026-01-25 10:28:07 -05:00
Use finer scope for collection name translations
This commit is contained in:
@@ -648,7 +648,7 @@ rows:
|
||||
name: Translation
|
||||
type: string
|
||||
meta:
|
||||
interface: text-input
|
||||
interface: system-language
|
||||
width: half
|
||||
options:
|
||||
placeholder: Enter a translation...
|
||||
|
||||
@@ -34,13 +34,13 @@ export const useCollectionsStore = createStore({
|
||||
const { locale, translation } = collection.meta.translation[i];
|
||||
|
||||
i18n.mergeLocaleMessage(locale, {
|
||||
collections: {
|
||||
collection_names: {
|
||||
[collection.collection]: translation,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
name = i18n.t(`collections.${collection.collection}`);
|
||||
name = i18n.t(`collection_names.${collection.collection}`);
|
||||
} else {
|
||||
name = formatTitle(collection.collection);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user