Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Variable translations do not work in component attributes #12

Open
literat opened this issue Apr 22, 2024 · 0 comments
Open

Variable translations do not work in component attributes #12

literat opened this issue Apr 22, 2024 · 0 comments

Comments

@literat
Copy link
Contributor

literat commented Apr 22, 2024

When changing the password length, I noticed that it is not possible to add a translation with a variable directly to the component attribute. I had to work around this by creating a helper variable in twig.

I've used this "bend" for the time being with other templates.

I looked at it. The problem is because of {{ }} in the translation. If there was a different character, it works fine, this way it breaks on the regular in twigx. The solution is to either pass it in like Milos did, use another character or escaping it


{'\{\{ limit \}\}': passwordMinLength }
) }}"```

Or somehow improve the regular.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant