Hi everyone,
This is my first post here. I’ve read through the official documentation and several threads about localization, but I haven’t found anything that specifically addresses Docker-based installations of Collabora.
We’ve set up a working (mostly) integration between Seafile and Collabora for a client. Collabora is running in Docker. Seafile’s UI is successfully set to German, but Collabora’s interface remains in English despite our efforts.
Here’s how we’re currently starting the container:
docker run -t -d -p 9980:9980
-e “extra_params=–o:lang=de --o:langtag=de-DE”
–restart always
–cap-add MKNOD
–cap-add SYS_ADMIN
–security-opt seccomp=unconfined
-v /opt/collabora/config/coolwsd.xml:/etc/coolwsd/coolwsd.xml
–name collabora
collabora/code
We’ve also tried setting the browser’s preferred language to German, but that didn’t make a difference. The UI continues to show in English when opening documents.
Is there something we’re missing in the Docker config? Does the UI language depend on the WOPI host or a setting inside coolwsd.xml? Any guidance would be appreciated.
Thanks in advance for your help.
Hello @eaccelera Welcome to collabora online forum 
In Docker-based setups of Collabora Online (CODE), the UI language is primarily determined by the browser language and client request headers, not directly by the extra_params
or the coolwsd.xml
settings in most cases.
1. Check Browser Language Headers
Ensure the client (browser accessing the document) sends the correct language:
- In Chrome or Firefox:
- Go to browser settings → Languages → Move Deutsch (German) to the top.
2. Set lang
in WOPI host request (if possible)
If you’re controlling or customizing the WOPI host (e.g. Seafile integration), the WOPI URL used to open the file can include a lang=de
parameter. This helps force the UI language.
For example:
https://<your-collabora-domain>/loleaflet/2.0.13/loleaflet.html?WOPISrc=...&lang=de
However, not all WOPI hosts support adding arbitrary parameters like lang
. Seafile may not expose this easily.
I found this discussion in old post might be interesting to read : Collabora CODE (with seafile) default language
Hi @darshan Thank you for the warm welcome and the detailed explanation.
I’ve already tried setting my browser’s language to German in both Chrome and Firefox, but the Collabora UI still defaults to English. I also attempted to force the language using a URL rewrite.
Specifically, on the NGINX side, I added a rule to append &lang=de
to requests that didn’t already include a lang=
parameter. Here’s the relevant part of my NGINX config:
location ^~ /loleaflet {
proxy_pass https://127.0.0.1:9980;
proxy_set_header Accept-Encoding "";
proxy_redirect off;
# Add &lang=de if not already present in the query
if ($args !~ "lang=") {
set $new_args "$args&lang=de";
rewrite ^/loleaflet/(.*)$ /loleaflet/$1?$new_args break;
}
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto https;
}
However, this didn’t seem to have any effect on the UI language.
Since I’m using Seafile, which may not expose the ability to pass custom parameters like lang=de
in the WOPI request, I’m wondering if there’s a known workaround — maybe by modifying how Seafile calls Collabora, or by injecting headers elsewhere?
I also appreciate the link to the older discussion and will go through it in case I missed something. If anyone has successfully enforced a default language in a similar setup (Collabora + Seafile via Docker), I’d really appreciate your input.
Thanks again!