Explorar o código

Changed config.lang to config.languages.

Maciej Bukowski %!s(int64=8) %!d(string=hai) anos
pai
achega
58b88efca2

+ 1 - 1
packages/ckeditor5-core/src/editor/editor.js

@@ -63,7 +63,7 @@ export default class Editor {
 		 * @readonly
 		 * @member {module:utils/locale~Locale}
 		 */
-		this.locale = new Locale( this.config.get( 'lang' ) );
+		this.locale = new Locale( this.config.get( 'language' ) );
 
 		/**
 		 * Shorthand for {@link module:utils/locale~Locale#t}.

+ 3 - 3
packages/ckeditor5-core/tests/editor/editor.js

@@ -151,10 +151,10 @@ describe( 'Editor', () => {
 			expect( editor.t ).to.equal( editor.locale.t );
 		} );
 
-		it( 'is configured with the config.lang', () => {
-			const editor = new Editor( { lang: 'pl' } );
+		it( 'is configured with the config.language', () => {
+			const editor = new Editor( { language: 'pl' } );
 
-			expect( editor.locale.lang ).to.equal( 'pl' );
+			expect( editor.locale.language ).to.equal( 'pl' );
 		} );
 	} );