Skip to content

Commit

Permalink
Fix translated aria-label for expand buttons (#23113)
Browse files Browse the repository at this point in the history
  • Loading branch information
tesseralis authored Apr 14, 2020
1 parent 6d4c664 commit d29585b
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
8 changes: 5 additions & 3 deletions www/src/components/sidebar/section-title.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,11 @@ const SplitButton = withI18n()(
<button
aria-controls={uid}
aria-expanded={isExpanded}
aria-label={i18n._(
isExpanded ? t`${item.title} collapse` : t`${item.title} expand`
)}
aria-label={
isExpanded
? i18n._(t`${item.title} collapse`)
: i18n._(t`${item.title} expand`)
}
sx={{
...styles.resetButton,
bottom: 0,
Expand Down
6 changes: 3 additions & 3 deletions www/src/data/locales/en/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ msgstr "Table of Contents"
msgid "In this section:"
msgstr "In this section:"

#: src/components/markdown-page-footer.js:24
#: src/components/markdown-page-footer.js:32
msgid "<0/> Edit this page on GitHub"
msgstr "<0/> Edit this page on GitHub"

Expand Down Expand Up @@ -126,11 +126,11 @@ msgstr "Collapse All"
msgid "Expand All"
msgstr "Expand All"

#: src/components/sidebar/section-title.js:142
#: src/components/sidebar/section-title.js:143
msgid "{0} collapse"
msgstr "{0} collapse"

#: src/components/sidebar/section-title.js:142
#: src/components/sidebar/section-title.js:144
msgid "{0} expand"
msgstr "{0} expand"

Expand Down
6 changes: 3 additions & 3 deletions www/src/data/locales/ja/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ msgstr "目次"
msgid "In this section:"
msgstr ""

#: src/components/markdown-page-footer.js:24
#: src/components/markdown-page-footer.js:32
msgid "<0/> Edit this page on GitHub"
msgstr ""

Expand Down Expand Up @@ -126,11 +126,11 @@ msgstr ""
msgid "Expand All"
msgstr ""

#: src/components/sidebar/section-title.js:142
#: src/components/sidebar/section-title.js:143
msgid "{0} collapse"
msgstr ""

#: src/components/sidebar/section-title.js:142
#: src/components/sidebar/section-title.js:144
msgid "{0} expand"
msgstr ""

Expand Down

0 comments on commit d29585b

Please sign in to comment.