Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Fixed API docs.

Co-Authored-By: Szymon Cofalik <[email protected]>
  • Loading branch information
ma2ciek and scofalik authored Apr 21, 2020
1 parent db4f3c5 commit 7797511
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/translation-service.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ if ( !window.CKEDITOR_TRANSLATIONS ) {
}

/**
* Adds translations to existing ones or overrides the existing translations. these translations will later
* Adds translations to existing ones or overrides the existing translations. These translations will later
* be available for the {@link module:utils/locale~Locale#t `t()`} function.
*
* The `translations` is an object which consists of a `message id - translation` pairs. Note that message id can be
* either constructed either from the message string or from the message string and message context in the following form:
* 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 string and the message context in the following form:
* `<messageString>_<messageContext>` (this happens rarely and mostly for short messages or messages with placeholders).
* Since the editor displays only the message string the message context can be found either in the source code or in the
* Since the editor displays only the message string, the message context can be found either in the source code or in the
* built translations for another language.
*
* add( 'pl', {
Expand All @@ -42,7 +42,7 @@ if ( !window.CKEDITOR_TRANSLATIONS ) {
* these plural form rules will be reused by other translations added to the registered languages.
*
* add( 'pl', {
* // Translations.
* // ... Translations.
* }, n => n == 1 ? 0 : n % 10 >= 2 && n % 10 <= 4 && ( n % 100 < 10 || n % 100 >= 20 ) ? 1 : 2 );
*
* If you cannot import this function from this module (e.g. because you use a CKEditor 5 build), then you can
Expand Down

0 comments on commit 7797511

Please sign in to comment.