소스 검색

Removed example with localizing aria attributes.

Maciej Bukowski 5 년 전
부모
커밋
82a206c99e
1개의 변경된 파일0개의 추가작업 그리고 13개의 파일을 삭제
  1. 0 13
      docs/framework/guides/deep-dive/localization.md

+ 0 - 13
docs/framework/guides/deep-dive/localization.md

@@ -110,19 +110,6 @@ editor.ui.componentFactory.add( 'smilingFaceEmoji', locale => {
 	Note that this code sample lacks a few parts. See {@link framework/guides/creating-simple-plugin how to create a complete plugin} to have a better understanding about creating CKEditor 5 plugins.
 </info-box>
 
-### Example: Localizing `aria` attributes
-
-For better accessibility support, do not forget about making `aria` attributes localizable:
-
-```js
-editingView.change( writer => {
-	const t = this.t;
-	const viewRoot = editingView.document.getRoot( this.name );
-
-	writer.setAttribute( 'aria-label', t( 'Rich Text Editor, %0', [ this.name ] ), viewRoot );
-} );
-```
-
 ### Example: Localizing pending actions
 
 {@link module:core/pendingactions~PendingActions Pending actions} are used to inform the user that an action is in progress and they will lose data if they exit the editor at the given moment. Here is how you can localize them: