mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 09:20:06 +02:00
[api-minor] Move to Fluent for the localization (bug 1858715)
- For the generic viewer we use @fluent/dom and @fluent/bundle - For the builtin pdf viewer in Firefox, we set a localization url and then we rely on document.l10n which is a DOMLocalization object.
This commit is contained in:
parent
2a3090224f
commit
66982a2a11
155 changed files with 1311 additions and 28684 deletions
|
@ -182,7 +182,7 @@ class PDFPageView {
|
|||
div.className = "page";
|
||||
div.setAttribute("data-page-number", this.id);
|
||||
div.setAttribute("role", "region");
|
||||
this.l10n.get("page_landmark", { page: this.id }).then(msg => {
|
||||
this.l10n.get("pdfjs-page-landmark", { page: this.id }).then(msg => {
|
||||
div.setAttribute("aria-label", msg);
|
||||
});
|
||||
this.div = div;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue