Closed SleeplessOne1917 closed 3 months ago
Is the expected behaviour. The message says that you're not in a reactive tracking context, which is exactly happening. If you change the language the translation will not be updated on the fly. Use move_tr!
, || tr!
, move || tr!
or use tr!
inside a reactive tracking context by another way.
Whenever I use the
tr!
macro, I see this warning show up:It only seems to happen with the
tr!
macro. I setup a test project to try this in based off of the leptos-rs/start template. All of the rust code is the same except forapp.rs
, which is the following:My main.ftl for English is the following:
Let me know if there is any more information I can provide that would be helpful.