mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 06:38:07 +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
2
external/importL10n/locales.mjs
vendored
2
external/importL10n/locales.mjs
vendored
|
@ -70,7 +70,7 @@ function downloadLanguageFiles(root, langCode) {
|
|||
const MOZ_CENTRAL_PDFJS_DIR = "/raw-file/default/browser/pdfviewer/";
|
||||
|
||||
// Defines which files to download for each language.
|
||||
const files = ["viewer.properties"];
|
||||
const files = ["viewer.ftl"];
|
||||
let downloadsLeft = files.length;
|
||||
|
||||
const outputDir = path.join(root, langCode);
|
||||
|
|
3
external/webL10n/README.md
vendored
3
external/webL10n/README.md
vendored
|
@ -1,3 +0,0 @@
|
|||
The source code for the library can be found at
|
||||
|
||||
https://github.com/fabi1cazenave/webL10n
|
1034
external/webL10n/l10n.js
vendored
1034
external/webL10n/l10n.js
vendored
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue