You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When writing a new post, changing locale will cause an uncaught type error and the editing form of the post content isn't show up.
To Reproduce
Setup Netify CMS with i18n enabled.
Click New button in the index page.
Change writing locale dropdown from Writing in EN to another locale, for example, Writing in FR
The editing form will disappear, and you will see an uncaught type error in the debug console.
Expected behavior
No error will be thrown.
The editing form won't disappear after changing the writing locale.
Screenshots
Applicable Versions:
Netlify CMS version: 2.*.*
Git provider: Self-hosted Gitlab
OS: MacOS
Browser version: chrome 99
CMS configuration
config.yaml
backend:
name: gitlabrepo: alvin/static-api-testbed # Path to your GitLab repositoryauth_type: pkce # Required for pkceapp_id: #maskedapi_root: #maskedbase_url: #maskedauth_endpoint: oauth/authorizepublish_mode: editorial_workflowmedia_folder: "static/images/uploads"public_folder: "static/images/uploads"i18n:
locales:
- en
- frstructure: "multiple_files"default_locale: encollections:
- name: "announcement"# Used in routes, e.g., /admin/collections/bloglabel: "Announcement"# Used in the UIi18n: truefolder: "content/announcement"# The path to the folder where the documents are storedcreate: true # Allow users to create new documents in this collectionslug: "{{year}}{{month}}{{day}}-{{slug}}"# Filename template, e.g., YYYY-MM-DD-title.mdfields: # The fields for each document, usually in front matter
- {label: "Title", name: "title", widget: "string"}
- {label: "Publish Date", name: "date", widget: "datetime"}
- {label: "Featured Image", name: "thumbnail", widget: "image"}
- {label: "Rating (scale of 1-5)", name: "rating", widget: "number"}
- {label: "Body", name: "body", widget: "markdown"}
index.html
<!doctype html><html><head><metacharset="utf-8" /><metaname="viewport" content="width=device-width, initial-scale=1.0" /><title>Content Manager</title></head><body><!-- Include the script that builds the page and powers Netlify CMS --><scriptsrc="https://unpkg.com/netlify-cms@^2.10.187/dist/netlify-cms.js"></script></body></html>
Additional context
The text was updated successfully, but these errors were encountered:
When writing a new post, changing locale will cause an uncaught type error and the editing form of the post content isn't show up.
To Reproduce
Writing in EN
to another locale, for example,Writing in FR
Expected behavior
Screenshots
Applicable Versions:
2.*.*
CMS configuration
config.yaml
index.html
Additional context
The text was updated successfully, but these errors were encountered: