Add humanizeTime to the module i18n API
So modules can access it simply with the right context etc
This commit is contained in:
@@ -172,6 +172,7 @@ export interface ExtrasApi {
|
||||
|
||||
// @public
|
||||
export interface I18nApi {
|
||||
humanizeTime(timeMillis: number): string;
|
||||
get language(): string;
|
||||
register(translations: Partial<Translations>): void;
|
||||
translate(key: keyof Translations, variables?: Variables): string;
|
||||
|
||||
Reference in New Issue
Block a user