Skip to content
Browse files

Make `loc-tree` public, mark as implementation detail

  • Loading branch information...
1 parent e3843d6 commit 65a7362f47c0fa2b040ee000d6c99413075182d2 @ptaoussanis committed
Showing with 5 additions and 2 deletions.
  1. +4 −1 src/taoensso/tower.clj
  2. +1 −1 src/taoensso/tower.cljs
View
5 src/taoensso/tower.clj
@@ -357,7 +357,10 @@
(throw (Exception. (format "Failed to load dictionary from resource: %s"
dict) e))))))
-(def ^:private loc-tree
+(def loc-tree
+ "Implementation detail.
+ Returns intelligent, descending-preference vector of locale keys to search
+ for given locale or vector of descending-preference locales."
(let [loc-tree*
(memoize
(fn [loc]
View
2 src/taoensso/tower.cljs
@@ -38,7 +38,7 @@
(def my-dict-inline (tower-macros/dict-compile {:en {:a "**hello**"}}))
(def my-dict-resource (tower-macros/dict-compile "slurps/i18n/utils.clj")))
-(def ^:private loc-tree
+(def loc-tree ; Crossover (direct)
(let [loc-tree*
(memoize
(fn [loc]

0 comments on commit 65a7362

Please sign in to comment.
Something went wrong with that request. Please try again.