2.2.0
Updated @sveltekit-i18n/base to version 1.2.0:
config.debughas been replaced byconfig.logobject:
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