Open Asterune
LocalizationService

LocalizationService

Provides locale settings and translation lookup.

Service
game:GetService("LocalizationService")
Inherits
Instance
Replication
Never

Behavior

LocalizationService provides locale settings and translation lookup.

Summary

Members5
Properties3
Methods2

Properties

LocaleId

LocalizationService.LocaleId: string

The locale identifier used for this session or player.

SystemLocaleId

LocalizationService.SystemLocaleId: string

The locale identifier reported by the system.

Translator

LocalizationService.Translator: Translator = nil

The 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): Translator

Returns a Translator for a locale identifier or Player. An empty locale identifier causes an error.

Inherited members

Inherited47

Instance