When the locale is changed in the localized version of UIO, the text direction should also be adjusted, where applicable. E.g. Farsi uses a right-to-left script, so the markup should be updated accordingly via the HTML dir attribute.
Consider storing the text direction in the message files, along with the localized strings.
The value could be stored/updated here: