- Don't set
document.langif the value being set is an empty string.
- Ensure that
$date,$timeand$numberreact to language changes by returning a new function every time the locale changes.
- Updated logic of
getLocaleFromAcceptLanguageHeaderto return a "sibling" regional variant before moving to the next base language. E.g.fr,fr-CA;q=0.9,en;q=0.8when the available locales arefr-FR,enwill returnfr-FRbecause it's a "sibling" variant offr-CA.
- No changes since 0.6.0-beta.0
- Add
getLocaleFromAcceptLanguageHeaderfor server side locale detection - Support number skeletons. Support might not be complete.
- Fix bug in 0.5.0.
- Ensure that
formatMessagereacts to language changes by returning a new function every time the locale changes.
- Make some types more strict
- Update to latest version of typescript and babel-typescript.
- Export method (not a store) to generate a translation. Should almost never be used in the wild, as it won't be reactive.
- Fix typescript types
- [FEATURE] Add
$jsonstore to access the raw translations object. This feature was added to svelte-intl after the API of this library copied it, so this brings it to parity.
- [FEATURE] Allow to define keys as nested objects (e.g.
{ dinner: { main: { food: 'pizza' } } }) beside of the traditional dot-namespaced flat object (e.g.{ 'dinner.main.food': 'pizza' })