Skip to content

Commit 3f4d4ac

Browse files
authored
Merge pull request #4010 from Emurgo/ruslan/YOEXT-1801/drop-languages
drop some languages
2 parents d00da55 + 4acb6ca commit 3f4d4ac

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+59
-13705
lines changed

packages/e2e-tests/pages/initialSteps.page.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import BasePage from './basepage.js';
22
import { isChrome } from '../utils/utils.js';
33
import {
44
defaultWaitTimeout,
5+
halfSecond,
56
oneSecond,
67
quarterSecond,
78
twoSeconds,
@@ -64,6 +65,7 @@ class InitialStepsPage extends BasePage {
6465
this.logger.info(`InitialStepsPage::openLanguageSelection is called`);
6566
await this.waitForElement(this.languagesDropDownLocator);
6667
await this.click(this.languagesDropDownLocator);
68+
await this.sleep(halfSecond);
6769
}
6870
async pickLanguage(countryCode) {
6971
this.logger.info(`InitialStepsPage::pickLanguage is called. Country code: "${countryCode}"`);

packages/e2e-tests/pages/wallet/settingsTab/generalSubTab.page.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { halfSecond } from '../../../helpers/timeConstants.js';
12
import SettingsTab from './settingsTab.page.js';
23

34
class GeneralSubTab extends SettingsTab {
@@ -73,6 +74,7 @@ class GeneralSubTab extends SettingsTab {
7374
this.logger.info(`GeneralSubTab::openLanguageSelection is called`);
7475
await this.waitForElement(this.languagesDropDownLocator);
7576
await this.click(this.languagesDropDownLocator);
77+
await this.sleep(halfSecond);
7678
}
7779
async pickLanguage(countryCode) {
7880
this.logger.info(`GeneralSubTab::pickLanguage is called. Country code: "${countryCode}"`);

packages/e2e-tests/test/00_1_changingLanguageInitSteps.test.js

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ describe('Changing language on the initial screen', function () {
2323
lang: 'ja-JP',
2424
btnTransalation: '次へ',
2525
},
26+
{
27+
lang: 'ko-KR',
28+
btnTransalation: '계속'
29+
},
2630
{
2731
lang: 'zh-Hans',
2832
btnTransalation: '继续',
@@ -35,10 +39,26 @@ describe('Changing language on the initial screen', function () {
3539
lang: 'de-DE',
3640
btnTransalation: 'Weiter',
3741
},
42+
{
43+
lang: 'es-ES',
44+
btnTransalation: 'Continuar',
45+
},
46+
{
47+
lang: 'fr-FR',
48+
btnTransalation: 'Continuer'
49+
},
3850
{
3951
lang: 'pt-BR',
4052
btnTransalation: 'Continuar',
4153
},
54+
{
55+
lang: 'id-ID',
56+
btnTransalation: 'Lanjutkan',
57+
},
58+
{
59+
lang: 'vi-VN',
60+
btnTransalation: 'Tiếp tục',
61+
},
4262
{
4363
lang: 'en-US',
4464
btnTransalation: 'Continue',
@@ -47,12 +67,12 @@ describe('Changing language on the initial screen', function () {
4767

4868
for (const testDatum of testData) {
4969
describe(`Changing language to ${testDatum.lang}`, function () {
50-
it('Selecting language', async function () {
70+
it(`Selecting language ${testDatum.lang}`, async function () {
5171
const initialStepsPage = new InitialStepsPage(webdriver, logger);
5272
await initialStepsPage.selectLanguage(testDatum.lang);
5373
});
5474

55-
it('Checking translation on the button', async function () {
75+
it(`Checking translation on the button ${testDatum.lang}`, async function () {
5676
const initialStepsPage = new InitialStepsPage(webdriver, logger);
5777
const btnText = await initialStepsPage.getContinueButtonText();
5878
expect(btnText).to.equal(testDatum.btnTransalation.toLocaleUpperCase());

packages/e2e-tests/test/18_changingLanguageSettings.test.js

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ describe('Changing language through the Settings', function () {
2424
{
2525
lang: 'ja-JP',
2626
btnTransalation: '一般',
27+
},
28+
{
29+
lang: 'ko-KR',
30+
btnTransalation: '일반'
2731
},
2832
{
2933
lang: 'zh-Hans',
@@ -37,10 +41,26 @@ describe('Changing language through the Settings', function () {
3741
lang: 'de-DE',
3842
btnTransalation: 'Allgemein',
3943
},
44+
{
45+
lang: 'es-ES',
46+
btnTransalation: 'General',
47+
},
48+
{
49+
lang: 'fr-FR',
50+
btnTransalation: 'Général'
51+
},
4052
{
4153
lang: 'pt-BR',
4254
btnTransalation: 'Geral',
4355
},
56+
{
57+
lang: 'id-ID',
58+
btnTransalation: 'Umum',
59+
},
60+
{
61+
lang: 'vi-VN',
62+
btnTransalation: 'Chung',
63+
},
4464
{
4565
lang: 'en-US',
4666
btnTransalation: 'General',
@@ -56,12 +76,12 @@ describe('Changing language through the Settings', function () {
5676

5777
for (const testDatum of testData) {
5878
describe(`Changing language to ${testDatum.lang}`, function () {
59-
it('Selecting language', async function () {
79+
it(`Selecting language ${testDatum.lang}`, async function () {
6080
const generalSubTab = new GeneralSubTab(webdriver, logger);
6181
await generalSubTab.selectLanguage(testDatum.lang);
6282
});
6383

64-
it('Checking translation on the button', async function () {
84+
it(`Checking translation on the button ${testDatum.lang}`, async function () {
6585
const settingsPage = new SettingsTab(webdriver, logger);
6686
const btnText = await settingsPage.getGeneralSubTabText();
6787
expect(btnText).to.equal(testDatum.btnTransalation);

packages/yoroi-extension/app/assets/images/flags/czech.inline.svg

Lines changed: 0 additions & 23 deletions
This file was deleted.

packages/yoroi-extension/app/assets/images/flags/dutch.inline.svg

Lines changed: 0 additions & 29 deletions
This file was deleted.

packages/yoroi-extension/app/assets/images/flags/italian.inline.svg

Lines changed: 0 additions & 26 deletions
This file was deleted.

packages/yoroi-extension/app/assets/images/flags/slovak.inline.svg

Lines changed: 0 additions & 40 deletions
This file was deleted.

packages/yoroi-extension/app/assets/images/flags/turkish.inline.svg

Lines changed: 0 additions & 26 deletions
This file was deleted.

packages/yoroi-extension/app/connector/App.js

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,10 @@ import zh from 'react-intl/locale-data/zh';
1212
import ru from 'react-intl/locale-data/ru';
1313
import de from 'react-intl/locale-data/de';
1414
import fr from 'react-intl/locale-data/fr';
15-
import nl from 'react-intl/locale-data/nl';
1615
import pt from 'react-intl/locale-data/pt';
1716
import id from 'react-intl/locale-data/id';
1817
import es from 'react-intl/locale-data/es';
19-
import it from 'react-intl/locale-data/it';
20-
import tr from 'react-intl/locale-data/tr';
21-
import cs from 'react-intl/locale-data/cs';
22-
import sk from 'react-intl/locale-data/sk';
18+
import vi from 'react-intl/locale-data/vi';
2319
import { autorun, observable, runInAction } from 'mobx';
2420
import { Routes } from './Routes';
2521
import { translations } from '../i18n/translations';
@@ -41,14 +37,10 @@ addLocaleData([
4137
...ru,
4238
...de,
4339
...fr,
44-
...nl,
4540
...pt,
4641
...id,
4742
...es,
48-
...it,
49-
...tr,
50-
...cs,
51-
...sk,
43+
...vi,
5244
]);
5345

5446
type Props = {|

0 commit comments

Comments
 (0)