tonsky / tongue

Do-it-yourself i18n library for Clojure/Script
Eclipse Public License 1.0
307 stars 19 forks source link

Namespaced keys don't work anymore #19

Closed gacelita closed 5 years ago

gacelita commented 5 years ago

Any keyword with a namespace gets its namespace removed :|

(tongue.core/build-dict {:a/b "hello"})
=> {:b "hello"}
tonsky commented 5 years ago

I don’t remember whether it was intentional or not :) probably not. Care to provide a PR?

gacelita commented 5 years ago

I'll provide a PR, I believe it wasn't intentional because of the README:

 ;; namespaced keys
          :weather/rain   "Rain"
          :weather/clouds "Clouds"