migrate settings locale

This commit is contained in:
antelle 2017-02-01 23:46:23 +01:00
parent c85b2c75f7
commit a086a2f0e4
1 changed files with 3 additions and 0 deletions

View File

@ -60,6 +60,9 @@ const AppSettingsModel = Backbone.Model.extend({
if (data.rememberKeyFiles === true) {
data.rememberKeyFiles = 'data';
}
if (data.locale && data.locale.length > 2) {
data.locale = data.locale.substr(0, 2);
}
},
save: function() {