We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1e48b16 commit da8e67aCopy full SHA for da8e67a
packages/element-web-module-api/src/api/i18n.ts
@@ -51,7 +51,8 @@ export interface I18nApi {
51
translate(key: keyof Translations, variables?: Variables): string;
52
53
/**
54
- * Convert a timestamp into a human-readable time string
+ * Convert a timestamp into a translated, human-readable time,
55
+ * using the current system time as a reference, eg. "5 minutes ago".
56
* @param timeMillis - The time in milliseconds since epoch
57
*/
58
humanizeTime(timeMillis: number): string;
0 commit comments