[I18n] Support interpreting individual i18n-values as html or text-only (#26274)

* [I18n] Add attribute for interpreting i18n-values as html or text-only

* Switch over to html_ prefixed values solution

* Update readme
This commit is contained in:
Leanid Shutau 2018-11-30 17:48:46 +03:00 committed by GitHub
parent b3a618c585
commit c800f8d592
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
16 changed files with 209 additions and 91 deletions

View file

@ -142,7 +142,7 @@
i18n-id="xpack.security.management.roles.reversedTitle"
i18n-default-message="Reserved {icon}"
i18n-values="{
icon: '<span
html_icon: '<span
class=\'kuiIcon fa-question-circle\'
tooltip={{reversedTooltip}}
aria-label={{reversedAriaLabel}}
@ -187,7 +187,7 @@
i18n-id="xpack.security.management.roles.disableTitle"
i18n-default-message="{icon} Disabled"
i18n-values="{
icon: '<span class=\'kuiIcon fa-warning\'></span>'
html_icon: '<span class=\'kuiIcon fa-warning\'></span>'
}"
>
<span class="kuiIcon fa-warning"></span>