Compare commits
2 commits
d0db3de7cf
...
3dc625d176
Author | SHA1 | Date | |
---|---|---|---|
3dc625d176 | |||
ab9b1540eb |
2 changed files with 6 additions and 4 deletions
|
@ -12,5 +12,7 @@
|
||||||
"c_help_opt1_desc": "Command wanted in depth.",
|
"c_help_opt1_desc": "Command wanted in depth.",
|
||||||
"c_help1": "List of categories and associated commands",
|
"c_help1": "List of categories and associated commands",
|
||||||
"c_help2": "`/help <command>` to get more information about a command.",
|
"c_help2": "`/help <command>` to get more information about a command.",
|
||||||
"c_help3": "Can't find :"
|
"c_help3": "Can't find :",
|
||||||
|
|
||||||
|
"u_time_at": "at"
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,16 +1,16 @@
|
||||||
/**
|
/**
|
||||||
* Parsed string adapted with TZ (locales) and format for the specified lang.
|
* Parsed string adapted with TZ (locales) and format for the specified lang.
|
||||||
* @param lang Lang
|
* @param tz Lang
|
||||||
* @param locale Locales
|
* @param locale Locales
|
||||||
* @param date Date
|
* @param date Date
|
||||||
* @returns String
|
* @returns String
|
||||||
*/
|
*/
|
||||||
export const showDate = (
|
export const showDate = (
|
||||||
lang: string,
|
tz: string,
|
||||||
locale: Map<string, unknown>,
|
locale: Map<string, unknown>,
|
||||||
date: Date
|
date: Date
|
||||||
) => {
|
) => {
|
||||||
return date.toLocaleString(lang).replace(' ', ` ${
|
return date.toLocaleString(tz).replace(' ', ` ${
|
||||||
locale.get('u_time_at')
|
locale.get('u_time_at')
|
||||||
} `);
|
} `);
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue