Skip to content

locale is transformed to lowercase #81

@ToP29

Description

@ToP29

I am working on pretty big project reworking it from svetle-i18n and we are using locale when saving items to database, so previously we saved every locale in uppercase format and now if i implement this package it breaks everything across the project, because it transforms current locale to lowercase. I think that locale should be kept in same format as it is defined in loaders (key locale).

const config = {
  parser: parser({ ignoreTag: true }),
  loaders: [
    {
      locale: 'CS',
      key: '',
      loader: async () => (await import('localization/messages/cs.json')).default,
    },
    {
      locale: 'EN',
      key: '',
      loader: async () => (await import('localization/messages/en.json')).default,
    },
  ],
};

Metadata

Metadata

Assignees

No one assigned

    Labels

    baseIssue related to base functionalityenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions