customLocale property on bk-add-new-button is ignored #446
-
Which section?Backoffice Which is the version?back-kit@1.4.7, microlc-backend@0.8.1, microlc-frontend@0.9.0 DescriptionI'm trying to use the {
"type": "element",
"tag": "bk-add-new-button",
"properties": {
"customLocale": {
"content": {
"en": "En test",
"it": "It test"
}
}
}
} Actual OutcomeThe text on the button is always Expected OutcomeI'd like to have the button with the text |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Hi @davidgarra |
Beta Was this translation helpful? Give feedback.
-
Hi @davidgarra,
Please note: the "+" sign in the |
Beta Was this translation helpful? Give feedback.
Hi @davidgarra,
back-kit
components supportcustomLocale
property since property1.4.14
. We recommend updating to the latest version,1.5.0
.Here is the corresponding release note, while this is the latest one.
Please note: the "+" sign in the
bk-add-new-button
component cannot be controlled throughcustomLocale
property, as it is not part of button label, but rather an icon. Abk-button
component can be configured to emit anadd-new
event, just like thebk-add-new-button
, while also allowing to configure the desired icon (including no icon). The second snippet from this example represents such abk-button
.