Releases: justledbetter/t
Releases · justledbetter/t
Improvements All Around
- Fixes an issue where tscan was ingesting strings from functions that weren't ours.
- Allows users to override localizations in the event they want to override what's imported from
i18n.
Scanner Fix
Calling a function to return a context to t.C() broke the regular expression used by tscan. This should now be fixed!
Minor Fix
- t.Locale() should now (hopefully) return the locale set either globally (if pointed to the package name), or locally (if pointed at a Context-retrieved T object).
Improved Usability (slightly)
- Added t.C() to more easily enable per-user sessions (with locale stored in a context.Context shared within a user's session)
- Enabled tscan to detect t.R() and t.C() strings from source files.
Migration to Native Embed
We've migrated from github.com/markbates/pkger to Golang's new (1.16+) native embed functionality.