Use Unity Localization to translate UIS Item names, descriptions and UI labels while keeping database identities stable. This guide targets the UIS Version 1 bridge and Localization 1.5 APIs; the earlier source comparison used 1.5.12 on Unity 2022.3. Install an Editor-compatible package and test the exact imported assets/version combination.

Install and prepare tables

  1. Confirm the Inventory, Item Views, descriptions, Shop and other menus work in one language. Back up the project before importing integrations.
  2. Install com.unity.localization through Window > Package Manager, then import the matching UIS Unity Localization integration from Opsive Downloads. The bridge’s installer supplies its scripts/demo separately from the base UIS installation; install Unity’s Localization package first.
  3. Confirm LocalizeItemView.cs and AutoLocalizeStringEvent.cs under Assets/Opsive/UltimateInventorySystem/Integrations/UnityLocalization and let compilation finish.
  4. In Edit > Project Settings > Localization, assign one project-owned Localization Settings asset, add supported Locales and configure startup selection.
  5. Open Window > Asset Management > Localization Tables. Create separate String Table Collections for database-derived content and fixed UI labels.

Project Settings Localization panel with Active Settings empty and a Localization Settings asset available in the picker

The demo uses English, French and Spanish with these collections:

  • LocalizationTable_UltimateInventorySystem_LocalizedDemo_InventoryDatabase
  • LocalizationTable_UltimateInventorySystem_LocalizedDemo_UI

You can temporarily inspect the demo’s settings in Localization Demo.unity. Assign project-owned settings, Locales and tables before removing demo content or shipping.

Localization Tables window showing Potion, Wood, and Wooden Sword keys with English, French, and Spanish values

Keep identities and translation keys stable

Translate String Table values while retaining Item Definition, category, Currency and recipe names. Choose a consistent capitalization, spacing and suffix convention before importing translations.

Key English example Use
Health Potion Health Potion Item name
Health Potion_Description Restores health when consumed. Description
Iron Sword Iron Sword Item name
Iron Sword_Description A dependable one-handed weapon. Description
Buy / Cancel Buy / Cancel Fixed interface labels

The demo includes two CSV files. For project data, export the UIS database, copy relevant names/descriptions into a Localization CSV and import that into the String Table Collection. Unity’s CSV import requires a Key or Id column. Keep the maintained database names unchanged for saves, lookups and recipes.

Configure Item View localization

Put Localize Item View on the same GameObject as its UIS Item View or Item Description so the View discovers the module. Put Auto Localize String Event on the target Text/TMP label, or assign its text target explicitly.

  1. Set the event’s String Reference > Table Collection to the database-content table. The UIS module supplies the entry key; configure the table first.
  2. On Localize Item View, assign Text and the matching Localize String Event.
  3. Configure the name/description modules using the table below.

Localize Item View Inspector with Localize String Event, attribute, default, clear, key-format, and whitespace fields

Setting Item name Description
Attribute Name Empty Description
Key Format {0} or empty {0}_Description
Clear On Attribute Missing Disabled for name-only display Enabled when a missing Description should clear
Default Text Value Optional localized entry key used on clear Optional localized entry key used on clear
Replace White Space With Underscores Match table keys, such as Health_Potion Use the same spacing convention

Create any Default Text Value entry in every Locale. Leave it empty for intentional blank text. Disable On Clear hides its assigned object on clear and restores it when valid Item data is displayed.

Key Format supports {0} Item name, {1} attribute value as text, {2} definition name, {3} category name and {4} attribute name.

Name and Description Localize Item View components using key formats {0} and {0}_Description

For Item Description, clear its direct Item Name Text and Description Text references so the localization modules own those labels. Keep Description Attribute Name set to Description, and independently set the description module’s Attribute Name to Description.

Configure fixed and changing labels

For Buy, Sell, Bag or Equipment, add Auto Localize String Event, then set its table and entry in String Reference. It discovers Unity UI Text/TMP on the same GameObject when its target is unassigned and writes refreshed translations there.

Auto Localize String Event targeting the inventory database table, Wood entry, and a TextMesh Pro label

For dynamically chosen UIS labels, connect the component’s String UnityEvent to AutoLocalizeStringEvent.SetTableEntryReference. The included Confirm Cancel Panel connects On Confirm Text Change (String) and On Cancel Text Change (String) this way.

Confirm Cancel Panel routing confirm and cancel text-change events to AutoLocalizeStringEvent.SetTableEntryReference

Unity refreshes Localize String Event when its Locale or String Reference changes. Test open menus so the same selected Item stays selected while configured labels change:

Spanish Shop menu with localized navigation, Item names, description, quantity, total cost, and action controls

French Crafting menu with localized recipes, ingredients, prices, and the selected Wizard Wand description

The Game view selector demonstrates English/French/Spanish. Supply a startup policy or language selector for the shipped game.

Game view Locale selector listing English, French, and Spanish

Validate loading and platform behavior

This bridge configures strings. Bind Sprites, audio and other localized assets through Unity’s asset-localization workflow and a project-specific UIS attribute binding where required.

For WebGL, use an asynchronous Item View localization binding, such as a LocalizedString.StringChanged subscriber, instead of synchronous item-label retrieval. Unity’s LocalizedString API describes event-based loading; GetLocalizedString documents its platform boundary. Preload relevant tables on supported synchronous platforms to reduce first-use work. Validate imported prefabs after changing package versions.

Verify the result

  1. Open Bag in English and select Health Potion and Iron Sword. Check both names/descriptions against their table entries.
  2. Open Shop, then change to Spanish without closing it. Check labels, prices, names and descriptions while retaining the selected Item.
  3. Open Crafting and change to French. Check recipe, ingredient and description labels without reopening.
  4. Select an Item without Description. Verify clear/default-key/hide behavior and then select a valid Item to check reactivation.
  5. Remove a translation in a table copy and inspect Unity’s fallback behavior. Verify the direct Item Description fields remain cleared.
  6. Test all supported input paths and a player build, including startup Locale, table loading and language changes. Keep only one bridge copy and project-owned settings assigned.

For incorrect keys check table, capitalization, spaces/underscores and suffix. For unchanged labels check the actual text target, event/module enablement and Locale selection. Configure fixed labels individually; use UI Designer and Item Description to inspect their owners.