# i18n

### Interceptor name

i18n

### Supported protocols

* HTTP

### Features

* Error message internationalization return

### Configuration

* Internationalization configuration storage path
  * Read with priority`ASJARD_I18N_DIR`Environment variable
  * If empty, read`ASJARD_HOME_DIR`
  * If empty then is`the executable`Path of`locals`Directory
* File format is`{lang}.json`, where`lang`is the language
* lang is obtained from the request header`lang`(Accept-Language request header is not supported yet)

File content format is:

```json
{
  "123": {
    "prompt": "Error prompt"
    "doc": "Documentation address where you can handle this error yourself"
  }
}
```

Among them`123`is the error code, containing only`System code`and`Error code`
