Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/richdocuments.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndras Timar <andras.timar@collabora.com>2020-11-11 16:55:05 +0300
committerAndras Timar <andras.timar@collabora.com>2020-11-11 16:57:35 +0300
commit2cfff242f9174d9e88f5ce37458ca09c1f884c4e (patch)
treef39ce66b98d997ff510c0d4a327b600fb861e546 /src
parentecc492410d66867ce74560597ce69556929aad1f (diff)
add French (Switzerland) and Italian (Switzerland) as special case
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Diffstat (limited to 'src')
-rw-r--r--src/helpers/index.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/helpers/index.js b/src/helpers/index.js
index 0a3cb549..a5d43efe 100644
--- a/src/helpers/index.js
+++ b/src/helpers/index.js
@@ -36,6 +36,12 @@ const languageToBCP47 = () => {
'de_CH': 'de-CH',
'gsw': 'de-CH',
'gsw_CH': 'de-CH'
+ },
+ fr: {
+ 'fr_CH': 'fr-CH'
+ },
+ it: {
+ 'it_CH': 'it-CH'
}
}
const matchingWhitelist = whitelist[language]