Commit Graph

6 Commits

Author SHA1 Message Date
Reckless_Satoshi
447c361d9d
Fix unsafeAlert and grab safe urls from federation.json 2024-01-09 18:42:32 +00:00
Reckless_Satoshi
53037a3b18
Fix successful prompt avatars, rate text and txid 2024-01-07 13:29:51 +00:00
João Leal
6a1c8c32ef
Fix collect_phrases.py to work on all OS (#607)
Changed handcrafted.py to use a OrderedDict instead of a dict (guarantee the order independant of the python version)

Moved the value of "../../src" to the variable "src_path" to improve readability, and reuse the value again later in code

Changed the "Look for all matching i18n keys" part of code to order the dirs and file in a independant OS way - alphabetical order using the "sort" func of list object

Changed the "Look for all matching i18n keys" part of code to collect all phrases in a OrderedDict (guarantee the order independant of the python version)

Changed the list indexing in filepath var (filepath[10:]) to the use of os.path.relpath(filepath, src_path) func to improve readability

Changed all_phrases to a OrderedDict (guarantee the order independant of the python version) and use update method of OrderedDict to add the files's phrases and handcrafted phrases to the OrderedDict in order

Changed the loop of matches to inside the if statement (if len(matches) > 0) to improve readability - if the "if statement" is false, the loop was never executed

Changed the "Load existing locale dics and replace keys" part of code to use OrderedDict in the new_phrases var to guarantee the order of the keys insert in json.dump in all OS

Changed the "Load existing locale dics and replace keys" part of code to not substitute the keys "#{counter}" to guarantee the order independant of the json file of the translation.
2023-05-22 08:14:22 +00:00
Reckless_Satoshi
899062ae70
Rename repository 2023-05-09 06:07:16 -07:00
Reckless_Satoshi
bac276dd0d
Add backend phrases 2023-03-18 13:32:24 -07:00
Reckless_Satoshi
d9e2e9c947
Add automatic i18n phrases collector (#359)
* Init RobotPage

* Add onboarding component and generate token step

* Add robot generation step

* Add onboarding step 3

* Add Welcome componenent

* Minor fixes

* Add recovery component

* Add robot profile component

* Small fixes

* Add TOR loading component

* Small fixes

* Fix tor loading and add highres animations on android

* Lint

* Fix robot profile order buttons

* Add collect phrases alpha

* Run collect_phrases

* Add collect-phrases script to pre-commit config
2023-02-21 17:33:52 +00:00