Skip to content
Roblox API Reference

Translator

The role of a Translator is to manufacture/return strings localized for the viewing player.
  • Not creatable
  • Not replicated
Memory category
Instances
Own members
4
Inherited members
75
Subclasses
0
Siblings
608

Properties24

Inherited fromObject2

Property categoryData

Inherited fromInstance21

Property categoryBehavior

Property categoryData

Property categoryPermissions

Defined byTranslator1

Property categoryBehavior

  • Translator.LocaleId: string
    The locale of translated strings.
    • Read only
    • Read capabilities: Basic
    • Save only

Methods45

Inherited fromObject3
  • Get an event that fires when a given property of the object changes.
    Parameters
    ParameterDescription
    property: string
    The property to connect to.
    Returns
    TypeDescription
    RBXScriptSignal
    A signal that fires whenever the property changes.
  • Object:IsA(className: string): boolean
    Returns true if an object's class matches or inherits from a given class.
    • Custom Lua state
    • Thread safe
    Parameters
    ParameterDescription
    className: string
    The class against which the Object's class will be checked. Case-sensitive.
    Returns
    TypeDescription
    boolean
    Describes whether the Object's class matched or is a subclass of the given class.
  • Object:isA(className: string): boolean
    Deprecated: This deprecated function is a variant of Object:IsA() which should be used instead.
    • Deprecated
    • Custom Lua state
    Parameters
    Parameter
    className: string
    Returns
    Type
    boolean

    Use IsA instead.

Inherited fromInstance39
Defined byTranslator3
  • Translator:FormatByKey(key: string, args: any): string
    Returns the localized text string in a LocalizationTable based on its Translator locale, by key.
    • Capabilities: Basic
    Parameters
    ParameterDescription
    key: string
    The Key value to look up and translate.
    args: any
    To be provided if the Source text and translations contain format strings. Will be a Luau table of values or key-value pairs, depending on whether the format strings are numbered or named.
    Returns
    TypeDescription
    string
    The localized text string associated with the given key, with any format parameters filled in from args.
  • Translator:RobloxOnlyTranslate(context: Instance, text: string): string
    • Roblox script security
    • Capabilities: Basic
    Parameters
    Parameter
    context: Instance
    text: string
    Returns
    Type
    string
  • Translator:Translate(context: Instance, text: string): string
    Returns the localized text string in a LocalizationTable based on its Translator locale, by source lookup.
    • Capabilities: Basic
    Parameters
    ParameterDescription
    context: Instance
    A valid in-game Instance to use for context override as outlined above. Note that this argument can be arbitrary, for example game, if you don't require a context override.
    text: string
    The Source text to look up and translate.
    Returns
    TypeDescription
    string
    The translated text.

Events10

Inherited fromObject1
Inherited fromInstance9