Home
Support Forums

Beta Feature: i18n Support

Hey,

I wanted to try the multi language support, so I added the very promising beta features.
After I pushed nothing has changed in the CMS… Can somebody clarify what I am doing wrong or if I have wrong expectations.
I was expecting that the CMS would add new fields, where I can type a translation, which then gets saved into their own file.

This is my config yml:

backend:
  name: git-gateway
  branch: master

media_folder: static/img
public_folder: /img

site_url: https://my-url-code.netlify.app

structure: multiple_folders
locales: [de, en]
default_locale: de

collections:
  - name: 'show'
    label: 'Show'
    folder: 'assets/content/show'
    create: true
    format: 'json'
    slug: '{{slug}}'
    editor:
      preview: true
    i18n: true
    fields:
      - { label: 'Title', name: 'title', widget: 'string', i18n: true }
      - {
          label: 'Featured Image',
          name: 'thumbnail',
          widget: 'image',
          allow_multiple: false,
          required: false,
          i18n: duplicate,
        }
      - label: 'Gallery'
        name: 'galleryImages'
        widget: 'list'
        summary: '{{fields.image}} - {{fields.alt}}'
        i18n: true
        fields:
          - { label: 'Image', name: 'image', widget: 'image' }
          - { label: 'Alt text', name: 'alt', widget: 'string' }
      - {
          label: 'Publish Date',
          name: 'date',
          widget: 'datetime',
          i18n: duplicate,
        }
      - {
          label: 'Description',
          name: 'description',
          widget: 'string',
          i18n: true,
        }
      - { label: 'Body', name: 'body', widget: 'markdown', i18n: true }

  - label: 'Setup'
    name: 'setup'
    files:
      - label: 'Site Info'
        name: 'info'
        format: 'json'
        file: 'content/setup/info.json'
        fields:
          - { label: Site Name, name: sitename, widget: string }
          - { label: Site Description, name: sitedescription, widget: string }

Hi @pitscher :wave: Welcome to the community!

The top level configuration should be:

i18n:
  structure: multiple_folders
  locales: [de, en]
  default_locale: de

See https://www.netlifycms.org/docs/beta-features/#i18n-support
Also, please make sure you’re running the latest CMS version.

Please let me know if that works for you.