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

Translation Does not Support Simultaneously editing of Multiple Users #7303

Open
bliles opened this issue Oct 11, 2024 · 0 comments
Open

Translation Does not Support Simultaneously editing of Multiple Users #7303

bliles opened this issue Oct 11, 2024 · 0 comments

Comments

@bliles
Copy link

bliles commented Oct 11, 2024

Describe the bug
If multiple users try to edit translations for the same document, they will overwrite each others changes since Decap groups changes to a document and all translations together. To duplicate, have a multi language setup for Decap, have two users start editing different language translations for the same page. Each time the users save, they will overwrite changes made by the other translator. It should at least be configurable for Decap to treat each translation of a document as a separate instead of always saving the original document and all translations from the browser state.

To Reproduce
Have two users log in to Decap and start editing different translations of the same document simultaneously.

Expected behavior
Pull requests should contain only the actively edited file/translation, or it should be possible to configure Decap to support multiple active translators.

Applicable Versions:

  • Decap CMS version: 3.3.3
  • Git provider: GitHub
  • OS: Linux/Windows/macOS
  • Browser version: Chrome 129.0.6668.100
  • Node.JS version: 18

CMS configuration

backend:
  name: github
  repo: **redacted**
  branch: master
  base_url: **redacted**
  auth_endpoint: auth/login
  auth_scope: repo
  open_authoring: true

publish_mode: editorial_workflow
media_folder: "public/images"
public_folder: "/images"
site_url: **redacted**
show_preview_links: false

i18n:
  structure: multiple_folders
  locales: [en, de, es, fr, it, ja, pt, zh-Hans, zh-Hant]

collections:
  - label: "Blog"
    name: "blog"
    folder: "blog"
    identifier_field: title
    format: yaml-frontmatter
    preview_path: "blog/en/{{slug}}.html"
    fields:
      - label: Title
        name: title
        widget: string
        i18n: true

      - label: Page Class
        name: pageClass
        widget: hidden
        default: blog
        i18n: duplicate

      - label: Description
        name: description
        widget: string
        i18n: true
        required: false

      - label: Meta Description
        name: metaDescription
        widget: string
        i18n: true
        required: false

      - label: Date
        name: date
        format: "YYYY/MM/DD"
        default:
        time_format: false
        widget: datetime
        required: false
        i18n: true

      - label: Tags
        name: tags
        widget: list
        i18n: true
        allow_add: true

      - label: Image
        name: image
        widget: image
        i18n: duplicate
        required: false

      - label: Featured
        name: isFeatured
        widget: boolean
        i18n: duplicate
        required: false

      - label: Body
        name: body
        widget: markdown
        i18n: true

    create: true
    i18n: true
@bliles bliles added the type: bug code to address defects in shipped code label Oct 11, 2024
@hip3r hip3r changed the title Translation Does not Support Multiple Users Translation Does not Support Simultaneously editing of Multiple Users Oct 15, 2024
@martinjagodic martinjagodic added area: i18n and removed type: bug code to address defects in shipped code labels Oct 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants
@bliles @martinjagodic and others