File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -32,9 +32,11 @@ rich_i18n_cli verify --arb-dir my_arb_dir --output report.txt
3232rich_i18n_cli verify --help
3333```
3434
35- ## Report Format
35+ ## verify
3636
37- The CLI generates a JSON report file containing statistics and errors for each ARB file analyzed. The report structure includes:
37+ ### output
38+
39+ The ` verify ` command generates a report file containing statistics and errors for each ARB file analyzed. The report structure includes:
3840
3941- ` validKeys ` : Number of translation keys that passed validation
4042- ` invalidKeys ` : Number of translation keys with errors
@@ -47,8 +49,8 @@ Given an ARB file (`arb/en.arb`):
4749``` json
4850{
4951 "title" : " Hello <b>World</b>!" ,
50- "description" : " Malformed <b>text" ,
51- "body" : " Unrecognized <foo>tag</foo>"
52+ "description" : " Malformed <b>text" , // tag is not closed
53+ "body" : " Unrecognized <foo>tag</foo>" // foo is not a valid tag in rich_text
5254}
5355```
5456
@@ -67,11 +69,6 @@ The generated report will be:
6769}
6870```
6971
70- In this example:
71- - ` title ` is valid (1 valid key)
72- - ` description ` has a malformed XML tag (missing closing tag)
73- - ` body ` contains an unrecognized tag ` <foo> ` (2 invalid keys)
74-
7572[ license_badge ] : https://img.shields.io/badge/license-MIT-blue.svg
7673[ license_link ] : https://opensource.org/licenses/MIT
7774[ package_badge ] : https://img.shields.io/pub/v/rich_i18n_cli.svg
You can’t perform that action at this time.
0 commit comments