Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

Feature Request Return default translation if no translation was found

Discussion in 'Localization Tools' started by Houtamelo, Oct 20, 2020.

  1. Houtamelo

    Houtamelo

    Joined:
    Jan 3, 2020
    Posts:
    31
    When using GetLocalizedString() on a LocalizedString, if the current selected locale does not have a translation for that entry the method will return a result with "No translation found for '{0}'" (where this message can be configured on the project settings). My request is that instead of returning "No translation found for '{0}'", i would like it to return the translation of a previously set default locale. For example, if i have a English and a Spanish Locale on my project, the English table entrys are completely filled but the Spanish ones are completely empty, if i try to GetLocalizedString() while the selected locale is Spanish, i want the method to return the English entry since the Spanish is empty.
     
  2. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    8,418
    Hi,
    Thanks for the suggestion.
    Fallbacks are something we have planned in the future which should support this use case.
     
    Houtamelo likes this.