-
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
- 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
- e439b6f: Fixed
unmet peer dependency
for Astro^v3.0.0
- 9bb2395: 🐛 Fixed
Could not resolve "virtual:nanointl"
inextractLocale
middleware
-
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
- b33fb0e: Fixed
(intermediate value).glob is not a function
issue
-
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!
- 7a6927b: Re-exported
@nanostores/i18n
transform
andstrings
helper functions to easily create own transformers