Format fixes

This commit is contained in:
binwiederhier 2023-10-29 19:57:06 -04:00
parent 8e04912201
commit b3534aecda
2 changed files with 7 additions and 7 deletions

View file

@ -134,7 +134,7 @@ export const hashCode = (s) => {
* convert `i18n.language` style str (e.g.: `en_US`) to kebab-case (e.g.: `en-US`),
* which is expected by `<html lang>` and `Intl.DateTimeFormat`
*/
export const getKebabCaseLangStr = (language) => language.replace(/_/g, '-');
export const getKebabCaseLangStr = (language) => language.replace(/_/g, "-");
export const formatShortDateTime = (timestamp, language) =>
new Intl.DateTimeFormat(getKebabCaseLangStr(language), {