Take a look at our new Article and Redactor X editors.

get #

Arguments
name String

Returns: String

Return the value by a variable name of the current language.

var value = this.lang.get('variablename');

parse #

Arguments
str String

Returns: String

Replace templates like ## name ## in the string with the values of the language variable.

var str = this.lang.parse('<span class="cancel-el">## cancel ##</span>');