Closed okal closed 9 years ago
Hi Okal, you've identified a small bug, thanks for contacting me about this.
The problem is that :sw
is not a valid JVM locale. This shouldn't matter for translations, but currently does because the default make-t
:fmt-fn
is tower/fmt-str
(which requires a valid JVM locale).
So this will only show up under the following conditions:
The fix will be to change the default :fmt-fn
option for make-t
, I'll try get to that in the next few days. In the meantime you can work around this by using only valid JVM locales, or by switching the make-t
:fmt-fn
option to:
(fn [_locale fmt & args] (apply taoensso.encore/format fmt args))
Hope that helps! Cheers :-)
Thank you :-)
[com.taoensso/tower "3.1.0-beta3"]
is now up on Clojars which should address this (please confirm?)
Works beautifully, thank you.
(Hope you don't mind that I closed it. Not very well-versed on GitHub issue etiquette.)
(Hope you don't mind that I closed it. Not very well-versed on GitHub issue etiquette.)
That's perfect, thank you :-) And thanks again for the detailed bug report. Cheers!
This only seems to be affecting
:sw
locale and nothing else. This bug doesn't occur for missing locales, which I found interesting, but it still occurs for the:sw
locale even when it's missing.I created a repo to demonstrate the bug https://github.com/okal/tower-invalid-locale