Releases: sveltekit-i18n/base
Releases · sveltekit-i18n/base
1.3.7
What's Changed
- adding missing translation logs by @ThibaultAndreis in #13
New Contributors
- @ThibaultAndreis made their first contribution in #13
Full Changelog: 1.3.6...1.3.7
1.3.6
What's Changed
- Fixed
toDotNotation
preserveArrays with simple values by @jarda-svoboda in #12
Full Changelog: 1.3.5...1.3.6
1.3.5
1.3.4
1.3.3
What's Changed
- This version removes unused typescript declarations from build.
Full Changelog: 1.3.2...1.3.3
1.3.2
1.3.1
1.3.0
What's Changed
- Introduced
preprocess
config prop by @jarda-svoboda in #9 - Added
rawTranslations
store by @jarda-svoboda in #10 - Fixed compatibility with Svelte 4
Full Changelog: 1.2.1...1.3.0
1.2.1
What's Changed
- Added fallback to
config.fallbackLocale
for unknown locales by @jarda-svoboda in #7
Full Changelog: 1.2.0...1.2.1
1.2.0
What's Changed
config.debug
has been replaced byconfig.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: 1.1.3...1.2.0