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

Question Game locale

Discussion in 'Scripting' started by Y2JB, Apr 3, 2024.

  1. Y2JB

    Y2JB

    Joined:
    Jan 12, 2021
    Posts:
    10
    Does anyone know how to set the default locale used by the game in Unity? I have set both the 'locale selector' and 'project locale identifier' to spanish and the game still boots into english.

    The only things that work is either me seeting the locale in code or also the language selector that shows in the editor when the game runs.

    How do i set the locale on boot or better yet, use the system locale?
     
  2. CodeSmile

    CodeSmile

    Joined:
    Apr 10, 2014
    Posts:
    6,422
    What platform? What do you use for localizing content?
     
  3. Y2JB

    Y2JB

    Joined:
    Jan 12, 2021
    Posts:
    10
    Mac, windows, steamdeck...

    The problem is not setting the locale at the system level (i think), the problem seems to be LocalizationSettings.SelectedLocale is always english no matter what i do.