Can we setup Drop-down list with Data source support localization & translation?

Son Dang asked on July 15, 2024 10:20

Hi guys, I have a field with form control: Drop-down list and Datasource as image

https://drive.google.com/file/d/1xmDICrGeEnFhv2Hb_D5QvSul4eBiPJps/view?usp=drive_link

Can we setup the value show for each culture in Content of page?

https://drive.google.com/file/d/14SPnRcFcL8oEYxCFV6Z01BgcZHFguPHq/view?usp=drive_link

Expect: Test in UK-en = Next and Test in Germany-German = Weiter

Recent Answers


Juraj Ondrus answered on July 15, 2024 13:10

The format "1; {$testString$}" works fine for me. Make sure you have no spaces or other whitespace characters in place. Check also the Event log.
However, the question is what you want to achieve? The macro will be resolved only in the admin UI - meaning that if there is an editor who has the preferred UI culture set to DE, then the string will be translated. It has no impact on the live site as the actual value saved into the DB is the "1" in this example. So, in your front end app you need to add logic to display appropriate translation for each value.

1 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.