add i18n for console logs

This commit is contained in:
ari melody 2025-07-13 20:44:54 +01:00
parent b170a532f6
commit 7752585488
Signed by: ari
GPG key ID: CF99829C92678188
14 changed files with 77 additions and 31 deletions

View file

@ -21,6 +21,6 @@ export function shorthand(date) {
unit = denoms[index].unit;
}
if (value > 0)
return lang.string('post.time').replaceAll('%1', Math.floor(value) + unit);
return lang.string('post.time', Math.floor(value) + unit);
return "in " + Math.floor(value) + unit;
}