Localization

Unity's localization package is integrated with UI Toolkit.

Luna UI provides demos, guidelines, and utility functions for using Unity's Localization package.

Check out the Localization Sample.

Unity Localization: UI Toolkit

Guide

UI Builder authoring

You can use the UI Builder to create and fine-tune UI assets and their associated data bindings, including localization data bindings. You can connect to visual element attribute fields or styles. You can also address mismatched data types smoothly by creating your own converters for data type conversion.

To bind an element's field to a localized value in UI Builder, do the following:

  • In the Inspector panel of an element, right-click on a field and select Add binding.
Adding a binding through the UI Builder.
  • In the Add binding window, select the type of binding you want to use.
Add binding window type popup showing localization binding types.
  • To set up the binding, specify the table and entry you want to reference. If you're using a LocalizedString binding and want to include local variables, you can do so through the Variables field.
Configuring a localized string in the Add binding window.

The UI builder-generated UXML includes the new localized string binding like this: