robosats/frontend
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
..
src Add support for multiline chat (#595) 2023-05-21 20:25:12 +00:00
static Fix collect_phrases.py to work on all OS (#607) 2023-05-22 08:14:22 +00:00
templates/frontend Fix all files with pre-commit 2022-10-25 11:04:12 -07:00
__init__.py Add frontend app 2022-01-01 15:05:55 -08:00
.eslintrc.json Add version mismatch detection, refactor GH workflows, draft release.yml, increase prettier scope (#250) 2022-09-21 07:03:38 -07:00
.prettierignore Add pgp signature to sensitive client - coordinator messages (#592) 2023-05-17 13:06:04 +00:00
.prettierrc Add linter and formatter 2022-08-28 00:20:45 +02:00
admin.py Conform to pep8 rules (#295) 2022-10-20 20:53:51 +00:00
apps.py Re-format all python code 2022-02-17 11:50:10 -08:00
babel.config.json Add version mismatch detection, refactor GH workflows, draft release.yml, increase prettier scope (#250) 2022-09-21 07:03:38 -07:00
Dockerfile Minor fixes on dev setup start up 2023-05-17 04:16:26 -07:00
entrypoint.sh Migrate to react-dom-router v6 (#422) 2023-04-16 18:10:48 +00:00
package-lock.json Bump i18next from 22.4.15 to 22.5.0 in /frontend (#598) 2023-05-19 10:49:58 +00:00
package.json Small style fixes and new payment method 2023-05-12 03:01:17 -07:00
tests.py Conform to pep8 rules (#295) 2022-10-20 20:53:51 +00:00
tsconfig.json Add version mismatch detection, refactor GH workflows, draft release.yml, increase prettier scope (#250) 2022-09-21 07:03:38 -07:00
urls.py Add RobotTokenSHA256 middleware, /api/robot and frontend entropy calc (#512) 2023-05-05 10:12:38 +00:00
views.py Add pre-commit-config (#298) 2022-10-24 14:34:21 +00:00
webpack.config.ts New Robot page (#357) 2023-02-21 17:22:48 +00:00