Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong locale for invitation emails triggered by the api #1856

Open
vstefanoxx opened this issue Nov 7, 2020 · 0 comments
Open

Wrong locale for invitation emails triggered by the api #1856

vstefanoxx opened this issue Nov 7, 2020 · 0 comments

Comments

@vstefanoxx
Copy link

vstefanoxx commented Nov 7, 2020

Hi everyone,

the locale for invitation emails triggered by the api resource /api/v1/users/invite is always English and I cannot make it works with other locales (it in my case).

The call to the api is done with:

$ curl -X POST -H "X-Token: $TOKEN" -F'emails=<email>' -F'role=user' -F'message=<message>' https://<domain>/api/v1/users/invite

In configuration files config/environments/* I tried to set the following configuration:

  config.i18n.default_locale = :it
  config.i18n.locale = :it
  config.i18n.fallbacks = true

And in file config/initializers/default_settings.rb I also tried:

AppSettings.defaults["i18n.default_locale"] = "it"
AppSettings.defaults["i18n.locale"] = "it"
AppSettings.defaults["i18n.available_locales"] = ["it","en","es","fr","de","fi"]

but nothing helped: I keep receiving invitation emails in English.

Thank you,
Stefano

@vstefanoxx vstefanoxx changed the title Cannot see closed tickets Wrong locale for invitation emails triggered by the api Nov 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant