IntlLoad.js revision 628b3b052ecff4d1843c7e919951413fbc03e79f
10139N/A 1) Explode static meta-data "lang" property into first class modules 10139N/A var langModuleName = loader._formatLang(lang, module); 10139N/A Support for Y.use("lang:fr-CA"); or Y.use("lang:fr-CA;module"); 10139N/A 1) Y.Intl.lookupBestLang(module, lang) 10139N/A 2) loader._formatLang(module, lang) 10139N/A 1) Loop through meta-data for the module, to get available langs 10139N/A getAvailableLangs() support feasible? 10139N/A Loop through meta-data for all "loaded" modules, to get the common 10139N/A subset (could be presented as an app level dropdown for example). 10139N/A * The Intl utility provides a central location for managing language specific sets of strings and formatting patterns. 10139N/A * The intl-load sub-module provides utilities for loader language support 10139N/A * The Intl utility provides a central location for managing language specific sets of strings and formatting patterns. 10139N/A * Finds the best language match, from the list of available languages based on BCP 47 lookup. 10139N/A * @param {String} lang The BCP 47 language tag to find the best match for 10139N/A * @param {Array} supportedLangs An array of supported langauge codes 10139N/A * @return {String} The BCP 47 language tag 10139N/A // check whether the list of available languages contains language; if so return it 10139N/A // check the fallback sequence for one language 10139N/A // one-character subtags get cut along with the following subtag 10139N/A // nothing available for this language