-
-
Notifications
You must be signed in to change notification settings - Fork 8
Added the "--json" option. #45
Conversation
Example output
|
(je corrige black) |
Sinon tu penses quoi du format du JSON ? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Super PR ! approved dans l'ensemble mais qq commentaires
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM ! 🎉
J'ai ajouté des tests (ça a déjà payé, j'ai aussi corrigé un bogue) : [
{
"name": "folder/",
"percent_translated": 0.0,
"files": [
{
"name": "folder/file3",
"path": str(FIXTURE_DIR / REPO_DIR / "folder" / "file3.po"),
"entries": 1,
"fuzzies": 0,
"translated": 0,
"percent_translated": 0,
"reserved_by": None,
},
],
},
{
"name": "python-docs-fr/",
"percent_translated": 16.5,
"files": [
{
"name": "python-docs-fr/file1",
"path": str(FIXTURE_DIR / REPO_DIR / "file1.po"),
"entries": 3,
"fuzzies": 1,
"translated": 1,
"percent_translated": 33,
"reserved_by": None,
},
{
"name": "python-docs-fr/file2",
"path": str(FIXTURE_DIR / REPO_DIR / "file2.po"),
"entries": 1,
"fuzzies": 0,
"translated": 0,
"percent_translated": 0,
"reserved_by": None,
},
],
},
] Il y a 2-3 trucs à améliorer sur la sortie ;
Je corrigerai ça dans une autre PR demain ou jeudi. |
@Seluj78 ping ? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉
Closes #10