Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Localization on Nintendo Switch

Discussion in 'Editor & General Support' started by Xakkar, Feb 28, 2021.

  1. Xakkar

    Xakkar

    Joined:
    Apr 8, 2016
    Posts:
    16
    Hello.
    There was a problem localizing the app on Nintendo Switch

    When launching the app on the Nintendo Switch console, the system language is checked and then the app language is selected. Everything works correctly on PC and mobile devices.
    I check the system language using Application.systemLanguage. And why only if the language of the system is Russian, then the application language is correctly selected. For any other system language, Application.systemLanguage writes English.
    What could be the problem?
     
  2. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    36,756
  3. Xakkar

    Xakkar

    Joined:
    Apr 8, 2016
    Posts:
    16
    Not. I have my own localization system.
    But the problem is not in her, but in the fact that on the Nintendo Switch Application.systemLanguage returns English, despite the fact that the language of the system is German or French
     
  4. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    36,756
  5. Xakkar

    Xakkar

    Joined:
    Apr 8, 2016
    Posts:
    16
    Perhaps to build on Switch instead of Application.systemLanguage, you need to use another function for checking the system language, but I did not find this
     
  6. Neto_Kokku

    Neto_Kokku

    Joined:
    Feb 15, 2018
    Posts:
    1,751
    You should check the docs and the Nintendo developer forums, as discussing the actual details here violates NDA, but the short answer is yes, you need to use a Switch-specific function to get the system language.

    Now as to why Unity doesn't actually use it internally to set the correct culture in C# instead of having us do it manually is a mystery (or incompetence).