Skip to content

Commit

Permalink
fix: i18n is a straight key/value pair, it does not contain a get() f…
Browse files Browse the repository at this point in the history
…unction
  • Loading branch information
lucasnetau committed Aug 23, 2023
1 parent 58baf4e commit ebe59ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/form-builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -1027,7 +1027,7 @@ function FormBuilder(opts, element, $) {
data.lastID = h.incrementId(data.lastID)

const type = values.type || 'text'
let label = values.label || (isNew ? i18n.get(type) || mi18n.get('label') : '')
let label = values.label || (isNew ? i18n[type] || mi18n.get('label') : '')
if (type === 'hidden') {
label = `${mi18n.get(type)}: ${values.name}`
}
Expand Down

0 comments on commit ebe59ce

Please sign in to comment.