
十五种语言,一个键
在一个位置为每个键存储最多 15 种语言的值,并像管理新闻翻译一样并排编辑它们。
玩家仅下载自己的语言
SDK 在运行时仅请求一种语言,因此设备只会获取它们真正需要的字符串。
实时更新,无需重新构建
修正一个错别字或重写一个按钮文案,玩家会在下一个缓存周期后看到更新,无需提交到应用商店。
快速集成
// Unity C#: Localization
using PM.horizOn.Cloud.Manager;
using UnityEngine;
var loc = LocalizationManager.Instance;
// Pick the player's language once
loc.SetLanguage("de");
// A single string for the current language
string label = await loc.GetLocalization("menu.play");
Debug.Log($"Play button: {label}");
// Every key of one language at startup (cached in memory)
var all = await loc.GetAllLocalizations("de");# REST API: Localization
# Fetch every key for one language
curl -X GET "https://horizon.pm/api/v1/app/localization/all?lang=de" \
-H "X-API-Key: YOUR_API_KEY"
# Fetch a single key (falls back to en if the language is missing)
curl -X GET "https://horizon.pm/api/v1/app/localization/menu.play?lang=de" \
-H "X-API-Key: YOUR_API_KEY"
# List the languages that actually have content
curl -X GET https://horizon.pm/api/v1/app/localization/languages \
-H "X-API-Key: YOUR_API_KEY"这些示例使用 Unity SDK(C#)和 REST API。Godot 和 Unreal 在各自的 SDK 中有相同的调用: 参见快速入门

