8
0
Maciej Bukowski 5 лет назад
Родитель
Сommit
bec7b5ac8b
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      docs/framework/guides/deep-dive/localization.md

+ 2 - 1
docs/framework/guides/deep-dive/localization.md

@@ -184,7 +184,8 @@ Check an example below that demonstrates a part of the `window.CKEDITOR_TRANSLAT
 		},
 
 		// A function that returns the plural form index for the given language.
-		// getPluralForm: n => n == 1 ? 0 : n % 10 >= 2 && n % 10 <= 4 && ( n % 100 < 10 || n % 100 >= 20 ) ? 1 : 2
+		// Note that you only need to pass this function when you add translations for new language.
+		getPluralForm: n => n == 1 ? 0 : n % 10 >= 2 && n % 10 <= 4 && ( n % 100 < 10 || n % 100 >= 20 ) ? 1 : 2
 	}
 	// Other languages...
 }