github.com/kaptinlin/jsonschema@v0.4.6/examples/i18n/README.md (about)

     1  # Internationalization Example
     2  
     3  Demonstrates multilingual error messages using Chinese (zh-Hans) and English locales.
     4  
     5  ## What it does
     6  
     7  - Shows validation errors in both Chinese and English
     8  - Demonstrates the separation of validation and unmarshaling
     9  - Shows production pattern with localized error handling
    10  
    11  ## Run
    12  
    13  ```bash
    14  go run main.go
    15  ```
    16  
    17  ## Expected output
    18  
    19  - Invalid data with validation errors in both languages
    20  - Unmarshal still works despite validation failure
    21  - Production pattern with successful validation and processing