Update localizationService documentation about the usage of %0% tokens being replaced with passed in values

This commit is contained in:
Warren Buckley
2017-01-22 22:16:26 +00:00
parent 23abbdb288
commit 883980ab8d

View File

@@ -135,8 +135,13 @@ angular.module('umbraco.services')
*
* @description
* Checks the dictionary for a localized resource string
* @param {String} value the area/key to localize
* @param {Array} tokens if specified this array will be sent as parameter values
* @param {String} value the area/key to localize in the format of 'section_key'
* alternatively if no section is set such as 'key' then we assume the key is to be looked in
* the 'general' section
*
* @param {Array} tokens if specified this array will be sent as parameter values
* This replaces %0% and %1% etc in the dictionary key value with the passed in strings
*
* @returns {String} localized resource string
*/
localize: function (value, tokens) {