Releases: e3stpavel/astro-nanointl
v1.0.0
Major Changes
-
89bbcb7: Added new
useTranslations
functionThere is no backward compatibility because function API is changed. Refer to docs to learn more.
-
3a570d3: Removed some overhead and updated to Astro
v4.0.0
There is no backward compatibility because of new built-in Astro i18n API.
Deprecated features:
- Custom integration
- Literal types for locales
- Strict translations loading from file system
- Access to default locale
- Custom middleware
l
function- Integration with
nanostores
and@nanostores/i18n
Patch Changes
- fd66630: Updated
args
transformer with@nanostores/i18n
dependencies removed - 1a07cb4: Added Content Collection custom translations schema.
See Using third-party collection schemas for more. - ca26e87: Updated
count
transformer with@nanostores/i18n
dependencies removed - 1187648: Updated
params
transformer with@nanostores/i18n
dependencies removed
v0.0.7
v0.0.6
v0.0.5
Patch Changes
-
9d594d0: ✨ Added aliases for
useLocale
anduseLocales
composables.Now you can call
createTranslation
oruseTranslation
instead ofuseLocale
as well as calluseTranslations
instead ofuseLocales
. This might be useful for you to write more comprehensive and self-documenting code. -
1979955: ✨ Added YAML support.
Now you can load not only
.json
translation files, but also.yaml
and.yml
. -
ab65f5e: 📦 Rearranged dependencies
v0.0.4
v0.0.3
Patch Changes
-
405bc8a: Fixed types to work with
moduleResolution
not inNode16
orNodeNext
.Before you needed to set
moduleResolution
incompilerOptions
toNode16
orNodeNext
in order to types work. Now you don't need to. It should work out of the box!
v0.0.2
Patch Changes
- 7a6927b: Re-exported
@nanostores/i18n
transform
andstrings
helper functions to easily create own transformers