Skip to content

Make screen reader section labels translatable #1586

@delucis

Description

@delucis

We use custom configuration rehype-autolink-headings to wrap our headings and add the clickable link icon. This includes a screenreader label which we inject but this is currently hardcoded in English:

const node = h('span.sr-only', `Section titled ${escape(text)}`);

We should make this translatable like our other language strings.

Metadata

Metadata

Assignees

Labels

help wantedIssues looking for someone to run with them!i18nAnything to do with internationalization & translation efforts - ask @YanThomas for help!

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions