1
0
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:
Marco Dickert
2023-11-23 15:40:43 +01:00
parent 2f9e1f35b9
commit 42eee5c283
2 changed files with 1 additions and 2 deletions

View File

@@ -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 ) {

View File

@@ -31,7 +31,6 @@ class IFM {
"tmp_dir" => "",
"timezone" => "",
"forbiddenChars" => [],
"dateLocale" => "en-US",
"language" => "###vars:default_lang###",
"selfoverwrite" => 0,
"session_name" => false,