Skip to content

UI language files localization not working on document type property description #6811

@Luuk1983

Description

@Luuk1983

Which Umbraco version are you using? (Please write the exact version, example: 10.1.0)

15.1.1

Bug summary

I added translations for a number or properties that are placed on a composition. These are translations for the name and description of the property. The names of the properties get translated as expected, but the description doesn't get translated at all.

Specifics

I have to following translations (revised for easier reading):

export default {
	dashboardTabs: {
		websiteCreationDashboard: "ProudNerds admin panel"
	},
	headlessBaseContentTypes: {
		sitemapCompositionPropertyHideFromSitemapName: "Hide from sitemap",
		sitemapCompositionPropertyHideFromSitemapDescription: "If checked, the page will not be shown on the sitemap. This makes the page harder for search engines to index.",
		sitemapCompositionPropertyHideFromSitemapRequired: "Please select if this page should be hidden from the sitemap",
		sitemapCompositionPropertyRelativePriorityName: "Relative priority",
		sitemapCompositionPropertyRelativePriorityDescription: "Determines how relevant this page is compared to other pages on the site.",
		sitemapCompositionPropertyRelativePriorityRequired: "Please select a relative priority",
		sitemapCompositionPropertyChangeFrequencyName: "Change frequency",
		sitemapCompositionPropertyChangeFrequencyDescription: "Determines how often the content of this page changes. This will give search engines a hint on how often to (re)index the page.",
		sitemapCompositionPropertyChangeFrequencyRequired: "Please select how often the content of this page will change",
	}
};

They are registered correctly in my Umbraco package json file:

{
	"$schema": "../../umbraco-package-schema.json",
	"id": "ProudNerds.Umbraco.Core",
	"name": "Umbraco Core Content",
	"version": "4.0.0",
	"extensions": [
		{
			"name": "Umbraco Core",
			"alias": "ProudNerds.Umbraco.Core",
			"type": "bundle",
			"js": "/App_Plugins/CoreContent/umbraco-core.js"
		},
		{
			"type": "localization",
			"alias": "ProudNerds.Umbraco.Core.Localize.EnUS",
			"name": "English",
			"meta": {
				"culture": "en-US"
			},
			"js": "/App_Plugins/CoreContent/localization/en-US.js"
		},
		{
			"type": "localization",
			"alias": "ProudNerds.Umbraco.Core.Localize.NlNl",
			"name": "Dutch",
			"meta": {
				"culture": "nl-NL"
			},
			"js": "/App_Plugins/CoreContent/localization/nl-NL.js"
		}
	]
}

I have a Sitemap composition that uses these keys as the name and as the description of the properties in the Sitemap:
Image

When using the composition, the title translates very well between en-US and nl-NL. However, the description is never translated and only shows the key:

en-US:
Image

nl-NL:
Image

I copied and pasted the keys I used in Umbraco and the localization file into a text document to make sure I didn't have any typos.

Steps to reproduce

I think the 'Specifics' section explains enough :)

Expected result / actual result

I ofcourse expect the description to also be translated correctly using the keys.


This item has been added to our backlog AB#48113

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions