astro-nanointl

Tiny set of tools to implement internationalization for Astro

MIT License

Downloads
44
Stars
8
Committers
2

Bot releases are visible (Hide)

astro-nanointl - v1.0.0 Latest Release

Published by github-actions[bot] 6 months ago

Major Changes

  • 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:

    • 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
astro-nanointl - v0.0.7

Published by github-actions[bot] about 1 year ago

Patch Changes

  • e439b6f: Fixed unmet peer dependency for Astro ^v3.0.0
astro-nanointl - v0.0.6

Published by github-actions[bot] over 1 year ago

Patch Changes

  • 9bb2395: 🐛 Fixed Could not resolve "virtual:nanointl" in extractLocale middleware
astro-nanointl - v0.0.5

Published by github-actions[bot] over 1 year ago

Patch Changes

  • 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

astro-nanointl - v0.0.4

Published by github-actions[bot] over 1 year ago

Patch Changes

  • b33fb0e: Fixed (intermediate value).glob is not a function issue
astro-nanointl - v0.0.3

Published by github-actions[bot] over 1 year ago

Patch Changes

astro-nanointl - v0.0.2

Published by github-actions[bot] over 1 year ago

Patch Changes

  • 7a6927b: Re-exported @nanostores/i18n transform and strings helper functions to easily create own transformers