-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: add language dropdown * feat: improve language dropdown * feat: add language dropdown test * remove test file to debug * debug tests * debug tests * debug tests * debug tests * debug tests * debug tests * debug tests * Simplify callback * debug tests * debug tests * testing * testing * debug tests * debug tests * add dropdown with dummy onchange function * add loadLanguage functions for updating language * add other languages * debug tests * added loadLanguages file to html * test removal of Blockly.Msg references * test addition of en.js script tag * test removal of custom block labels * test removal of extra css * debug tests, remove css * add back removed things except for css * test addition of en.js tag * test removal of custom block labels * testing addition of loadLanguage at startup, removal of en.js script * test addition of en.js script * testing small changes * test reloading workspace instead of containing everything in callback * test if reloading the workspace works if nothing else happens * more tests to see if just reloading will work * debug tests, reload * add back what I changed * removing any reloading * testing out reload again * testing if navigator is causing bug * try calling loadLanguage without reloading * adding some logging * moving loadLanguage function * try moving function again * fix logic negate error * add back other things now that logic negate issue fixed * add back some removed css * update css and some text * test removing test * debug tests * debug tests * debug tests * address PR comments * address PR comment - show dropdown symbol on language dropdown * begin adding translations * add black to pipfile * add remaining translations * comment out untranslated languages * add hindi * address PR comments --------- Co-authored-by: faucomte97 <f.aucomte@hotmail.co.uk>
- Loading branch information
1 parent
887fc56
commit 71d5d88
Showing
19 changed files
with
544 additions
and
105 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
from game.end_to_end_tests.base_game_test import BaseGameTest | ||
|
||
from selenium.webdriver.common.by import By | ||
|
||
class TestLanguageDropdown(BaseGameTest): | ||
def test_level_language_dropdown(self): | ||
page = self.go_to_level(1) | ||
assert page.element_exists_by_id("language_dropdown") | ||
|
||
self.selenium.find_element(By.ID, "language_dropdown").click() | ||
self.selenium.find_element(By.ID, "language_dropdown_fr").click() | ||
|
||
text_count = len(self.selenium.find_elements(By.XPATH, ("//*[contains(text(),'Move forwards')]"))) | ||
assert text_count == 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,37 @@ | ||
/* Background colours for episodes and game sidebar */ | ||
|
||
.bg--easy { | ||
background: #86ae18; | ||
background-color: #86ae18; | ||
} | ||
|
||
.bg--medium { | ||
background: #00a3e0; | ||
background-color: #00a3e0; | ||
} | ||
|
||
.bg--medium-hard { | ||
background: #008cc1; | ||
background-color: #008cc1; | ||
} | ||
|
||
.bg--brainteasers { | ||
background: #c90548; | ||
background-color: #c90548; | ||
} | ||
|
||
.bg--hard { | ||
background: #8967d3; | ||
background-color: #8967d3; | ||
} | ||
|
||
.bg--advanced { | ||
background: #754fc8; | ||
background-color: #754fc8; | ||
} | ||
|
||
.bg--shared-levels { | ||
background: #f6be00; | ||
background-color: #f6be00; | ||
} | ||
|
||
.bg--loops { | ||
background: #3F3F3F; | ||
background-color: #3F3F3F; | ||
} | ||
|
||
.bg--loops-coming-soon { | ||
background: #CBCBCB; | ||
background-color: #CBCBCB; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.