mirror of
https://github.com/misterunknown/ifm.git
synced 2025-08-10 10:04:01 +02:00
Detect language instead of hard-code.
This commit is contained in:
@@ -1413,7 +1413,7 @@ function IFM(params) {
|
|||||||
this.formatDate = function( timestamp ) {
|
this.formatDate = function( timestamp ) {
|
||||||
let d = new Date( timestamp * 1000 );
|
let d = new Date( timestamp * 1000 );
|
||||||
|
|
||||||
return d.toLocaleString(self.config.dateLocale);
|
return d.toLocaleString(navigator.language || "en-US");
|
||||||
};
|
};
|
||||||
|
|
||||||
this.getClipboardLink = function( relpath ) {
|
this.getClipboardLink = function( relpath ) {
|
||||||
|
@@ -31,7 +31,6 @@ class IFM {
|
|||||||
"tmp_dir" => "",
|
"tmp_dir" => "",
|
||||||
"timezone" => "",
|
"timezone" => "",
|
||||||
"forbiddenChars" => [],
|
"forbiddenChars" => [],
|
||||||
"dateLocale" => "en-US",
|
|
||||||
"language" => "###vars:default_lang###",
|
"language" => "###vars:default_lang###",
|
||||||
"selfoverwrite" => 0,
|
"selfoverwrite" => 0,
|
||||||
"session_name" => false,
|
"session_name" => false,
|
||||||
|
Reference in New Issue
Block a user