Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix `t` fallback for missing keys

  • Loading branch information...
commit 7bf9dc173565d2ad5d676b7cff6df73238d7c1b2 1 parent ba586a6
Peter Taoussanis authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  src/taoensso/tower.clj
3  src/taoensso/tower.clj
View
@@ -473,7 +473,8 @@
;; Try fall back to :missing key in named or default locale
(when-let [pattern (some get-in-dict (for [l @lchoices*]
[l :missing]))]
- (format-msg pattern @missing-args)))))))))))
+ ;; Use 's to escape {}'s for MessageFormat
+ (format-msg pattern (str "'" @missing-args "'"))))))))))))
(comment (with-locale :en-ZA (t :example/foo))
(with-locale :en-ZA (with-scope :example (t :foo)))
Please sign in to comment.
Something went wrong with that request. Please try again.