Skip to content

Locale is not correctly set for a translated content (on admin panel) #10466

@blb78

Description

@blb78

Bug report

Locale is not correctly set on a translated content

Describe the bug

Let admit that we have a collection : Article

With one article in english and his translation in french. When I want to see the french translation in article view, the locale option is not correctly set. And If I want to correct this, It creates another article.

Steps to reproduce the behavior

  1. /admin/plugins/content-manager/collectionType/application::article.article?page=1&pageSize=10&_sort=title:ASC&plugins[i18n][locale]=en
  2. Change locale to fr
  3. Click on the french article
  4. the locale is not correctly set on the select menu
  5. set the locale to french -> BOOM

Expected behavior

  • A locale correctly set
  • No new article in french

System

  • Node.js : v14.17.0
  • NPM version: 6.14.13
  • Strapi version: 3.6.3
  • Database: postgres
  • Operating system: Linux and windows

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions