From abe717fb1026df315607e0802aff4eb47d421221 Mon Sep 17 00:00:00 2001 From: yflory Date: Mon, 15 Feb 2021 12:49:48 +0100 Subject: [PATCH] Use CryptPad language settings for OnlyOffice --- www/common/onlyoffice/inner.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/common/onlyoffice/inner.js b/www/common/onlyoffice/inner.js index f68463f9e..5ebfa6a19 100644 --- a/www/common/onlyoffice/inner.js +++ b/www/common/onlyoffice/inner.js @@ -1200,7 +1200,7 @@ define([ "firstname": metadataMgr.getUserData().name || Messages.anonymous, }, "mode": "edit", - "lang": (navigator.language || navigator.userLanguage || '').slice(0,2) + "lang": (window.cryptpadLanguage || navigator.language || navigator.userLanguage || '').slice(0,2) }, "events": { "onAppReady": function(/*evt*/) {