Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: eligrey/l10n.js
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: rojakcoder/l10ns.js
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
  • 14 commits
  • 23 files changed
  • 2 contributors

Commits on Sep 1, 2013

  1. Add initial change to allow 2 form pluralities.

    Tested with English (US).
    
    Once specified with plurality, the non-plural form cannot be used
    i.e.
    'en': {
        '&plural-forms': 'nplurals=2; plural=(n!=1)',
        '&plurals': [
            {
                '%phrase1': 'This is the only allowable form'
            }
        ],
        '%phrase1': 'This is COMPLETELY ignored'
    }
    rojakcoder committed Sep 1, 2013
    Configuration menu
    Copy the full SHA
    c3bc05c View commit details
    Browse the repository at this point in the history
  2. Add initial change to allow 2 form pluralities.

    Tested with English (US).
    
    Once specified with plurality, the non-plural form cannot be used
    i.e.
    'en': {
        '&plural-forms': 'nplurals=2; plural=(n!=1)',
        '&plurals': [
            {
                '%phrase1': 'This is the only allowable form'
            }
        ],
        '%phrase1': 'This is COMPLETELY ignored'
    }
    rojakcoder committed Sep 1, 2013
    Configuration menu
    Copy the full SHA
    d1f3f6d View commit details
    Browse the repository at this point in the history
  3. Merge branch 'master' of ssh://github.com/rojakcoder/l10n.js

    Conflicts:
    	tests/one-locale-plural.html
    rojakcoder committed Sep 1, 2013
    Configuration menu
    Copy the full SHA
    f029ab0 View commit details
    Browse the repository at this point in the history

Commits on Sep 4, 2013

  1. Added a few fixes to parsing of plurality operators.

    Added the fix and tests for lesser than, greater than, and modulus.
    rojakcoder committed Sep 4, 2013
    Configuration menu
    Copy the full SHA
    981617e View commit details
    Browse the repository at this point in the history
  2. Added ability to parse complex conditions for plurals.

    Removed unnecessary functions and replaced with eval() with checking
    for accepted syntax.
    rojakcoder committed Sep 4, 2013
    Configuration menu
    Copy the full SHA
    4c476cf View commit details
    Browse the repository at this point in the history

Commits on Sep 7, 2013

  1. Made several improvements to l10n.js to facilitate fallbacks.

    Changed several tests to accommodate the changes to l10n.js.
    
    Added tests for language and region fallback.
    rojakcoder committed Sep 7, 2013
    Configuration menu
    Copy the full SHA
    74bc20c View commit details
    Browse the repository at this point in the history

Commits on Sep 15, 2013

  1. Changed name of l10n.js to l10ns.js to reflect pluralization in the l…

    …ibrary.
    
    Changed the tests and demo to use the new file.
    rojakcoder committed Sep 15, 2013
    Configuration menu
    Copy the full SHA
    ae44305 View commit details
    Browse the repository at this point in the history
  2. Updated the demo to show the use of pluralizations.

    Also updated README.md to describe the use of l10ns.js.
    rojakcoder committed Sep 15, 2013
    Configuration menu
    Copy the full SHA
    61d4d1d View commit details
    Browse the repository at this point in the history
  3. Changed the demo to use the minified version of l10ns.js.

    Corrected some mistakes in README.md and added a link to view a
    live demo.
    rojakcoder committed Sep 15, 2013
    Configuration menu
    Copy the full SHA
    5342877 View commit details
    Browse the repository at this point in the history

Commits on Oct 5, 2013

  1. Added ability to use JavaScript function to evaluate the plurality.

    Updated the tests to be executed in one file instead of running each
    test in its own file one-by-one.
    
    Added tests to test the new function-form of plural evaluation.
    rojakcoder committed Oct 5, 2013
    Configuration menu
    Copy the full SHA
    6a24985 View commit details
    Browse the repository at this point in the history

Commits on Feb 10, 2015

  1. Linted l10ns.js

    Updated the minified version with the latest changes.
    Chua Chee How committed Feb 10, 2015
    Configuration menu
    Copy the full SHA
    e808ce6 View commit details
    Browse the repository at this point in the history
  2. Added version numbering to the minified file.

    Chua Chee How committed Feb 10, 2015
    Configuration menu
    Copy the full SHA
    8acd028 View commit details
    Browse the repository at this point in the history

Commits on Mar 13, 2017

  1. [1.0.1] - 2017-03-13

    Changed
    ---
    
    - Fixed a bug where the string-based plural rules for evaluation fails.
    rojakcoder committed Mar 13, 2017
    Configuration menu
    Copy the full SHA
    76b1f1f View commit details
    Browse the repository at this point in the history

Commits on Mar 14, 2017

  1. 2017-03-14

    Changed
    ---
    
    - Updated the minified version to 1.0.1
    rojakcoder committed Mar 14, 2017
    Configuration menu
    Copy the full SHA
    07acb8f View commit details
    Browse the repository at this point in the history
Loading