Skip to content

Releases: eartharoid/i18n

v1.2.1

26 Oct 16:57
8c239fb
Compare
Choose a tag to compare

Changelog

  • Fixed types

Full Changelog: v1.2.0...v1.2.1

v1.2.0

26 Oct 16:16
7e83963
Compare
Choose a tag to compare

Changelog

  • Added getMessages(), which accepts an array of locales and returns an object with the message in each locale
  • Added getAllMessages(), which does the same as getMessages() but returns the message in all locales

Full Changelog: v1.1.0...v1.2.0

v1.1.0

08 Sep 22:46
6db1d4d
Compare
Choose a tag to compare

Changelog

  • Improved browser compatibility by removing regex lookbehinds.
    This also improves escaping placeholders as the leading \ is now stripped:
    Before After
    \{example} {example}

Full Changelog: v1.0.4...v1.1.0

v1.0.4

27 Jun 21:47
12d83fd
Compare
Choose a tag to compare

Changelog

  • feat: fallback to default locale if provided is empty by @itzJOHv in #2

Full Changelog: v1.0.3...v1.0.4

v1.0.3

27 Jun 19:18
Compare
Choose a tag to compare

Changelog

v1.0.2

05 Nov 14:51
53377f0
Compare
Choose a tag to compare

Changelog

  • Fallback to default locale if the translated string is empty

v1.0.1

07 Oct 12:32
afa5de3
Compare
Choose a tag to compare

Changelog

  • Fixed default locale fallback

v1.0.0

27 Apr 10:16
4722a34
Compare
Choose a tag to compare

Changelog

Added

  • Named placeholders
  • Optional zero value for pluralised messages

Changed

  • Pluralisation values are now consumed
  • Removed fs, pass locales object instead of a path string