Skip to content
This repository has been archived by the owner on Nov 7, 2022. It is now read-only.

Documentation

elmasse edited this page Oct 26, 2014 · 8 revisions

Ext.i18n.Bundle Documentation

Class Ext.i18n.Bundle

Constructor Ext.i18n.Bundle(options)

Constructor for Bundle Class. Options object is composed as follows:

  • bundle {String} Bundle name.
  • path {String} Path to Bundle files. Optional.
  • enableLinkedValues {Boolean} true to enable properties with links to other properties using @ symbol. Defaults to false.
  • lang {String} The language code. Commonly used as two-letters language code, followed by two-letters country code. (i.e. fr-CA: French as in Canada). Optional. If it is not specified, the browser language will be used.
  • method: {String} The http method used to retrieve the files. Optional. GET as default.

{String} getMsg(key)

This method returns the content associated with the given key. If the key cannot be found then it returns {key}.undefined.

  • key {String} The key string used to access the value into the bundle.
  • returns: The value associated to the given key.