Hoppa till innehåll

Changelog

All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.

  • Set correct scope in package.json.
  • Add fallback to en if locale cannot be determined so it works in an RESTApp.
  • Add fallback to locale if messages have no keys.
  • Use @sitevision/api/common/app to determine locale.
  • Better fallback if messages for current locale is missing.
  • Remove optional dependencies.
  • Change recommended initialisation.
  • Deprecate old initialisation.
  • Remove optional chaining from process.server tenary.
  • Use Locale.getLanguage() instead of Locale.toString() on the server.
  • Added createI18n to create i18n instances.
  • Changed to typescript definitions for docs.
  • Update docs.
  • Added messageExists to Svelte store implementation and demos.
  • Added messageExists to check if a translation of a message exist for the current locale.
  • Added getMessages workaround for script modules.
  • Refactored API more tailored for WebApps and both server and client rendering.
  • Svelte support.