API Docs for: 0.0.1
Show:

Translate Class

Module: niviz

Translation service.

Constructor

Translate

() static

Item Index

Methods

Methods

gettext

(
  • key
  • [context]
)
static

Get the translation of a word or phrase. The target language is predefined in the general settings. If the key is not present in the dictionary return the key as it is.

Parameters:

  • key String

    Word or phrase to translate (in English)

  • [context] String optional

    Context within the dictionary (e. g. grainshape)