Is there a way to specific a "text alignment" for each locale?

I am using both RTL and LTL languages in my game (Arabic and English), So I have a problem with the alignment of my texts in TMPs. In general, I want my text to be aligned to the left if the language is English and aligned to the right in Arabic. is there a way to achieve this?

You could use the localized property variants to set per locale options
https://docs.unity3d.com/Packages/com.unity.localization@1.4/manual/LocalizedPropertyVariants.html

1 Like

oh I see Thanks a million

1 Like

We encountered a problem in using rtlm pro in webgl build. Our app is trilingual, and we implemented settings for numbers, left and right alignment. It’s February and we counted on this plugin to deliver our project.

That error implies theres something wrong with the serialization of a managed reference. Could you please file a bug report so we can investigate? Unity QA: Building quality with passion

Its also worth making sure you are using the latest version of the package 1.5.4

Hi again,
All of My packages are up to date and I am using TextMeshPro 3.0.9 and RTLMPro 3.4.5
I changed the TextMeshPro version to 1.5.4 and the project can’t be played.
But with the later versions mentioned, I can play the project but can not build under WebGL.
This error occurred when I tried to set up numerical fixes for 3 en, ar, and fa languages in my project. I had built my project before that with no issues.
Here is my error log file attached.What is the difference between RTLM Pro and RTLM Pro Master? Do you think changing to RTLM Master helps?

Have you tried building for platforms other than WebGL?
You could try removing the GameObjectLocalizer and then reconfiguring the property variants for that object. The error is related to GameObjectLocalizer.