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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice
  4. Dismiss Notice

Resolved How to have my translations working again ?

Discussion in 'Localization Tools' started by unity_j46Tpvup3WjpqA, Jan 27, 2021.

  1. unity_j46Tpvup3WjpqA

    unity_j46Tpvup3WjpqA

    Joined:
    Nov 26, 2020
    Posts:
    2
    Hello guys,

    I tried this new preview bundle and it worked really great!

    Then I noticed that it worked when I runned the game inside of Unity Editor. But if builded and runned locally it printed: No locales available


    Then I was reading the doc and playing a bit with the windows Addressables Groups and then nothing works anymore.

    In the end here is what I would like: All my locales translations file embedded with my builded game (nothing from a remote server or complicated like that really simple)

    Could you help me to reach it ?

    Here is what I have:

    upload_2021-1-27_18-16-52.png
    Also this I don't know if I killed something there...
    upload_2021-1-27_18-17-28.png

    I know that my code worked for that, the translations worked fine with the Localization Tables so it's just a matter of configuration but what exactly... any help is really appreciated.

    Thank you very much in advance for your time
     
  2. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    7,846
    Locales need to be marked with the Locale Addressable label.
    like this:

    upload_2021-1-27_17-40-6.png

    By default this is what Addressables will do. How the data is embedded varies per platform but you should not have to do anything special other than Build the Addressables by clicking the Build option in the menu.
     
    unity_j46Tpvup3WjpqA likes this.
  3. unity_j46Tpvup3WjpqA

    unity_j46Tpvup3WjpqA

    Joined:
    Nov 26, 2020
    Posts:
    2
    Thank you @karl_jones ! Indeed I had no longer any label for the locales.


    If someone have the same issue here is how I could fix it:
    locale labels fix.gif
    1) go to: Window > Asset management > Addressables > Groups
    2) Click on Tools > Labels
    3) Click on the + and insert Label Name: Locale

    After that I could again run the game inside Unity editor and my locales were found.


    so now I can at least have my locales working inside Unity Editor (still not for builded game runned out of unity...)

    This part was not fully clear for me (also inside of the guide)

    After some attempts here is the process:

    1) go to: Window > Asset management > Addressables > Groups
    2) click on Build > New Build > Default build script
    3) then build the game normally (File > Build and run...)

    Allright :) now it works thank you very much!
     

    Attached Files:

    karl_jones likes this.