mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 01:10:08 +02:00
Re-factor the L10n
-implementations to use lowercase language-codes internally
This is consistent with the implementation used in the (now removed) webL10n-library, and by only using lowercase language-codes internally in the `L10n`-implementations we should avoid future issues e.g. when users manually set the `locale`-option (in the default viewer).
This commit is contained in:
parent
44cde3ccca
commit
1f9533bae9
6 changed files with 27 additions and 21 deletions
|
@ -19,7 +19,7 @@ import { PDFDateString, PromiseCapability } from "pdfjs-lib";
|
|||
const DEFAULT_FIELD_CONTENT = "-";
|
||||
|
||||
// See https://en.wikibooks.org/wiki/Lentis/Conversion_to_the_Metric_Standard_in_the_United_States
|
||||
const NON_METRIC_LOCALES = ["en-US", "en-LR", "my"];
|
||||
const NON_METRIC_LOCALES = ["en-us", "en-lr", "my"];
|
||||
|
||||
// Should use the format: `width x height`, in portrait orientation. The names,
|
||||
// which are l10n-ids, should be lowercase.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue