Skip to content

Commit d29585b

Browse files
authored
Fix translated aria-label for expand buttons (#23113)
1 parent 6d4c664 commit d29585b

File tree

3 files changed

+11
-9
lines changed

3 files changed

+11
-9
lines changed

www/src/components/sidebar/section-title.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,9 +138,11 @@ const SplitButton = withI18n()(
138138
<button
139139
aria-controls={uid}
140140
aria-expanded={isExpanded}
141-
aria-label={i18n._(
142-
isExpanded ? t`${item.title} collapse` : t`${item.title} expand`
143-
)}
141+
aria-label={
142+
isExpanded
143+
? i18n._(t`${item.title} collapse`)
144+
: i18n._(t`${item.title} expand`)
145+
}
144146
sx={{
145147
...styles.resetButton,
146148
bottom: 0,

www/src/data/locales/en/messages.po

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ msgstr "Table of Contents"
2929
msgid "In this section:"
3030
msgstr "In this section:"
3131

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

@@ -126,11 +126,11 @@ msgstr "Collapse All"
126126
msgid "Expand All"
127127
msgstr "Expand All"
128128

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

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

www/src/data/locales/ja/messages.po

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ msgstr "目次"
2929
msgid "In this section:"
3030
msgstr ""
3131

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

@@ -126,11 +126,11 @@ msgstr ""
126126
msgid "Expand All"
127127
msgstr ""
128128

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

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

0 commit comments

Comments
 (0)