Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing documentation on how to translate dropdownlist items #6863

Closed
croban opened this issue Feb 7, 2025 · 2 comments
Closed

Missing documentation on how to translate dropdownlist items #6863

croban opened this issue Feb 7, 2025 · 2 comments

Comments

@croban
Copy link

croban commented Feb 7, 2025

Here is nice how to translate doc-types and almost everything.:

13/umbraco-cms/fundamentals/data/defining-content/document-type-localization.md(url)

but what I miss is how to traslate dropdowns/radiobuttonlist/toggle

Image

@sofietoft
Copy link
Contributor

Thanks for reporting this @croban !

I'll make sure we look into this as soon as possible.

@eshanrnh
Copy link
Contributor

Hi @croban 👋,

Apologies for the long wait on this one. After checking with the team, this feature of Document Type Localization works only for the following elements, as mentioned in the documentation:

  • Document Type names and descriptions.
  • Property names and descriptions.
  • Custom property validation messages.
  • Tab and group names.

Unfortunately, this feature does not apply to Data Type Settings (such as dropdowns, radio button lists, and toggles).

At the moment, there isn’t a built-in way to localize these labels in the Backoffice. However, if you need translations for the frontend, you can use the Dictionary feature in the Umbraco Backoffice:

  1. Go to Translation > Dictionary in the Backoffice.
  2. Create a new dictionary item, e.g.:
    • Key: label-is-on
      • Danish translation: "The label er slået til"
      • English translation: "The label is on"
    • (Repeat for label-is-off.)
  3. In your Toggle property settings, set:
    • Label (on state): #label-is-on
    • Label (off state): #label-is-off
  4. In your template, render the dictionary item using
    @Umbraco.GetDictionaryValue("label-is-on")

This allows you to manage translations for these property labels on the frontend, but unfortunately, it won’t affect how they appear in the Backoffice.

Let me know if you have any other questions.

@croban croban closed this as not planned Won't fix, can't repro, duplicate, stale Mar 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants