hexlet-correction icon indicating copy to clipboard operation
hexlet-correction copied to clipboard

When changing the language on the page of the created Worcspace, the language button is displayed incorrectly (stops changing its position)

Open AavadaKedavra opened this issue 1 year ago • 3 comments

Summary

The button itself does not change its state when switching the language - it remains in RU or EN position depending on the state it was in in the "general" section: https://hexlet-correction.herokuapp.com/workspace. The button stops changing its position starting from the section created by Worcspace: https://hexlet-correction.herokuapp.com/workspace/workspace_name and all sections related to it.

Info section: https://hexlet-correction.herokuapp.com/workspace/Astronaut - created workspace update section: https://hexlet-correction.herokuapp.com/workspace/Astronaut/update typos section: https://hexlet-correction.herokuapp.com/workspace/Astronaut/typos Settings section: https://hexlet-correction.herokuapp.com/workspace/Astronaut/settings Users section: https://hexlet-correction.herokuapp.com/workspace/Astronaut/users

Also.

The button stops changing its position in sections: "account settings" section: https://hexlet-correction.herokuapp.com/account/update "password settings" section: https://hexlet-correction.herokuapp.com/account/password?lang=en

In all cases, the interface language itself changes.

Precondition

  1. Having a registered account registered
  2. Workspace created

Test data

Workspace data: URL: https://www.youtube.com/watch?v=YRNyamyBOIQ Worcspace Name: Astronaut Workspace Description: Masked Wolf - Astronaut

Reproduction steps

Language change button checklist

1.   Check the button in the "account settings" section
1.1  Open: https://hexlet-correction.herokuapp.com/account 
1.2  In the "General" block, click "Edit"
1.3. Redirected to the section: https://hexlet-correction.herokuapp.com/account/update
1.4. Switch the language of the page (EN/RU) several times
1.5. The page interface has changed language, when you click the button, it switches and displays correctly

2.   Checking the button in the "password settings" section
2.1. Returned to section: https://hexlet-correction.herokuapp.com/account
2.2. Redirected to the section: https://hexlet-correction.herokuapp.com/account/password
2.3. Switched the page language (EN/RU) several times
2.4  The page interface has changed language, when clicked the button switches and displays correctly according to the selected language 

3.   Checking the button in the "info workspace_name" section
3.1  Open: https://hexlet-correction.herokuapp.com/workspaces
3.2. Click "info" in the block of the created worcspace
3.3. Redirected to the section: https://hexlet-correction.herokuapp.com/workspace/Astronaut 
3.4. Switch the language of the page (EN/RU) several times
3.5. The page interface has changed language, when you click the button it switches and displays correctly according to the selected language 

4.   Checking the button in the "update workspace" section
4.1  Press "Edit" on the workspace info panel
4.2.  Redirected to the section: https://hexlet-correction.herokuapp.com/workspace/Astronaut/update
4.3  Switch the language of the page (EN/RU) several times
4.5.  The page interface has changed language, when you press the button, it switches and displays correctly according to the selected language 

5.   Checking a button in the workspace Typos section
5.1  Click on "Typos" in the left navigation bar 
5.2.  Redirected to the section: https://hexlet-correction.herokuapp.com/workspace/Astronaut/typos
5.3.  Switch the page language (EN/RU) several times
5.4  The page interface has changed language, when pressed the button switches and displays correctly according to the selected language 

6.   Checking the button in the workspace settings section
6.1  Click on "Settings" in the navigation bar on the left-hand side 
6.2.  Redirected to the section: https://hexlet-correction.herokuapp.com/workspace/Astronaut/settings
6.3.  Switch the page language (EN/RU) several times
6.4.  The page interface has changed language, when you press the button, it switches and displays correctly according to the selected language

7.  Checking the button in the workspace users section
7.1 Click on "Users" in the left navigation bar
7.2. Redirected to the section: https://hexlet-correction.herokuapp.com/workspace/Astronaut/users
7.3. Switch the page language (EN/RU) several times
7.4. The page interface has changed language, when you click the button, it switches and displays correctly according to the selected language

Expected result

In all sections the page interface changes language, when pressed the language change button (EN/RU) switches and displays correctly according to the selected language.

Actual result

In the above sections, the button is not displayed correctly, does not correspond to the selected language. image image

Browsers

Chrome, Opera

OS

Windows

AavadaKedavra avatar Jul 17 '23 21:07 AavadaKedavra

актуально.

fey avatar Mar 11 '24 13:03 fey

Возьму в работу!

kitdim avatar Mar 24 '24 18:03 kitdim

This error is still valid

summary: In the user data editing section, the language button is not displayed correctly. RU is always displayed. environment: Google Chrome ОС Windows steps-to-reproduce: 1. Log in. 2. Press the Account Info button 3. Click the Edit button 4. Press the Change Language button several times expected-result: The language change button is displayed correctly. Depending on which language is selected, it changes to EN or RU actual-result: In the user data editing section, the language button is not displayed correctly. RU is always displayed. 1 2

Alena007S avatar Aug 10 '24 11:08 Alena007S