Skip to content

Commit

Permalink
fix: localization default fallback not being interpolated correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
logaretm committed May 13, 2020
1 parent 9726ce2 commit 165e89c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/localize.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class Dictionary {
// find if specific message for that field was specified.
message = this.container[locale]?.fields?.[field]?.[rule] || this.container[locale]?.messages?.[rule];
if (!message) {
message = '{field} is not valid';
message = '{_field_} is not valid';
}

field = this.container[locale]?.names?.[field] ?? field;
Expand Down

0 comments on commit 165e89c

Please sign in to comment.