Get a LocalizedString in a specific language?

Hello.
I’m looking to get a localizedString in a specific language.
for example :

public class Item : MonoBehaviour, IPointerDownHandler
{
    [SerializeField] private LocalizedString localizedName;

        private void OnValidate()
        {
            gameObject.name = localizedName.GetLocalizedString("english");
        }
}

I know localizedName.GetLocalizedString("english"); doesn’t exists but I want to know the way to do this.

Thank you

You can set the LocaleOverride on the LocalizedString.

1 Like