Public Release v0.6.0 · kaptinlin/go-i18n | TrylleAll releasesWhat's Changed
Changed
- Redesigned bundle construction to return configuration errors instead of silently accepting invalid locale setup.
- Made catalog loading atomic: failed loads leave the previous direct catalog untouched.
- Resolved fallback chains at lookup time instead of storing fallback-populated catalog copies.
- Replaced
TranslationResult.Locale with MatchedLocale and CatalogLocale so direct, fallback, and missing results are unambiguous.
- Isolated MessageFormat integration and clarified compilation errors.
- Updated runtime dependencies.
Breaking Changes
NewBundle now returns (*I18n, error).
Option now configures construction state rather than mutating a live bundle.
TranslationResult.Locale was removed; use MatchedLocale and CatalogLocale.
- Loading an invalid or unconfigured locale now returns an error instead of skipping it.