How can I set default language in osimis-webviewer and switch languages from url params?

Hi Everyone,

I make a zh.json for Chinese translation, but I don’t know how to config this language as the default one in my project.

BTW, I want to know how to switch languages by URL params or anything else by users?

I shared my Chinese translation in the attachment, hoping it is helpful for anyone else.

zh.json (3.81 KB)

Hi Ritchie,

Thanks for the chinese translation ! I’ve included it.

For selecting the language, I’ve just added the ability to select it through a url params studyId=...&language=zh

This is available in Docker images osimis/orthanc:19.6.4 if you define WVB_ALPHA_ENABLED=true

Best regards,

Alain.

Thank you, Alain!
I got it, solved my problem :+1:

在 2019年6月28日星期五 UTC+8上午1:25:31,Alain Mazy写道:

Hi Alain,

I sync zh.json translation with en.json, add two lines below.

“CROSS_HAIR” : “3D 瞄准线”,
“DOWNLOAD_AS_JPEG”: “下载 jpeg 图像”,

在 2019年6月28日星期五 UTC+8上午1:25:31,Alain Mazy写道:

zh.json (3.71 KB)

Thx, I’ve integrated them.