forked from blisstown/campfire
add i18n for console logs
This commit is contained in:
parent
b170a532f6
commit
7752585488
14 changed files with 77 additions and 31 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue