Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Commits on Mar 3, 2015
Commits on Oct 14, 2014
Commits on Oct 13, 2014
Commits on Oct 11, 2014
  1. Update tests for 7894d08

    authored
Commits on Oct 9, 2014
Commits on Aug 28, 2014
  1. Add `loc-tree` unit tests

    authored
  2. Address [#50], [#52] - NB distinguish between JVM and non-JVM locales

    authored
    The need to strictly enforce valid JVM Locales really only makes sense for
    the (JVM) localization utils. The translation fns can be more lenient, using
    their normal fallback mechanism when given an invalid locale.
    
    Also in this commit:
      * Switched from `Exception`s to `ex-info`s.
      * Ring middleware improvements, mostly allowed by new distinguish between
        JVM and non-JVM locales.
      * General housekeeping.
Commits on May 2, 2014
Commits on Apr 10, 2014
Commits on Mar 17, 2014
  1. Tests hk

    authored
  2. Update unit tests

    authored
Commits on Jan 19, 2014
  1. Fix #37 (broken `t` parent fallback for empty child locales)

    authored
    Dictionary compilation automatically inherits parent locale translations
    to child locales. Problem was: this only works when the relevant child locale
    is present in dictionary at compile-time.
    
    So `(dict-compile {:en {:foo "bar"} :en-US {}})` works as expected, but
       `(dict-compile {:en {:foo "bar"}})` does NOT.
    
    Simplest soln is to search for possible parent translations at runtime.
    There's a performance cost, but it's reasonable.
    
    Unit test was failing to catch this up since the :fallback-locale was
    masking the problem; tests updated to make this catchable in future.
Commits on Nov 25, 2013
Commits on Nov 6, 2013
  1. Dictionaries: refactor dictionaries code, clean up bd2b315

    authored
    In particular:
    * Dev-mode translations are now slower (simpler, more thorough reloads).
Commits on Oct 29, 2013
  1. @mopemope
Commits on Jul 30, 2013
Commits on Jul 29, 2013
Commits on Jul 12, 2013
  1. EXPERIMENTAL, BREAKING: Completely refactor Tower, borrowing heavily …

    authored
    …from clj18n (thanks asmala!)
    
    See CHANGELOG for details.
Commits on May 23, 2013
Commits on May 22, 2013
  1. @philipa

    Translation aliases: keywords in place of a translation are resolved …

    philipa authored
    …recursively. This allows several keys to refer to the same translation.
Commits on Mar 28, 2013
  1. Fix tests for 7bf9dc1 commit

    authored
Commits on Mar 13, 2013
Commits on Oct 26, 2012
Commits on Oct 9, 2012
  1. Remove (undocumented, experimental) `t*`. Integrate functionality int…

    authored
    …o `t`.
    
    As per suggestion by Janne Asmala, first non-keyword entry in `t`'s `ks` will
    be used as explicit translation fallback:
    
    `(t :invalid)` => Logs missing key; returns `:missing` translation when available.
    `(t [:invalid "foo"])` => Does NOT log missing key; Returns "foo".
Commits on Oct 5, 2012
  1. BREAKING: Refactored `t`, removed `missing-translation-fn` config option

    authored
    * Misc. housekeeping, simplification, performance tweaking, bug fixes.
    
    * As per suggestion by Janne Asmala, translation fn now supports vector keys as a
    fallback mechanism (see README). When present, fallback keys take precedence over
    fallback locales.
    
    * Refactored translation fn to handle fallback more gracefully in general. In
    particular, added support for per-locale `:missing` keys.
    
    * Replaced `:missing-translation-fn` config option with `:log-missing-translation!-fn`.
    The translation key search is now flexible enough to make this extra complication
    unnecessary. Have kept the logger configurable for people that don't want to use
    Timbre.
    
    * Added `t*`. Like `t` but ignores missing keys.
Something went wrong with that request. Please try again.