mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-09 17:55:37 +02:00
Correct formatting of locale to make it compatible with l10n (safari issue)
This commit is contained in:
parent
6cce1e44dd
commit
cbc9ad3cb6
2 changed files with 14 additions and 10 deletions
|
@ -1666,7 +1666,7 @@ document.addEventListener('DOMContentLoaded', function webViewerLoad(evt) {
|
|||
}
|
||||
|
||||
//#if !(FIREFOX || MOZCENTRAL)
|
||||
var locale = navigator.language;
|
||||
var locale = PDFJS.locale || navigator.language;
|
||||
if ('locale' in hashParams)
|
||||
locale = hashParams['locale'];
|
||||
mozL10n.setLanguage(locale);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue