feat(localization): Add option for forcing a language (#742)
* Add forcesLanguage option * Change comments for forced language option * Add changes to CHANGELOG.md --------- Signed-off-by: Xe Iaso <me@xeiaso.net> Co-authored-by: Xe Iaso <me@xeiaso.net>
This commit is contained in:
parent
c981c23f7e
commit
0e43138324
4 changed files with 19 additions and 7 deletions
|
|
@ -32,3 +32,7 @@ const APIPrefix = "/.within.website/x/cmd/anubis/api/"
|
|||
// DefaultDifficulty is the default "difficulty" (number of leading zeroes)
|
||||
// that must be met by the client in order to pass the challenge.
|
||||
const DefaultDifficulty = 4
|
||||
|
||||
// ForcedLanguage is the language being used instead of the one of the request's Accept-Language header
|
||||
// if being set.
|
||||
var ForcedLanguage = ""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue