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

[BUG]: Image/s are deleted from the component after translate from default language #232

Open
Shekhar-Zealous opened this issue Jun 12, 2023 · 2 comments

Comments

@Shekhar-Zealous
Copy link

Shekhar-Zealous commented Jun 12, 2023

Describe the bug
Image is deleted from inside of the populated component right after it is translated from default locale into Spanish language.

To Reproduce
Steps to reproduce the behavior:

  1. Create a default English record for pages (https://prnt.sc/mKVmCENY_JmO) and add data with populated component having image/s (https://prnt.sc/pMqVlaQWf5CJ).
  2. Click on "Locale" dropdown from Action list and move to Spanish language (https://prnt.sc/uLQsxmvrqdtS). Then click on "Translate from another locale" from English and click "Yes, fill in" and save the record.
  3. Scroll down to the SEO component and you will find image is copied in Spanish record (https://prnt.sc/O-54oV-LgqQx) but the image from the English record - SEO component will be removed (https://prnt.sc/mdGtyZVwNb8S)

Another way to translate all data:

Content.Manager.mp4

Expected behavior
The image should be copied and not deleted from the translated record.

System (please complete the following information):

  • OS: Win 10
  • Browser: Chrome
  • Versions:
    • strapi: 4.9.0
    • strapi-plugin-translate: 1.0.4
    • provider: strapi-provider-translate-deepl@1.0.4

Plugin config
Please add your plugin config here, e.g.

module.exports = {
  translate: {
    enabled: true,
    config: {
      provider: 'deepl',
      providerOptions: {
        apiKey: '*************'
      },
      translatedFieldTypes: [
        'string',
        { type: 'text', format: 'plain' },
        { type: 'richtext', format: 'markdown' },
        'component',
        'dynamiczone',
      ],
      translateRelations: true,
    },
  },
}
@sargreal
Copy link
Member

@Shekhar-Zealous I don't seem to be able to reproduce this, can you please verify if this still happens with the latest version of the plugin?

@Shekhar-Zealous
Copy link
Author

@Shekhar-Zealous I don't seem to be able to reproduce this, can you please verify if this still happens with the latest version of the plugin?

Yes, I have just checked it by upgrading the package to latest version 1.1.6 and it is still happening.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Investigate
Development

No branches or pull requests

2 participants