Ver código fonte

Applied suggestions from code review

Co-Authored-By: Marek Lewandowski <mlewand@users.noreply.github.com>
Maciej Bukowski 5 anos atrás
pai
commit
6897f25eaa

+ 2 - 2
packages/ckeditor5-utils/src/locale.js

@@ -93,9 +93,9 @@ export default class Locale {
 		 *		t( 'Created file "%0" in %1ms.', [ fileName, timeTaken ] );
 		 * 		t( 'Created file "%0", fileName );
 		 *
-         * The message supports plural forms. To specify the plural form, use the `plural` property. Singular or plural form
+		 * The message supports plural forms. To specify the plural form, use the `plural` property. Singular or plural form
 		 * will be chosen depending on the first value from the passed `values`. The value of the `plural` property is used
-		 * as a default plural translation when the translation for the target language is missing. Therefore, it should be a number.
+		 * as a default plural translation when the translation for the target language is missing.
 		 *
 		 *		t( { string: 'Add a space', plural: 'Add %0 spaces' }, 1 ); // 'Add a space' for the English language.
 		 *		t( { string: 'Add a space', plural: 'Add %0 spaces' }, 5 ); // 'Add 5 spaces' for the English language.

+ 1 - 1
packages/ckeditor5-utils/src/translation-service.js

@@ -21,7 +21,7 @@ if ( !window.CKEDITOR_TRANSLATIONS ) {
  * be available for the {@link module:utils/locale~Locale#t `t()`} function.
  *
  * The `translations` is an object which consists of a `messageId: translation` pairs. Note that the message id can be
- * either constructed either from the message string or from the message id if it was passed
+ * either constructed from the message string or from the message id if it was passed
  * (this happens rarely and mostly for short messages or messages with placeholders).
  * Since the editor displays only the message string, the message id can be found either in the source code or in the
  * built translations for another language.