The title says it all. I’m in my locale in the popup at the top in Designer. Select the Locales list > Locale > Dropdown link… right click, Translate to Thai (in this case)… nothing happens! Publish the site, just to see… nope, when I switch to the Thai locale, “English” and “Thai” show as exactly that in English.

How can I auto translate this? Kinda crazy that I have to ask this.

Also, seems like there’s no way to select the individual words. In most use cases, I’d want the language on my English locale to show IN Thai in the dropdown (and vice versa). That seems almost universal. Is this possible?

You can use my approach here-

However what you’re describing is slightly different.
I’m displaying each locale in its localized name regardless of the locale you have selected. I prefer that approach since e.g. a Chinese speaker on a Dutch site may not recognize their locale written in Dutch.

If you really want to localize the locale names to the currently-selected locale you could adjust the CSS in my example to use the :lang() pseudoselector and customize the :before content to the current locale.



Source link

Leave a Reply

Your email address will not be published. Required fields are marked *