Translator instance

Exports

Translator instance initialized with all defined translations in CMS Translation module

Sample:

require(["Website/Translation"], function(t){
//Simple synchronous call - if translated term is available it is returned
var translated = t.i18n("translate-term");
//Another synchronous call with default translation
var translated = t.i18n("translate-term", null, "default-translation");

//OR asynchronously use callback function

t.i18n("translate-term", function(translator, translation){
var translated = translation.translation;
});
});

Index

Variables

Generated using TypeDoc