Commit Graph

3 Commits

Author SHA1 Message Date
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
48773fbccb adaptations for broken BC in gin 1.6.2, now gin 1.6.2 is the minimum supported version 2020-04-29 10:08:00 +03:00
Alex Lushpai
34cba277b9 init 2019-09-04 15:22:27 +03:00