Explorar el Código

Docs: Added a simpler scenario.

Maciej Bukowski hace 5 años
padre
commit
b9cd386a6c
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  1. 3 0
      packages/ckeditor5-utils/src/translation-service.js

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

@@ -41,6 +41,9 @@ if ( !window.CKEDITOR_TRANSLATIONS ) {
  * language file was loaded for that language. All language files coming from CKEditor 5 sources will have this option set, so
  * these plural form rules will be reused by other translations added to the registered languages.
  *
+ * 		add( 'en', {
+ *	 		// ... Translations.
+ * 		}, n => n !== 1 );
  * 		add( 'pl', {
  *	 		// ... Translations.
  * 		}, n => n == 1 ? 0 : n % 10 >= 2 && n % 10 <= 4 && ( n % 100 < 10 || n % 100 >= 20 ) ? 1 : 2 );