Image Uploader Scripting API: internalization.h File Reference

| Image Uploader Scripting API

Functions
internalization.h File Reference

## Functions

string | tr (string key, string englishText)

## Detailed Description

# Internationalization

## Function Documentation

## ◆ tr()

string tr | ( | string | key,
|  | string | englishText
| ) |  |

Translates a string to the current language.

Parameters

  key | represents an id of this message, should be like "scriptname.some_key1.some_key2". scriptname should be the same as your script file (without .nut extension).
  englishText | deprecated since 1.4.2 Translated strings should be stored in json file Scripts/Lang/<language_name>.json.

Aliases for this function: Translate() (you can these functions in your code).

Since
  1.3.1