Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

localize-unity-project

БесплатноЗапускает вложенные скриптыНе проверен

Sets up Unity Localization, including locales, String and Asset Tables, and CJK fonts. Use when the user wants to add languages or translate UI text.

Unity-Technologiesот Unity-Technologies★ 1 342 звезды на GitHub

Об этом скилле

Important

  • Use the unity cli (unity command --format json) and the unity-cli and unity-pipeline skills for each step.
  • Before making changes, establish a baseline of the current behavior so you can tell whether a later result is actually caused by your change.
  • Create a restore point you can roll back to if your changes fail.
  • Do only what's asked. Don't change unrelated assets or files. Avoid long explanations.
  • Never leave verification code in the user's script. Never build logging or detection they didn't ask for.

Terms

These names differ between the Editor UI, the package API and this skill:

  • Table collection: the asset (StringTableCollection or AssetTableCollection) holding one table per locale plus the shared key list, SharedData.
  • LocalizedTmpFont: the package type that references a TMP_FontAsset entry in an Asset Table.
  • LocalizedFontAsset: this skill's component template (scripts/LocalizedFontAsset.cs), not a package type. It applies a LocalizedTmpFont to the TMP_Text on its GameObject.

1. Check the Localization package is installed

Before doing anything else, verify that the Localization package is installed. Many APIs in this skill will fail silently or throw confusing errors if the package isn't present.

  1. Check by reading the project, not by asking the Package Manager. Look for com.unity.localization in Packages/packages-lock.json, because it records what Unity actually resolved and reading it needs no Editor or async call. Packages/manifest.json only records what was requested.
  2. Install if missing: UnityEditor.PackageManager.Client.Add("com.unity.localization").
  3. Wait properly. Client.Add is asynchronous, and busy-waiting on IsCompleted blocks the main thread you are running on. Return after firing the install, then poll packages-lock.json in a later call until the id appears. The install triggers a domain reload, so expect the first poll or two to fail.
  4. Confirm the types are actually loaded before using them, since the lock file can be written before the assemblies are ready:
    var t = System.Type.GetType(
        "UnityEngine.Localization.Settings.LocalizationSettings, Unity.Localization");
    return t != null ? "ready" : "not loaded yet";
    
    Only proceed once that returns ready.

2. Read the documentation

Full topic map

Before you go forward with a workflow or diagnosis:

  1. Open and read the documentation page(s) that cover the specific subject related to what you intend to do or fix and check if you've missed anything.
  2. Name the file(s) you read in your response.

This is because your training knowledge about Unity might be out of date, incorrect, or for the wrong Unity version.

The docs pages are local markdown conversions of the Unity Manual, stored at <project-folder>/Library/PackageCache/com.unity.localization@*/. When reading docs, read only the .md files in that subfolder and don't browse other Library or PackageCache folders, because that takes too much time. This limit doesn't apply to package lookups that other steps run, such as the TMP import in references/cjk-fonts.md. If that folder has no .md files, use the online pages at https://docs.unity3d.com/Packages/com.unity.localization@<VERSION>/manual/ instead, because some package versions don't ship their docs.

Prefer WebFetch over WebSearch — faster and lands on the exact reference. Only fetch what you need. Replace <VERSION> with the following before fetching:

  • Package on docs.unity3d.com: The package version, eg @6.6 or @2.0. Check the package version if unsure.
  • docs.unity.com: The product version, eg 7000.0

Read the Unity version from ProjectSettings/ProjectVersion.txt, and each package's major.minor from Packages/packages-lock.json (for example 1.5 for com.unity.localization). TextMesh Pro (TMP) API pages are in the com.unity.ugui docs. If packages-lock.json lists com.unity.textmeshpro instead, use https://docs.unity3d.com/Packages/com.unity.textmeshpro@<VERSION>/api/ with that package's version.

Read references/docs-map.md for the manual, API and Script Reference pages to read.

API reference

The API is UnityEngine.Localization and UnityEditor.Localization, part of the com.unity.localization package. It is versioned by package version, not Unity version (e.g. @1.4, @1.5), so check the project's installed package version before relying on a specific class or method.

  1. Read the installed package version from Packages/packages-lock.json, as in Step 1.
  2. Fetch and cache https://docs.unity3d.com/Packages/com.unity.localization@<version>/xrefmap.yml (replace <version> with the installed package version, e.g. 1.5). This file maps every pub
Полный SKILL.md на GitHub

Установить localize-unity-project в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

SECURITY.mdreferences/api-notes.mdreferences/cjk-fonts.mdreferences/docs-map.mdreferences/table-completeness-check.mdreferences/translation-strategy.mdreferences/troubleshooting.mdscripts/L10nBatchProcessor.csscripts/LocalizedFontAsset.cs

FAQ

Что делает скилл localize-unity-project?

Sets up Unity Localization, including locales, String and Asset Tables, and CJK fonts. Use when the user wants to add languages or translate UI text.

Как установить скилл localize-unity-project?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл localize-unity-project запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить localize-unity-project с