Commit Graph

14 Commits

Author SHA1 Message Date
e7d06fa208
Add localizer interfaces (#46)
* add localizer interfaces
* add 1.18 to the supported versions
* use go 1.17 for lint for now
* use localizer interfaces in the library
* fix incorrect naming of the HTTPResponseLocalizer interface
* fix coverage collection
2022-04-22 09:37:16 +03:00
tishmaria90
604e6fda58
Add localizer interface 2022-03-28 16:51:41 +03:00
Tyschitskaya Maria
df2a898092 trans template in FuncMap 2022-02-17 09:39:25 +03:00
52109ee4ba
Refactoring and new features (#35)
* new error collector & improvements for errors
* update golangci-lint, microoptimizations, linter fixes
* UseTLS10 method
* remove dead code
* add 1.17 to the test matrix
* fix for docstring
* split the core package symbols into the subpackages (if feasible)
2021-12-01 15:40:23 +03:00
RenCurs
db67f0bcb2
Add embed pack instead packr (#26) 2021-07-29 11:29:31 +03:00
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