Use finer scope for collection name translations

This commit is contained in:
rijkvanzanten
2020-09-08 10:09:15 -04:00
parent 5a001d078a
commit b33f154ef4
2 changed files with 3 additions and 3 deletions

View File

@@ -648,7 +648,7 @@ rows:
name: Translation
type: string
meta:
interface: text-input
interface: system-language
width: half
options:
placeholder: Enter a translation...

View File

@@ -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);
}