Skip to content
This repository was archived by the owner on Dec 31, 2024. It is now read-only.

Commit c5f043f

Browse files
committed
⚡ improvement(typescript): change custom formatter method name
1 parent 50c8881 commit c5f043f

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

types/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ declare namespace VueI18n {
4747
type NumberFormatResult = string;
4848

4949
interface Formatter {
50-
format(message: string, values: Values): any[];
50+
interpolate(message: string, values: Values): any[];
5151
}
5252

5353
type MissingHandler = (locale: Locale, key: Path, vm?: Vue) => void;

types/test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ const i18n = new VueI18n({
5151
}
5252
},
5353
formatter: {
54-
format(message, values) {
54+
interpolate(message, values) {
5555
return [message];
5656
},
5757
},

0 commit comments

Comments
 (0)