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
Returns a translation entry.
Returns this instance if it is an ExecutionGroup.
Returns the translation keys.
Returns the locale identifiers stored in the table.
Removes one translation entry.
Removes all translation entries.
Sets a translation entry.
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(): tableReturns the translation keys.
Locales
TranslationTable:Locales(): tableReturns 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
Instance47
- 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