Better doc

This commit is contained in:
David Baker 2025-11-28 15:20:51 +00:00
parent 56662c53e9
commit 65edff067a

View File

@ -51,7 +51,8 @@ export interface I18nApi {
translate(key: keyof Translations, variables?: Variables): string;
/**
* Convert a timestamp into a human-readable time string
* Convert a timestamp into a translated, human-readable time,
* using the current system time as a reference, eg. "5 minutes ago".
* @param timeMillis - The time in milliseconds since epoch
*/
humanizeTime(timeMillis: number): string;