Skip to content

Commit

Permalink
⚡improvement(types): backward-compatibility for kazupon#484
Browse files Browse the repository at this point in the history
  • Loading branch information
Raiondesu committed Dec 19, 2018
1 parent f33093b commit 57fe114
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/format.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export default class BaseFormatter {
this._caches = Object.create(null)
}

interpolate (message: string, values: any, path: string): Array<any> {
interpolate (message: string, values: any): Array<any> {
if (!values) {
return [message]
}
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ export default class VueI18n {

// If the custom formatter refuses to work - apply the default one
if (typeof ret === 'undefined') {
ret = defaultFormatter.interpolate(messages, values, key)
ret = defaultFormatter.interpolate(message, values, path)
}

// if interpolateMode is **not** 'string' ('row'),
Expand Down

0 comments on commit 57fe114

Please sign in to comment.