Options
All
  • Public
  • Public/Protected
  • All
Menu

Module to get or create vanilla localizations.

since

3.0

Index

Functions

  • Adds your custom path to localization files directory, to make adding new vanilla translations more convenient than creating the texts/ directory in an addon.

    All files in the given directory must be with .lang extension, have the in format languagecode_REGIONCODE.lang (like en_US.lang, ru_RU.lang etc.), and be of key-value type:

    ## Comment
    key1=translation1
    key2=translation2
    ...
    since

    3.0

    Parameters

    • dir: any_string

      absolute path to your custom translations directory

    Returns void

  • since

    3.0

    Parameters

    Returns jstring

    the given key translated to the current game language, or this key itself, if the translation for it was not found

Generated using TypeDoc