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