mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-09-24 06:30:32 +00:00
fix(mail(js)): map the NSLocale to the proper CKEditor locale
This commit is contained in:
@@ -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