File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,8 @@ function createLocaleApi (http) {
36
36
const locale = this
37
37
// this property shouldn't be sent back if it exists
38
38
delete locale . default
39
+ delete locale . fallback_code
40
+ delete locale . fallbackCode
39
41
return createUpdateEntity ( {
40
42
http : http ,
41
43
entityPath : 'locales' ,
@@ -66,11 +68,12 @@ function createLocaleApi (http) {
66
68
* @return {Locale } Wrapped locale data
67
69
*/
68
70
export function wrapLocale ( http , data ) {
69
- const locale = mixinToPlainObject ( cloneDeep ( data ) )
70
- delete locale . internal_code
71
+ delete data . internal_code
71
72
// TODO this should be removed when the fallback locale issues are fixed
72
73
// also remove deletion on createLocale in create-space-api
73
- delete locale . fallback_code
74
+ delete data . fallback_code
75
+ delete data . fallbackCode
76
+ const locale = mixinToPlainObject ( cloneDeep ( data ) )
74
77
enhanceWithMethods ( locale , createLocaleApi ( http ) )
75
78
return freezeSys ( locale )
76
79
}
You can’t perform that action at this time.
0 commit comments