OpenSpecimen supports internationalization. To support this need to set locale in application. Locale configuration can be handled using REST APIinternationalisation. Based on the locale, the date formats specific to that country is automatically selected.
By default OpenSpecimen has set en_US (English) locale. You can change it from the OpenSpecimen interface as a superadmin super admin - Settings→Common→Locale.
OR use following REST API URL to configure a locale.
Use HTTP PUT method to call this API by passing the below details in JSON format:
Parameter Details :
The user authentication API takes the following parameters in json request :
|module||Module name would be: common|
Property name would be : locale
The actual value of the above specified property name.
For English - en_US
For Chinese - zh_CN
The response of this request will contain the details of the configured locale property.
Below is the example to configure Chinese locale.