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'm trying to use the :missing-resource-fn option to handle translation keys without a corresponding resource. But I can't get it to work. I would expect the following code to return "missing" but instead it returns nothing. Help much appreciated.
(tr
{:missing-resource-fn (fn [x] "missing")
:dict {:en {
:example {:x"Hello %1":z"Goodbye %1, it was nice to meet you!"}}}}
[:en]
[:example/y]
["Steve"])
The text was updated successfully, but these errors were encountered:
I'm trying to use the :missing-resource-fn option to handle translation keys without a corresponding resource. But I can't get it to work. I would expect the following code to return "missing" but instead it returns nothing. Help much appreciated.
The text was updated successfully, but these errors were encountered: