mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-11-09 10:51:45 +00:00
fix(mail(js)): map the NSLocale to the proper CKEditor locale
This commit is contained in:
1 parent
06497a729c
commit
7c0592e03e
3 files changed
+13
-2
No files matched your search
@@ -163,6 +163,17 @@
|
||||
else
|
||||
data.SOGoContactsCategories = _.compact(data.SOGoContactsCategories);
|
||||
|
||||
if (data.LocaleCode) {
|
||||
switch (data.LocaleCode) {
|
||||
case 'sr_ME':
|
||||
case 'sr_RS':
|
||||
data.ckLocaleCode = 'sr-latn';
|
||||
break;
|
||||
default:
|
||||
data.ckLocaleCode = data.LocaleCode.replace('_', '-').toLowerCase();
|
||||
}
|
||||
}
|
||||
|
||||
angular.extend(_this.defaults, data);
|
||||
|
||||
// Configure date locale
|
||||
|
||||
Reference in new issue
Block a user