Merge branch 'MDL-79498-402' of https://github.com/junpataleta/moodle into MOODLE_402_STABLE
This commit is contained in:
File diff suppressed because one or more lines are too long
+4
-4
@@ -41,9 +41,9 @@ let promiseCache = [];
|
||||
*
|
||||
* @method get_string
|
||||
* @param {string} key The language string key
|
||||
* @param {string} component The language string component
|
||||
* @param {string} param The param for variable expansion in the string.
|
||||
* @param {string} lang The users language - if not passed it is deduced.
|
||||
* @param {string} [component='core'] The language string component
|
||||
* @param {string} [param] The param for variable expansion in the string.
|
||||
* @param {object|string} [lang] The users language - if not passed it is deduced.
|
||||
* @return {Promise}
|
||||
*
|
||||
* @example <caption>Fetching a string</caption>
|
||||
@@ -73,7 +73,7 @@ export const get_string = (key, component, param, lang) => {
|
||||
* @param {string} [requests.component='core'] The componet to fetch from
|
||||
* @param {string} [requests.lang] The language to fetch a string for. Defaults to current page language.
|
||||
* @param {object|string} [requests.param] The param for variable expansion in the string.
|
||||
* @return {Promise[]}
|
||||
* @return {Promise<string[]>}
|
||||
*
|
||||
* @example <caption>Fetching a set of strings</caption>
|
||||
*
|
||||
|
||||
@@ -724,7 +724,7 @@ M.util.js_complete = function(uniqid) {
|
||||
*
|
||||
* @param {String} identifier string identifier
|
||||
* @param {String} component the component providing the string
|
||||
* @param {Object|String} a optional variable to populate placeholder with
|
||||
* @param {Object|String} [a] optional variable to populate placeholder with
|
||||
*/
|
||||
M.util.get_string = function(identifier, component, a) {
|
||||
var stringvalue;
|
||||
|
||||
Reference in New Issue
Block a user