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

Collection list contains broken entries when a Scots Gaelic (GD) translation is added #5909

Closed
anjackson opened this issue Oct 19, 2021 · 1 comment · Fixed by #5922
Closed
Labels
area: i18n type: bug code to address defects in shipped code

Comments

@anjackson
Copy link

Describe the bug
I have a Hugo site that uses multiple files to store localised content, and have set NetlifyCMS up to edit this collection as shown at https://github.com/ukwa/ukwa-site/blob/169c23635637857029f9d64548f55966ddd94b8f/static/admin/config.yml#L43-L61

  - name: "info"
    label: "Information Page"
    folder: content/info
    create: false
    path: "{{slug}}/index"
    i18n: 
      structure: multiple_files
      locales: [en, cy, gd]
      default_locale: en
    preview_path: "info/{{slug}}"
    fields:
      - label: Title
        name: title
        widget: string
        i18n: true
      - label: Body
        name: body
        widget: markdown
        i18n: true

i.e. three languages are supported. When I add the English and Welsh, this works as expected. But when adding the Scots Gaelic, another item shows up in the collections list, like this:

netlify-cms-bug

i.e. the item that says 'Rabhadh is Toirt a-nuas' is just the GD-locale title of the 'Notice and Takedown' page. If you click on 'Rabhadh is Toirt a-nuas' the editor shows but the edit panes are empty. If you click on 'Notice and Takedown' you can edit the page and it's translated versions just fine.

To Reproduce

I can reproduce this simply by adding a gd locale translation of a given page.

Expected behavior

Just show an entry for each page once, using the default locale as the title.

Screenshots

See above.

Applicable Versions:

  • netlify-cms@2.10.173
  • GitHub provider via git-gateway
  • OS: Windows 10
  • Firefox or Chrome (latest versions)

CMS configuration

https://github.com/ukwa/ukwa-site/blob/169c23635637857029f9d64548f55966ddd94b8f/static/admin/config.yml

Additional context

As gd is a fairly uncommon locale, perhaps it's missing from some list of known locales?

@anjackson
Copy link
Author

Great! Thanks all!

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

Successfully merging a pull request may close this issue.

2 participants