LocalizationService
Provides locale settings and translation lookup.
- Service
game:GetService("LocalizationService")- Inherits
- Instance
- Replication
- Never
Behavior
LocalizationService provides locale settings and translation lookup.
Summary
The locale identifier used for this session or player.
The locale identifier reported by the system.
The Translator for the current locale.
Returns this instance if it is an ExecutionGroup.
Returns a Translator for a locale identifier or Player.
Properties
LocaleId
LocalizationService.LocaleId: stringThe locale identifier used for this session or player.
SystemLocaleId
LocalizationService.SystemLocaleId: stringThe locale identifier reported by the system.
Translator
LocalizationService.Translator: Translator = nilThe Translator for the current locale. Its Text(key, args?) method falls back to the key; Find(key, args?) returns nil for a missing translation.
Methods
GetExecutionGroup
LocalizationService:GetExecutionGroup(): ExecutionGroup?Returns this instance if it is an ExecutionGroup. Otherwise returns the nearest ancestor ExecutionGroup, or nil when no group contains the instance.
TranslatorFor
LocalizationService:TranslatorFor(subject: Player | string): TranslatorReturns a Translator for a locale identifier or Player. An empty locale identifier causes an error.
Inherited members
- Properties
- ArchivableClassNameNameParent
- Methods
- AddComponent()AddTag()ClearAllChildren()ClearTags()Clone()Destroy()FindFirstAncestor()FindFirstAncestorOfClass()FindFirstAncestorWhichIsA()FindFirstChild()FindFirstChildOfClass()FindFirstChildWhichIsA()FindFirstDescendant()GetAttribute()GetAttributeChangedSignal()GetAttributes()GetChildren()GetComponent()GetComponentChangedSignal()GetComponents()GetDebugId()GetDescendants()GetFullName()GetPropertyChangedSignal()GetReferencing()GetTags()HasComponent()HasTag()IsA()IsAncestorOf()IsDescendantOf()RemoveComponent()RemoveTag()SetAttribute()WaitForChild()
- Events
- AncestryChangedAttributeChangedChangedChildAddedChildRemovedDescendantAddedDescendantRemovingDestroying