No Locales Available (Unity 2021.1.0f1)

Hi there,

I could really do with some help trying to get this package working, here are my steps with a clean install of Unity on a new project.

Unity: 2021.1.0f1
Addressables: Version 1.16.16 - January 27, 2021
Localization: Version 0.10.0-preview - January 26, 2021

Steps tried:

  • Create a new project (2D Template - not sure if this matters)

  • Add the localization package (com.unity.localization)

  • Import the UGUI sample

  • Addressables package already at latest version

  • Open the Build Settings and add the UGUI sample scene

  • Create the Localization Settings

  • Add languages, e.g. English, French, Spanish

  • Test scene in Play mode - Works!
    (Info message: The Locale ‘en-GB’ is not available, however the parent locale ‘en’ is available. - not sure if this matters either)

  • Build and Run to Windows #1 - fails with ‘No Locales Available’

  • Build the Addressables (Addressable Groups > Build > New Build > Default Build Script)

  • Build and Run to Windows #2 - fails with ‘No Locales Available’

  • Set the Locale Groups Bundle Naming setting to ‘Append Hash’

  • Clean and Rebuild Addressables

  • Build and Run to Windows #3 - fails with ‘No Locales Available’

  • Project Settings > Localization > Add All

  • Clean and Rebuild Addressables

  • Build and Run to Windows #3 - fails with ‘No Locales Available’

I notice in Unity 2021 you can no longer downgrade packages so Addressables 1.16.16 is my only option…

What am I missing here? I think I have everything covered from this thread .

Could you share the project?

After adding a string and asset table the Windows build works.
It looked like it was working in Play Mode so I didn’t realise those were required.

The WebGL one is failing though. Do you know if the Localization package works with this platform?

Attached the project as requested… let me know if you notice anything!

6966326–820880–23March.zip (92 KB)

Thats strange it should just work with Locales and no tables. Ill see if I can reproduce it.

There’s a known bug with WebGl. https://issuetracker.unity3d.com/issues/unobservedtaskexception-system-dot-nullreferenceexception-is-thrown-when-the-project-is-built-for-webgl

Ahh I gotta be a bit more patient waiting for that fix then.

I’ll try and recreate the project again and send it over if it I can reproduce it.

1 Like

You may be able to get it working now by disabling compression, well that’s what the comment on the issue tracker says :wink:

Attached a new project without the locale tables.

Sadly disabling Compression doesn’t work with WebGL.
The issue says fix in review though so fingers crossed!

6966461–820901–23March-NoTables.zip (67.1 KB)

1 Like

Just tried Unity 2021.1.2f with 0.11.0-preview and still have the same issues.
Hoping we don’t have to wait too long for the bug fix to make it to a non-alpha build.

Keep an eye on this for the fix version https://issuetracker.unity3d.com/issues/unobservedtaskexception-system-dot-nullreferenceexception-is-thrown-when-the-project-is-built-for-webgl

Can confirm that the WebGL bug has finally been resolved in 2021.1.9 :smile:

1 Like