浏览代码

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: