core-plugin-api: add range to relativetime formatting options for TranslationFunction
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
@@ -56,7 +56,9 @@ type I18nextFormatMap = {
|
||||
};
|
||||
relativetime: {
|
||||
type: number;
|
||||
options: Intl.RelativeTimeFormatOptions;
|
||||
options: {
|
||||
range?: Intl.RelativeTimeFormatUnit;
|
||||
} & Intl.RelativeTimeFormatOptions;
|
||||
};
|
||||
list: {
|
||||
type: string[];
|
||||
|
||||
Reference in New Issue
Block a user