Explorar o código

Merge pull request #47 from ckeditor/t/ckeditor5/1151

Internal: Aligned the `CKFinderCommand` to the latest Locale API. See ckeditor/ckeditor5#1151.
Piotrek Koszuliński %!s(int64=6) %!d(string=hai) anos
pai
achega
48d200c69c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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.