Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

...

Introduction

OpenSpecimen v2.0 supports internationalization. To support this need to set local locale in application. Locale configuration can be handled using REST API.

Configuration

By default Openspecimen has set en_US (English) locallocale.

Use following REST API URL to configure a locale.

...

Below is the example to configure Chinese locallocale.

URL/openspecimen/rest/ng/config-settings
MethodPUT
Requestapplication/json
json
{
  "module": "common",
  "name": "locale",
  "value": "zh_CN"
}

Response

{
  "module": "common",
  "name": "locale",
  "value": "zh_CN"
}