JViewer.Handlers.Translator (JViewer v0.1.1) View Source

JViewer translations handler

Link to this section Summary

Functions

Translates value under key according to translations, where translations is a list of structs that look like

Link to this section Functions

Translates value under key according to translations, where translations is a list of structs that look like

%{
  language: code # string like "en"
  key: translation # translation for a given key
}

Return an empty string if no translation is found.