Skip to content

Latest commit

 

History

History
136 lines (87 loc) · 2.88 KB

CHANGELOG.md

File metadata and controls

136 lines (87 loc) · 2.88 KB

2.0.0 / 2021-11-30

  • Deps bump.
  • Project cleanup.

1.2.0 / 2020-05-19

  • Maintenance release.
  • Dev deps bump.
  • Reorganize files.
  • Rework build scripts.

1.1.2 / 2015-12-29

  • Allow empty prefix when adding phrases via nested objects.
  • Fixed doc for .load() method.
  • .addPhrase(), .setLocale() & .load() now return this.

1.1.1 / 2015-03-22

  • Added .getLocale() method, to check real locale of requested phrase.

1.1.0 / 2015-02-01

  • Moved pluralizer to external package plurals-cldr.
  • Fixed fallbacks serialize/load.
  • Allow | escaping.
  • Recompiled REG parser with speed optimization.
  • Reorganized tests:
    • moved as much as possible to fixtures
    • 100% coverage
    • coveralls reports

1.0.2 / 2014-06-05

  • Fixed pluralizer for locale names with low dash separator ("en_US").

1.0.1 / 2014-05-23

  • Fixed partials locale for generated cache.
  • hasPhrase() fix for noFallback = true.

1.0.0 / 2014-05-23

  • Big rewrite with api change. Internal data simplified. Phrases are now compiled in lazy way on translate() call.
  • Deprecated getCompiledData(), create().
  • Constructor function can be called as factory (without new).
  • Added load() method in pair to stringify().
  • stringify() now save fallback info too.
  • hasPhrase() option noFallback to disable phrase search in fallbacks.

0.6.0 / 2014-05-21

  • Coerce plain strings & numbers params to count & value in translate().
  • Added bower support.

0.5.0 / 2014-05-20

  • Added variables support in plurals.
  • Added zero-form and other strict numbers forms for plurals.
  • Coerce number XXX to { count: XXX } in translate();

0.4.0 / 2014-05-15

  • Added objects support. Now addPhrase() can also accept Number, Array, Boolean and Object. That allows to store i18n data for external libs (calendars, time/date generators, ...), when flattened keys format is not ok.

0.3.0 / 2014-04-01

  • Added stringify method.
  • Drop browser build. Use browserify and other tools.
  • Changed internal storage format to generate more compact dumps.
  • Some speed opts.

0.2.0 / 2013-04-01

  • Drop defaultLocale public property.

0.1.3 / 2013-03-19

  • Migrated tests to mocha.
  • Fixed docs errors.
  • Added params check to getCompiledData().
  • Drop underscore dependency.
  • Change browserifier to webmake.

0.1.2 / 2012-10-23

  • Fixed handling 0 in #{variables}, thanks to @elmigranto.
  • Updated README samples.

0.1.1 / 2012-10-15

  • Refactor internal storage.
  • Fix flattenParams().
  • Improved error reporting on missing params.
  • Add hasPhrase().

0.1.0 / 2012-08-14

  • Initial release.