Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use fluent to format a11y strings in reader #144

Merged
merged 1 commit into from
Oct 15, 2024

Conversation

abaevbog
Copy link
Contributor

@abaevbog abaevbog commented Oct 14, 2024

  • For zotero build, add "reader.ftl" for localization
  • Remove redundant a11y strings from en-us.strings.js
  • Use document.l10n.formatValue for live messages and just data-l10n-id for aria labels
  • If document.l10n is undefined, nothing will be announced. That is until web library supports fluent.

Per: #142 (comment)
Needs: zotero/zotero#4752

- For zotero build, add "reader.ftl" for localization
- Remove redundant a11y strings from en-us.strings.js
- Use document.l10n.formatValue for live messages
and just data-l10n-id for aria labels
- If document.l10n is undefined, nothing will be announced.
That is until web library supports fluent.
@dstillman dstillman merged commit d298f21 into zotero:master Oct 15, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants