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

'Fill in from another locale' only shows the initial default locale #10328

Closed
Naxos84 opened this issue May 17, 2021 · 4 comments · Fixed by #10339
Closed

'Fill in from another locale' only shows the initial default locale #10328

Naxos84 opened this issue May 17, 2021 · 4 comments · Fixed by #10339
Labels
issue: bug Issue reporting a bug severity: medium If it breaks the basic use of the product but can be worked around source: plugin:i18n Source is plugin/i18n package status: confirmed Confirmed by a Strapi Team member or multiple community members

Comments

@Naxos84
Copy link

Naxos84 commented May 17, 2021

Bug report

Describe the bug

When creating localized content and want to fill a new locale entry from another locale I expect to have all setup locales as selection. Currently I only have english.

Steps to reproduce the behavior

Create a new project.

Add a collection type.
Setup multiple languages in settings. (i.e. english, german, french)

Create an entry for the created collection type. (en)
Save.
Create another entry for a different language. (de)
Save.
Select a third language. (fr)
Click "Fill in from another locale".

It only shows english locale.

Expected behavior

It shows english AND german locale.

First I assumed it is only showing the default language so I changed the default language to (de).
Clicked "Fill in from another locale".
Still it only shows english as selection option.

System

  • Node.js version: 12.16.0
  • NPM version: 6.13.4
  • Strapi version: 3.6.2
  • Database: SqLite
  • Operating system: Windows
@Naxos84 Naxos84 changed the title Fill in from another locale only shows the initial default locale 'Fill in from another locale' only shows the initial default locale May 17, 2021
@sam-pires
Copy link
Contributor

sam-pires commented May 17, 2021

Hello @Naxos84
Thanks for sharing that issue, it should display English AND German indeed.

Could you share some further information, please?

  • When you say "Create another entry for a different language. (de)" you do it from the Edit view right, by switching language?
  • If you create a French version and go back to the English version (so you have 3 versions now) if you click on "fill in from another locale", what locales are displayed?

@Naxos84
Copy link
Author

Naxos84 commented May 17, 2021

Hi @sam-pires Sorry for possibly being a bit short on the description.

What am I doing in full detail:

Create a collection type "My-Content"
Add a field of type string "my_field"
Save.
Go to settings and add locales (de, fr).

Create an entry for "My-Content"
grafik
fill the field with some value.
Save.
Inside "Create entry of 'My-Content'" switch the locale to "de".
grafik
Fill in some value.
Save.
Now switch to French (fr).
Select "Fill in from another locale".
Open the drop down menu.
grafik

There I expect to see english AND german.

@derrickmehaffy
Copy link
Member

I can confirm this issue on v3.6.2, sample repo with included sqlite DB.

Login is:

test@test.com
Test1234!

test10328.zip

@derrickmehaffy derrickmehaffy added severity: medium If it breaks the basic use of the product but can be worked around source: plugin:i18n Source is plugin/i18n package status: confirmed Confirmed by a Strapi Team member or multiple community members issue: bug Issue reporting a bug labels May 17, 2021
@derrickmehaffy derrickmehaffy added this to To Review in [Experiment] Issue Board via automation May 17, 2021
soupette added a commit that referenced this issue May 18, 2021
Signed-off-by: soupette <cyril.lpz@gmail.com>
@derrickmehaffy
Copy link
Member

@Naxos84 I've confirmed the fix in #10339 but if you need it right away and can't wait for v3.6.3 the fix is easy enough to add with extensions.

[Experiment] Issue Board automation moved this from To Review to Fixed May 19, 2021
soupette added a commit that referenced this issue May 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
issue: bug Issue reporting a bug severity: medium If it breaks the basic use of the product but can be worked around source: plugin:i18n Source is plugin/i18n package status: confirmed Confirmed by a Strapi Team member or multiple community members
Projects
No open projects
Development

Successfully merging a pull request may close this issue.

3 participants