Home Reference Source

Typedef

Static Public Summary
public

Event emitted every time a translation is not found for any of the languages passed in the initialize array.

Static Public

public EVT_INIT_KEY: string source

Event emitted every time a translation is not found for any of the languages passed in the initialize array.

Example:

coco.on(Cocorita.EVT_INIT_KEY, ({cocorita, data, source, targets}) => {
  // cocorita {Cocorita} : Cocorita instance emitting the event
  // data {Object}       : The translations data object
  // source {String}     : The source text
  // targets {Object}    : The target languages translations object
});