Releases: eartharoid/i18n
Releases · eartharoid/i18n
v1.2.1
v1.2.0
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 asgetMessages()
but returns the message in all locales
Full Changelog: v1.1.0...v1.2.0
v1.1.0
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
Changelog
Full Changelog: v1.0.3...v1.0.4
v1.0.3
v1.0.2
Changelog
- Fallback to default locale if the translated string is empty
v1.0.1
Changelog
- Fixed default locale fallback
v1.0.0
Changelog
Added
- Named placeholders
- Optional
zero
value for pluralised messages
Changed
- Pluralisation values are now consumed
- Removed
fs
, passlocales
object instead of apath
string