Skip to content

Releases: sveltekit-i18n/lib

2.4.2

13 Jul 16:08
Compare
Choose a tag to compare

What's Changed

  • Updated @sveltekit-i18n/base to version 1.3.5 which contains config.fallbackLocale fixes

Full Changelog: 2.4.1...2.4.2

2.4.1

12 Jul 22:02
Compare
Choose a tag to compare

What's Changed

Full Changelog: 2.4.0...2.4.1

2.4.0

12 Jul 19:00
Compare
Choose a tag to compare

What's Changed

  • Add SEO friendly locale-router example by @jarda-svoboda in #122
  • Deploy examples to Netlify by @jarda-svoboda in #123
  • Updated parser-default to version 1.1.0
    • Added currency modifier

Full Changelog: 2.3.2...2.3.3

2.3.2

10 Jul 00:11
Compare
Choose a tag to compare

What's Changed

  • This version removes unused typescript declarations from build.

Full Changelog: 2.3.1...2.3.2

2.3.1

09 Jul 23:30
Compare
Choose a tag to compare

What's Changed

  • Fixed CommonJS build.

Full Changelog: 2.3.0...2.3.1

2.3.0

08 Jul 20:28
Compare
Choose a tag to compare

What's Changed

Full Changelog: 2.2.2...2.3.0

2.2.2

22 May 19:28
Compare
Choose a tag to compare

What's Changed

  • Modifier and Parser namespaces are now (re)exported directly from sveltekit-i18n library
  • Payload types and Custom modifier prop types can be now included directly in the generic Config type (instead of new i18n<Parser.Params<CustomPayload, CustomProps>>(...)). Now you can use it like this:
const config: Config<
{} /* Add your payload here */,
{} /* Add custom modifier options here */
> = {
  parserOptions: { 
    customModifiers: { 
      /* Your custom modifiers */
    }
  }
  // ...
}


export const { t, locale /* etc... */ } = new i18n(config);

Full Changelog: 2.2.1...2.2.2

2.2.1

01 May 11:09
Compare
Choose a tag to compare

Updated @sveltekit-i18n/base to version 1.2.1:

  • Adds fallback to config.fallbackLocale when unknown locale is given – previously, only unknown translation keys have been replaced by fallbackLocale translations...

Full Changelog: 2.2.0...2.2.1

2.2.0

16 Apr 13:18
Compare
Choose a tag to compare

Updated @sveltekit-i18n/base to version 1.2.0:

  • config.debug has been replaced by config.log object:
const config = {
  // ...your config...
  log: {
    logger: console, // you can use custom loggers => { error: errorHandler, warn: warnHandler, debug: debugHandler }
    level: 'warn', // 'error' | 'warn' | 'debug'
    prefix: '[i18n]: ', // avoid by '' (empty string)
  }
}
  • Added config.fallbackValue. By default translation key is returned when no translations have been found for given translation key. You can override it using this parameter like so:
const config = {
  // ...your config...
  fallbackValue: undefined, // this will return `undefined` instead of unknown translation key...
}

Full Changelog: 2.1.4...2.2.0

2.1.4

09 Apr 10:38
Compare
Choose a tag to compare

Updated @sveltekit-i18n/base to version 1.1.3:

  • Another fix of non-standard locales

Full Changelog: 2.1.3...2.1.4