This repository has been archived by the owner on Sep 11, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 828
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use correct translation function for WYSIWYG buttons (#11315)
* Use correct translation function for WYSIWYG buttons * Add tests
- Loading branch information
Germain
authored
Jul 26, 2023
1 parent
9319911
commit 22f83e7
Showing
3 changed files
with
132 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
110 changes: 110 additions & 0 deletions
110
...nts/views/rooms/wysiwyg_composer/components/__snapshots__/FormattingButtons-test.tsx.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,110 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`FormattingButtons renders in german 1`] = ` | ||
<DocumentFragment> | ||
<div | ||
class="mx_FormattingButtons" | ||
> | ||
<button | ||
aria-label="Fett" | ||
class="mx_AccessibleButton mx_FormattingButtons_Button mx_FormattingButtons_Button_hover" | ||
role="button" | ||
tabindex="0" | ||
> | ||
<div | ||
class="mx_FormattingButtons_Icon" | ||
/> | ||
</button> | ||
<button | ||
aria-label="Kursiv" | ||
class="mx_AccessibleButton mx_FormattingButtons_Button mx_FormattingButtons_Button_hover" | ||
role="button" | ||
tabindex="0" | ||
> | ||
<div | ||
class="mx_FormattingButtons_Icon" | ||
/> | ||
</button> | ||
<button | ||
aria-label="Unterstrichen" | ||
class="mx_AccessibleButton mx_FormattingButtons_Button mx_FormattingButtons_Button_hover" | ||
role="button" | ||
tabindex="0" | ||
> | ||
<div | ||
class="mx_FormattingButtons_Icon" | ||
/> | ||
</button> | ||
<button | ||
aria-label="Durchgestrichen" | ||
class="mx_AccessibleButton mx_FormattingButtons_Button mx_FormattingButtons_Button_hover" | ||
role="button" | ||
tabindex="0" | ||
> | ||
<div | ||
class="mx_FormattingButtons_Icon" | ||
/> | ||
</button> | ||
<button | ||
aria-label="Ungeordnete Liste" | ||
class="mx_AccessibleButton mx_FormattingButtons_Button mx_FormattingButtons_Button_hover" | ||
role="button" | ||
tabindex="0" | ||
> | ||
<div | ||
class="mx_FormattingButtons_Icon" | ||
/> | ||
</button> | ||
<button | ||
aria-label="Nummerierte Liste" | ||
class="mx_AccessibleButton mx_FormattingButtons_Button mx_FormattingButtons_Button_hover" | ||
role="button" | ||
tabindex="0" | ||
> | ||
<div | ||
class="mx_FormattingButtons_Icon" | ||
/> | ||
</button> | ||
<button | ||
aria-label="Zitieren" | ||
class="mx_AccessibleButton mx_FormattingButtons_Button mx_FormattingButtons_Button_hover" | ||
role="button" | ||
tabindex="0" | ||
> | ||
<div | ||
class="mx_FormattingButtons_Icon" | ||
/> | ||
</button> | ||
<button | ||
aria-label="Code" | ||
class="mx_AccessibleButton mx_FormattingButtons_Button mx_FormattingButtons_Button_hover" | ||
role="button" | ||
tabindex="0" | ||
> | ||
<div | ||
class="mx_FormattingButtons_Icon" | ||
/> | ||
</button> | ||
<button | ||
aria-label="Quelltextblock" | ||
class="mx_AccessibleButton mx_FormattingButtons_Button mx_FormattingButtons_Button_hover" | ||
role="button" | ||
tabindex="0" | ||
> | ||
<div | ||
class="mx_FormattingButtons_Icon" | ||
/> | ||
</button> | ||
<button | ||
aria-label="Link" | ||
class="mx_AccessibleButton mx_FormattingButtons_Button mx_FormattingButtons_Button_hover" | ||
role="button" | ||
tabindex="0" | ||
> | ||
<div | ||
class="mx_FormattingButtons_Icon" | ||
/> | ||
</button> | ||
</div> | ||
</DocumentFragment> | ||
`; |