Commit Graph

9 Commits

Author SHA1 Message Date
d15ed7ffec
Static analysis (#23)
* lint stage for a workflow
* golangci-lint config
* lint only new code or last commit
* run lint only for pull requests
2021-02-09 14:57:14 +03:00
c79b3b0c0f
Sentry update, go 1.15 support
* Clone() method in Localizer component allows to clone it just like LocalizationMiddleware does.
* RavenClientInterface contains all *raven.Client method, which allows external use without type casting.
* Tests and godoc fix for Go 1.15.
2020-11-12 10:23:27 +03:00
1de2e5626f
Better stacktrace generation system, better tests for Sentry, new badge 2020-08-03 14:45:16 +03:00
e6dd1643cf
[feature] Individual localizer for each context
* proposal with context localizer (engine.GetLocalizedMessage shouldn't be used for localizing for individual requests data)
* normal test for SetLocale
* use sync.Map
* method to preload languages into localizer
* DefaultLanguages variable
* PreloadLanguages field in core.Engine
* don't copy sync.Map
* patch for goroutine safety usage of Localizer
* fix for engine constructor
* additional test for localizer middleware, which is more close to real environment
* filter language.Und
* prevent root placeholder tag usage
* remove reduntant bundle storage, deprecated (*core.Localizer).FetchLanguage()
2020-05-18 13:37:24 +03:00
9ad220967e allow alternative logger implementations 2019-12-26 17:23:26 +03:00
6290301815 updated gin, better code 2019-12-12 12:06:38 +03:00
bd7f8f9547 [fix] corresponding changes to latest dependencies versions 2019-10-17 13:12:08 +03:00
bb0172bc8d resource embedding 2019-09-18 13:44:20 +03:00
Alex Lushpai
34cba277b9 init 2019-09-04 15:22:27 +03:00