i18n

Interceptor name

i18n

Supported protocols

  • HTTP

Features

  • Error message internationalization return

Configuration

  • Internationalization configuration storage path

    • Read with priorityASJARD_I18N_DIREnvironment variable

    • If empty, readASJARD_HOME_DIR

    • If empty then isthe executablePath oflocalsDirectory

  • File format is{lang}.json, wherelangis the language

  • lang is obtained from the request headerlang(Accept-Language request header is not supported yet)

File content format is:

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

Among them123is the error code, containing onlySystem codeandError code

Last updated