You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a backend that returns errors with a translation key. These errors are not translated because the UI sometimes needs to make changes to certain explanations that the backend is unaware of.
I face 2 issues:
Adding the translations makes the check_translations panic because keys are not used in the code
When trying to use the translation key as the input the macro panics.
Example of point 2:
let backend_key = "error-backend";move_tr!(backend_key);
How can I solve this?
The text was updated successfully, but these errors were encountered:
Adding the translations makes the check_translations panic because keys are not used in the code
You can put these translations in a file that is not added to check_translations glob.
When trying to use the translation key as the input the macro panics.
This is not currently implemented in leptos-fluent. The idea is to follow the definitions of variables passed to tr! macros after parsing definitions with literals, to make check_translations work with them. It should be a bit tricky because variables can be used from other files. PRs welcome.
I have a backend that returns errors with a translation key. These errors are not translated because the UI sometimes needs to make changes to certain explanations that the backend is unaware of.
I face 2 issues:
check_translations
panic because keys are not used in the codeExample of point 2:
How can I solve this?
The text was updated successfully, but these errors were encountered: