Translator Engine

klevu.extend( target [, object1 ] [, objectN ] )
Returns: Object

Description:  The translator engine is an implementation of the dictionary engine  refer to the dictionary docs for an in-depth view

The translator engine is used to group a specific language and the currency engine used in that language.

Specific functions for the engine:

  • translate – used to reverse check a string from the dictionary, the original string is returned if no string matches dictionary. Accepts parameters to be used as format strings – example: translate(“I have found %s Products”,5) would return “I have found 5 Products”
  • getCurrencyObject – retrieves the currency object for the translation object.

All of the Dictionary engine interfaces are available on the Translator engine.

Example of accessing in the Search object instance:;;

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes:

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>