File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed
packages/element-web-module-api Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -172,6 +172,7 @@ export interface ExtrasApi {
172172
173173// @public
174174export interface I18nApi {
175+ humanizeTime(timeMillis : number ): string ;
175176 get language(): string ;
176177 register(translations : Partial <Translations >): void ;
177178 translate(key : keyof Translations , variables ? : Variables ): string ;
Original file line number Diff line number Diff line change @@ -49,4 +49,10 @@ export interface I18nApi {
4949 * @param variables - Optional variables to interpolate into the translation
5050 */
5151 translate ( key : keyof Translations , variables ?: Variables ) : string ;
52+
53+ /**
54+ * Convert a timestamp into a human-readable time string
55+ * @param timeMillis - The time in milliseconds since epoch
56+ */
57+ humanizeTime ( timeMillis : number ) : string ;
5258}
You can’t perform that action at this time.
0 commit comments