瀏覽代碼

Aligned the code to the latest Locale class API.

Aleksander Nowodzinski 6 年之前
父節點
當前提交
cd93970378
共有 1 個文件被更改,包括 1 次插入1 次删除
  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.