tonsky / tongue

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

Make interpolations extensive via a new protocol #28

Closed cjohansen closed 3 years ago

cjohansen commented 3 years ago

As suggested in #11, this adds a protocol for interpolations that allows consumers to put other kinds of data in dictionaries than strings. It does not add any new features to Tongue - it does not support anything other than strings out of the box - but it gives users a bit more flexibility.

A few things to consider:

tonsky commented 3 years ago

Looks good! Thank you!

tonsky commented 3 years ago

Pushed 0.4.0

cjohansen commented 3 years ago

Wohoo, thanks 👍