t1k:unity:tof:localization
| Field | Value |
|---|---|
| Module | tof |
| Version | 3.46.8 |
| Effort | low |
| Tools | — |
Keywords: controller, i18n, language switch, localization
How to invoke
Section titled “How to invoke”/t1k:unity:tof:localizationLocalization
Section titled “Localization”Scope — this is a candidate index, not an inventory. This skill indexes one source folder. A feature can span
Assets/TheOneFeature/,Packages/com.gdk.*, and siblingAssets/TheOne.*packages, and this skill will only show the folder it was built from. A capability missing here is not evidence that it is absent — verify against source (grep over a stated scope) before concluding anything does not exist. See The1Studio/theonekit-unity#350.
Purpose
Section titled “Purpose”All notable changes to this package will be documented in this file.
Public API
Section titled “Public API”class
LanguageRecord(LocalizationLanguagesBlueprint.cs)LocalizationLanguagesBlueprint(LocalizationLanguagesBlueprint.cs)LocalizationService(LocalizationService.cs)LocalizationUserData(LocalizationUserData.cs)LocalizationUserDataController(LocalizationUserDataController.cs)LocalizationValidator(LocalizationValidator.cs)LocalizationVContainer(LocalizationVContainer.cs)
Signals / Events
Section titled “Signals / Events”None detected.
Config / ScriptableObjects
Section titled “Config / ScriptableObjects”None detected.
Define Gate
Section titled “Define Gate”Live wherever com.unity.localization is installed — but read the scope carefully.
X_LOCALIZATION is a versionDefine on com.unity.localization, so this package compiles and
runs as soon as that package is present. It is not in ScriptDefineToolModule’s toggle list —
installing the package is the only way to set it.
⚠️ versionDefines are per-assembly, not global. The same symbol name also gates
Packages/com.gdk.core/Scripts/Utilities/LocalizationHelper.cs — every method body — but
GameFoundation.Utilities does not declare that versionDefine, so the symbol is not defined
there. That helper is inert: GetLocalizationString[Async] returns the raw key and the
add/remove-listener calls are no-ops. Do not infer from “localization works here” that it works in
GameFoundation. (Projects often separately define UNITY_LOCALIZATION_PRESENT, an unrelated symbol
that satisfies none of the above.) Full symbol table: tof-core-editor.
Integration Steps
Section titled “Integration Steps”- Reference package
TheOneFeaturein your project. - Register the Localization services via VContainer (see Architecture).
- Configure any ScriptableObjects listed in Config section.
- Subscribe to signals listed in Signals / Events to react to state changes.
Architecture
Section titled “Architecture”Detected public types (7): class
LanguageRecord(LocalizationLanguagesBlueprint.cs)LocalizationLanguagesBlueprint(LocalizationLanguagesBlueprint.cs)LocalizationService(LocalizationService.cs)LocalizationUserData(LocalizationUserData.cs)LocalizationUserDataController(LocalizationUserDataController.cs)LocalizationValidator(LocalizationValidator.cs)LocalizationVContainer(LocalizationVContainer.cs)
Detected DI registrations:
LocalizationServiceLocalizationUserDataController
Dependencies
Section titled “Dependencies”Not yet documented. This section was never filled in; it is a known gap, not a
statement that the feature has no dependencies. Read the .asmdef next to the source
folder above for the authoritative list.
References
Section titled “References”- Source:
Assets/TheOneFeature/Core/Features/Localization/ - Doc:
Assets/TheOneFeature/Core/Features/Localization/CHANGELOG.md - Namespace:
TheOne.Features.Localization.Core.DI,TheOne.Features.Localization.Core.Editor,TheOne.Features.Localization.Core.Models,TheOne.Features.Localization.Core.Services