Skip to content

Wrong locale for invitation emails triggered by the api #1856

@vstefanoxx

Description

@vstefanoxx

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions