Search Unity

  1. If you have experience with import & exporting custom (.unitypackage) packages, please help complete a survey (open until May 15, 2024).
    Dismiss Notice
  2. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice

How to apply pseudo locale at runtime?

Discussion in 'Localization Tools' started by felixmann, Feb 28, 2021.

  1. felixmann

    felixmann

    Joined:
    Feb 16, 2017
    Posts:
    11
    I'm trying to setup pseudo localization.

    The instructions say:

    1. Set up your text in String Tables
    2. Set up a Pseudo-Locale Asset
    3. Apply it to your Scene at runtime

    I have done 1 and 2, but I don't know how to do 3 :/ Any ideas?
     
  2. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    8,344
    It works like an extra language that you can select. Open a language selection menu and select the pseudo locale. We have some example language selection menus in the samples which can be found in the package manager window.
     
    felixmann likes this.
  3. felixmann

    felixmann

    Joined:
    Feb 16, 2017
    Posts:
    11
    Thanks so much for the fast response!

    Ah I see, that makes sense. I ended up adding a script so I don't have to select the pseudo locale every time.

    Code (CSharp):
    1. public Locale pseudoLocale;
    2.  
    3. private void Awake()
    4. {
    5.     Assert.IsNotNull(pseudoLocale);
    6.     LocalizationSettings.SelectedLocale = pseudoLocale;
    7. }
     
    karl_jones likes this.