Compare commits

..

2 commits

Author SHA1 Message Date
3dc625d176
update translations 2022-07-27 02:12:55 +02:00
ab9b1540eb
better arg name 2022-07-27 02:12:23 +02:00
2 changed files with 6 additions and 4 deletions

View file

@ -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"
} }

View file

@ -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')
} `); } `);
}; };