This repository has been archived by the owner on Nov 7, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 22
Documentation
elmasse edited this page May 9, 2011
·
8 revisions
Constructor for Bundle Class. Options object is composed as follows:
- bundle {String} Bundle name.
- path {String} Path to Bundle files. Optional.
- 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.
The onReady method is called after the Resource Bundle file is loaded. This method must be executed in order to get access to the bundle. All the code that need to access to the bundle must be executed into the function.
*function {Function} The function that contains all the code that will reference to bundle.
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.