mirror of
https://github.com/the-djmaze/snappymail.git
synced 2025-03-05 03:09:15 +08:00
A solution for #1056 to support <html data-date-lang="fa-IR"
This commit is contained in:
parent
fadba0f36a
commit
944a2cb8dc
1 changed files with 2 additions and 1 deletions
3
dev/prototype.js
vendored
3
dev/prototype.js
vendored
|
@ -29,7 +29,8 @@
|
|||
if (hourCycle) {
|
||||
options.hourCycle = hourCycle;
|
||||
}
|
||||
return this.toLocaleString(doc.documentElement.lang, options);
|
||||
let el = doc.documentElement;
|
||||
return this.toLocaleString(el.dataset.dateLang || el.lang, options);
|
||||
};
|
||||
|
||||
Element.prototype.closestWithin = function(selector, parent) {
|
||||
|
|
Loading…
Reference in a new issue