Tiny set of tools to implement internationalization for Astro
MIT License
Bot releases are visible (Hide)
89bbcb7: Added new useTranslations
function
There 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:
l
functionnanostores
and @nanostores/i18n
args
transformer with @nanostores/i18n
dependencies removedcount
transformer with @nanostores/i18n
dependencies removedparams
transformer with @nanostores/i18n
dependencies removedPublished by github-actions[bot] about 1 year ago
unmet peer dependency
for Astro ^v3.0.0
Published by github-actions[bot] over 1 year ago
Could not resolve "virtual:nanointl"
in extractLocale
middlewarePublished by github-actions[bot] over 1 year ago
9d594d0: ✨ Added aliases for useLocale
and useLocales
composables.
Now you can call createTranslation
or useTranslation
instead of useLocale
as well as call useTranslations
instead of useLocales
. 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
Published by github-actions[bot] over 1 year ago
(intermediate value).glob is not a function
issuePublished by github-actions[bot] over 1 year ago
405bc8a: Fixed types to work with moduleResolution
not in Node16
or NodeNext
.
Before you needed to set moduleResolution
in compilerOptions
to Node16
or NodeNext
in order to types work. Now you don't need to. It should work out of the box!
Published by github-actions[bot] over 1 year ago
@nanostores/i18n
transform
and strings
helper functions to easily create own transformers