Use CryptPad language settings for OnlyOffice

pull/1/head
yflory 4 years ago
parent d4232a2c17
commit abe717fb10

@ -1200,7 +1200,7 @@ define([
"firstname": metadataMgr.getUserData().name || Messages.anonymous, "firstname": metadataMgr.getUserData().name || Messages.anonymous,
}, },
"mode": "edit", "mode": "edit",
"lang": (navigator.language || navigator.userLanguage || '').slice(0,2) "lang": (window.cryptpadLanguage || navigator.language || navigator.userLanguage || '').slice(0,2)
}, },
"events": { "events": {
"onAppReady": function(/*evt*/) { "onAppReady": function(/*evt*/) {

Loading…
Cancel
Save