一键导入
roblox-localization
Use when implementing Roblox multi-language support, translation tables, auto-translation, locale-specific content, or region detection.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when implementing Roblox multi-language support, translation tables, auto-translation, locale-specific content, or region detection.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use when implementing Roblox character animations, particles, beams, trails, tweens, camera shake, or other visual effects.
Use when building Roblox menus, HUDs, shops, notifications, dialogs, or responsive cross-platform UI.
Use when handling Roblox keyboard, mouse, gamepad, touch, motion input, or cross-platform action binding.
Use when validating RemoteEvent or RemoteFunction arguments, adding rate limits, designing server-authoritative systems, or preventing exploits.
Use when creating Roblox NPCs or enemies with pathfinding, state machines, line-of-sight or FOV detection, spawns, or AI update loops.
Use when building Roblox vehicles, ragdolls, projectiles, elevators, constraints, forces, or other physics-driven gameplay.
| name | roblox-localization |
| description | Use when implementing Roblox multi-language support, translation tables, auto-translation, locale-specific content, or region detection. |
| last_reviewed | "2026-07-04T00:00:00.000Z" |
| sources | ["https://create.roblox.com/docs/reference/engine/classes/LocalizationService","https://create.roblox.com/docs/reference/engine/classes/LocalizationTable","https://create.roblox.com/docs/reference/engine/classes/Player"] |
Load when implementing multi-language support, translation systems, locale-specific content, or region detection. Covers LocalizationService, LocalizationTable, auto-translation, and country/region detection.
player.LocaleId — locale the player set for their Roblox account (e.g. en-us, pt-br, ja-jp)LocalizationService.RobloxLocaleId — locale for core/internal featuresLocalizationService.SystemLocaleId — player's OS localeLocalizationService:GetCountryRegionForPlayerAsync(player) — country code from IP geolocation (e.g. US, BR, JP)LocalizationTable — stores translation entries (key → translations per locale)LocalizationTable under LocalizationService for auto-translationGuiBase2d.RootLocalizationTable on GUI objects for per-element tablesRootLocalizationTable is set and entries existTextLabel.Text normally — the engine replaces it with the translated string for the player's localelocal translator = LocalizationService:GetTranslatorForPlayerAsync(player)
local translated = translator:Translate(game, "Welcome!")
local formatted = translator:FormatTranslate(game, "Coins: {0}", {count})
local country = LocalizationService:GetCountryRegionForPlayerAsync(player)
if country == "US" then -- USD pricing
elseif country == "GB" then -- GBP pricing end
GetCountryRegionForPlayerAsync is async — wrap in pcall, may failGetTranslatorForPlayerAsync is async — cache the translatorRootLocalizationTable setSourceText, SourceLocaleId, then en-us, pt-br, etc. columnsplayer.LocaleIdTranslator:TranslateGetCountryRegionForPlayerAsync uses IP geolocation — VPNs give wrong resultsNeed more detail? Load references/full.md.