Selaa lähdekoodia

Aligned the code to the latest Locale class API.

Aleksander Nowodzinski 6 vuotta sitten
vanhempi
commit
cd93970378
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      packages/ckeditor5-ckfinder/src/ckfindercommand.js

+ 1 - 1
packages/ckeditor5-ckfinder/src/ckfindercommand.js

@@ -66,7 +66,7 @@ export default class CKFinderCommand extends Command {
 
 		// Pass the lang code to the CKFinder if not defined by user.
 		if ( !options.language ) {
-			options.language = editor.locale.language;
+			options.language = editor.locale.uiLanguage;
 		}
 
 		// The onInit method allows to extend CKFinder's behavior. It is used to attach event listeners to file choosing related events.