Admin plugin not translate default value in text blueprint

Hello.

I’m trying to translate the “default” value in blueprints.yaml for a text field, but the character string used to translate in languages.yaml is displayed instead of the translated text.

Example:

custom_text:
   type: text
   default: CUSTOM_LINK_TEXT.DEFAULT
   label: CUSTOM_LINK_TEXT.LABEL

The default field shows: CUSTOM_LINK_TEXT.DEFAULT instead the translated text.

Does anyone know how to fix this problem, if it is some kind of bug in the Admin plugin or if this type of string cannot be used in the default value of a text field.

Could you post the template where you are using this? I also assume the string in your languages.yaml file is exactly the same?

Hi @Netzhexe.

You can see this error in action if you test the changes I made in this Pull Request for the tecart plugin cookies manager.

Specifically in the blueprints.yaml file, line 54:

default: PLUGIN_TECART_COOKIE_MANGER.CUSTOM_SETTINGS.LINK_TEXT.DEFAULT