Skip to content

Overwrite locales!? #18

@iamjinme

Description

@iamjinme

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"
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions