Releases: e3stpavel/astro-nanointl
v1.0.0
Major Changes
-
89bbcb7: Added new
useTranslationsfunctionThere 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.0There 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
lfunction- Integration with
nanostoresand@nanostores/i18n
Patch Changes
- fd66630: Updated
argstransformer with@nanostores/i18ndependencies removed - 1a07cb4: Added Content Collection custom translations schema.
See Using third-party collection schemas for more. - ca26e87: Updated
counttransformer with@nanostores/i18ndependencies removed - 1187648: Updated
paramstransformer with@nanostores/i18ndependencies removed
v0.0.7
v0.0.6
v0.0.5
Patch Changes
-
9d594d0: ✨ Added aliases for
useLocaleanduseLocalescomposables.Now you can call
createTranslationoruseTranslationinstead ofuseLocaleas well as calluseTranslationsinstead 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
.jsontranslation files, but also.yamland.yml. -
ab65f5e: 📦 Rearranged dependencies
v0.0.4
v0.0.3
Patch Changes
-
405bc8a: Fixed types to work with
moduleResolutionnot inNode16orNodeNext.Before you needed to set
moduleResolutionincompilerOptionstoNode16orNodeNextin 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/i18ntransformandstringshelper functions to easily create own transformers