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

As an editor with a German locale I expect the label to stay upper case #3856

Open
xldrkp opened this issue Jun 4, 2020 · 1 comment
Open
Labels
good first issue status: unconfirmed type: bug code to address defects in shipped code

Comments

@xldrkp
Copy link

xldrkp commented Jun 4, 2020

Describe the bug

label and label_singular are transformed to lower case when they are upper case by intention in the config.yml. This is at least true for the German locale.

To Reproduce

Write label: Autor in the config.yml

Expected behavior

I expect the label of the field or panel to be "Autor"

Screenshots

Auswahl_021

Applicable Versions:

  • Netlify CMS version: 2.10.50
  • Git provider: GitLab
  • OS: Manjaro Linux
  • Browser version: Chromium 83.0.4103.61

CMS configuration

- label: "Metadaten des Artikels"
        name: "article"
        file: "content/de/metadata/article-metadata.inc.yml"
        fields:
          - { label: Titel, name: title, widget: string }
          - label: Autor_innen
            label_singular: Autor_in
            name: author
[...]
´´´
@erezrokah erezrokah added type: bug code to address defects in shipped code status: unconfirmed good first issue labels Jun 7, 2020
@rbumg
Copy link

rbumg commented Jun 8, 2020

This appears to be the result of an explicit conversion (Reference: 1 & 2) using toLowerCase().

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue status: unconfirmed type: bug code to address defects in shipped code
Projects
None yet
Development

No branches or pull requests

3 participants