8
0
Maciej Bukowski 5 лет назад
Родитель
Сommit
f8cdb9129b
1 измененных файлов с 5 добавлено и 3 удалено
  1. 5 3
      packages/ckeditor5-utils/src/translation-service.js

+ 5 - 3
packages/ckeditor5-utils/src/translation-service.js

@@ -62,7 +62,9 @@ if ( !window.CKEDITOR_TRANSLATIONS ) {
  *		}
  *
  * @param {String} language Target language.
- * @param {Object.<String, String|Array.<String>>} translations Translations which will be added to the dictionary.
+ * @param {Object.<String,*>} translations An object with translations which will be added to the dictionary.
+ * For each message id the value should be either a translation or an array of translations if the message
+ * should support plural forms.
  * @param {Function} getPluralForm A function that returns the plural form index (a number).
  */
 export function add( language, translations, getPluralForm ) {
@@ -79,7 +81,7 @@ export function add( language, translations, getPluralForm ) {
 }
 
 /**
- * **Note:** this method is internal, use {@link module:utils/local~Locale#t the `t()` function} instead to translate
+ * **Note:** this method is internal, use {@link module:utils/locale~Locale#t the `t()` function} instead to translate
  * editor UI parts.
  *
  * This function is responsible for translating messages to the specified language. It uses perviously added translations
@@ -104,7 +106,7 @@ export function add( language, translations, getPluralForm ) {
  *
  * @protected
  * @param {String} language Target language.
- * @param {module:utils/translation-service~Message|string} message A message that will be translated.
+ * @param {module:utils/translation-service~Message|String} message A message that will be translated.
  * @param {Number} [amount] A number of elements for which a plural form should be picked from the target language dictionary.
  * @returns {String} Translated sentence.
  */