Code Monkey home page Code Monkey logo

Comments (8)

razonyang avatar razonyang commented on May 27, 2024 1

Sure.

backend:
  name: git-gateway
collections:
- create: true
  fields:
  - default: true
    hint: Whether to show comments.
    i18n: duplicate
    label: Comments
    name: comments
    required: false
    widget: boolean
  - i18n: duplicate
    label: Nav Weight
    name: nav_weight
    widget: number
  folder: content/foo
  i18n: true
  label: Foo
  name: foo
i18n:
  default_locale: en
  locales:
  - en
  - zh-hans
  - zh-hant
  structure: multiple_files
local_backend: true
locale: en
logo_url: http://localhost:7070/images/logo.png
media_folder: static/images/uploads
public_folder: /images/uploads
publish_mode: editorial_workflow
search: true
site_url: http://localhost:7070/

decapcms-boolean-i18n-duplicate

from decap-cms.

martinjagodic avatar martinjagodic commented on May 27, 2024 1

The problem is that the boolean widget does not update in real-time, while string and other widgets do. Once you save the page and refresh it, it will switch to the correct value.

I have other priorities at the moment but I would gladly accept a PR that fixes this.

I updated the original post and title to describe the issue better.

from decap-cms.

martinjagodic avatar martinjagodic commented on May 27, 2024

I don't see a comments field in your config, could that be the problem?

from decap-cms.

razonyang avatar razonyang commented on May 27, 2024

Sorry, I cut off the wrong part, updated with full configuration (maybe too long).

from decap-cms.

martinjagodic avatar martinjagodic commented on May 27, 2024

What happens if you remove default and/or required? nav_weight doesn't have them, does it work as expected?

from decap-cms.

razonyang avatar razonyang commented on May 27, 2024

What happens if you remove default and/or required?

Same issue when 1) remove one of them, 2) remove all of them.

nav_weight doesn't have them, does it work as expected?

Yep, the nav_weight works as expected.

image

from decap-cms.

razonyang avatar razonyang commented on May 27, 2024

The field will be synchronized after clicking the Toggle i18n button twice.

from decap-cms.

martinjagodic avatar martinjagodic commented on May 27, 2024

Could you prepare a minimum reproducible config? This one is very large so it's hard to determine the real culprit

from decap-cms.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.