Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Commits on Oct 15, 2015
  1. @knu
Commits on Sep 24, 2015
  1. @knu

    Default `Accept-Language` to `I18n.default_locale`

    knu committed
    Currently AutoLocale tries to set `I18n.locale` to nil when the
    Accept-Language header is missing, which leads to "nil is not a valid
    locale" error when `I18n.config.enforce_available_locales` is
    true (default).
    This commit fixes the problem by defaulting the header value to
Commits on Jan 25, 2015
  1. @DouweM

    Bump version to 2.0.5.

    DouweM committed
  2. refactor auto_locale to a concern

    Thomas Kriechbaumer committed
Commits on Jan 23, 2015
  1. @DouweM

    Bump version to 2.0.4.

    DouweM committed
  2. @DouweM

    Get AutoLocale to actually work.

    DouweM committed
    Apologies for not having tested this more thoroughly.
  3. @DouweM

    Bump version to 2.0.3.

    DouweM committed
  4. @DouweM


    DouweM committed
  5. @DouweM

    Merge pull request #36 from masarakki/auto_locale

    DouweM committed
    automate set_locale
Commits on Jul 31, 2014
  1. @DouweM

    Bump version to 2.0.2.

    DouweM committed
Commits on Jun 4, 2014
  1. @mhannig

    According to RFC2616 the parser should accept wildcards.

    mhannig committed
    For now it may be save to ignore them.
    However in a future implementation the wildcard should match any language
    given by the 'available_languages' array in methods determinating a preferred
    or compatible language for the user.
Commits on May 3, 2014
  1. @masarakki

    automatically set_locale

    masarakki committed
  2. @DouweM

    Merge pull request #39 from coneybeare/patch-1

    DouweM committed
    Setup a new parser outside of Middleware using HTTP_ACCEPT_LANGUAGE dire...
  3. @DouweM

    Slight optimization.

    DouweM committed
Commits on May 1, 2014
  1. Make language comparisons case-insensitive

    Ben Carlsson committed
Commits on Feb 20, 2014
  1. @coneybeare

    Setup a new parser outside of Middleware using HTTP_ACCEPT_LANGUAGE d…

    coneybeare committed
    Allows you to use the gem outside of environments where the middleware does not run, such as controller specs.
Commits on Feb 5, 2014
  1. @planas
Commits on Jan 26, 2014
  1. @DouweM

    Cleanup parser.

    DouweM committed
  2. @kostyantyn

    Improves language parser

    kostyantyn committed
    1. If header is malformed, pre-cache empty array instead of parsing it each time
    2. Validate locale and type cast its quality during first map iteration to reduce number of operations
    3. Split locales by string "," instead of using regex /,/ to increase performance
Commits on Jan 23, 2014
  1. @DouweM

    Bump version to 2.0.1.

    DouweM committed
Commits on Dec 20, 2013
  1. @bquorning

    Simplify #sanitize_available_locales

    bquorning committed
    Maybe simplified too much?
Commits on Sep 6, 2013
  1. @DouweM

    Bump version to 2.0.0.

    DouweM committed
  2. @DouweM

    Don't double load VERSION constant.

    DouweM committed
    Fixes #25.
  3. @DouweM


    DouweM committed
  4. @DouweM

    Merge pull request #23 from niallsmart/master

    DouweM committed
    Fix accidental reuse of Parser object in Rack Middleware.
Commits on Nov 27, 2012
Commits on Sep 7, 2012
  1. @DouweM

    Don't crash when used while middleware was not applied.

    DouweM committed
    Middleware are not always applied when running specs.
Commits on Aug 23, 2012
  1. @phene

    Reverted accidental change

    phene committed
  2. @phene
Commits on Jul 26, 2012
  1. @DouweM
Commits on Jul 13, 2012
  1. Pass only header itself to parser

  2. Split up responsibilities

  3. Switch to RSpec

Something went wrong with that request. Please try again.