Options
Menu

Provides functions to get language constants.

Hierarchy

  • I18nWrapper

Index

Methods

Methods

get

  • get(key: string, fallback?: string): undefined | string
  • Retrieve portal constants.

    example
    ix.text.i18n.get("<LANGUAGE CONSTANT>", "Foo Bar");
    

    Parameters

    • key: string

      The key of the constant.

    • Optional fallback: string

      The fallback to be used, if key wasn't found.

    Returns undefined | string

getByApp

  • getByApp(guid: string, key: string, fallback?: string): undefined | string
  • Retrieve application constants.

    example
    ix.text.i18n.getByApp("<GUID>", "<LANGUAGE CONSTANT>", "Foo Bar");
    

    Parameters

    • guid: string

      The application GUID.

    • key: string

      The key of the constant.

    • Optional fallback: string

      The fallback to be used, if key wasn't found.

    Returns undefined | string