mirror of
https://github.com/binwiederhier/ntfy.git
synced 2025-07-20 10:04:08 +00:00
Format fixes
This commit is contained in:
parent
8e04912201
commit
b3534aecda
2 changed files with 7 additions and 7 deletions
|
@ -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), {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue