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

Overwrite locales!? #18

Open
iamjinme opened this issue Jul 8, 2019 · 0 comments
Open

Overwrite locales!? #18

iamjinme opened this issue Jul 8, 2019 · 0 comments

Comments

@iamjinme
Copy link

iamjinme commented Jul 8, 2019

I'm defined my locale in english as:

{
  "BAD_PARAMETERS": 'BAD_PARAMETERS',
  "USER_NOT_FOUND": 'USER_NOT_FOUND',
  "MISSING_AUTH_HEADER": 'MISSING_AUTH_HEADER',
  "USER_EXISTS": 'USER_EXISTS',
  "SCAN_REFERENCE_EXISTS": 'Reference identifier exists to this provider',
  "TOO_MANY_RETRIES": 'TOO_MANY_RETRIES',
  "WRONG_AUTH_TYPE": 'WRONG_AUTH_TYPE',
  "WRONG_ISSUER": 'WRONG_ISSUER',
  "WRONG_AUDIENCE": 'WRONG_AUDIENCE',
  "WRONG_SCOPE": 'WRONG_SCOPE',
  "WRONG_IP": "WRONG_IP",
  "INVALID_TOKEN": "INVALID_TOKEN",
  "UNKNOW_PROVIDER": "Provider doesn't found or invalid",
}

When I try to use ctx.i18n.__(key) the en file was overwrited. Why? Thanks in advance.

{
  "UNKNOW_PROVIDER": "Provider doesn't found or invalid"
}
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