Open Asterune
TranslationTable

TranslationTable

Stores translation entries and locale-specific text.

Creatable
Instance.new("TranslationTable")
Inherits
Instance
Replication
Standard

Behavior

TranslationTable stores translation entries and locale-specific text.

Summary

Members7
Methods7

Methods

Get

TranslationTable:Get(string, string): string?

Returns a translation entry.

GetExecutionGroup

TranslationTable:GetExecutionGroup(): ExecutionGroup?

Returns this instance if it is an ExecutionGroup. Otherwise returns the nearest ancestor ExecutionGroup, or nil when no group contains the instance.

Keys

TranslationTable:Keys(): table

Returns the translation keys.

Locales

TranslationTable:Locales(): table

Returns the locale identifiers stored in the table.

Remove

TranslationTable:Remove(key: string): ()

Removes one translation entry.

RemoveAll

TranslationTable:RemoveAll(): ()

Removes all translation entries.

Set

TranslationTable:Set(key: string, locale: string, text: string): ()

Sets a translation entry.

Inherited members

Inherited47

Instance