Search Unity

Get all language versions for one entry in the table?

Discussion in 'Localization Tools' started by NKCSS, May 9, 2020.

  1. NKCSS

    NKCSS

    Joined:
    Aug 29, 2015
    Posts:
    19
    Hi,

    I want to have the 'Change Language' button to alternate between all available languages (to make sure you can find your way back if you made a wrong choice by mistake), is there a way to get all language versions for one string (or even: get a specific language version for one key other than the active localization language)?
     
  2. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    8,292
    Yes. In script you can pass a locale in to LocalisationSettings.Stringdatabase.GetLocalizedString
    This will use that locale Instead of the selected one. It's possible to have multiple or even all languages loaded at once.

    https://docs.unity3d.com/Packages/c...ization.Settings.LocalizedStringDatabase.html
     
    Last edited: May 9, 2020