We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b15f154 + 1644ad3 commit 98795c0Copy full SHA for 98795c0
lib/entities/locale.js
@@ -36,8 +36,15 @@ function createLocaleApi (http) {
36
// delete some properties which are returned by the server but shouldn't
37
// be sent back.
38
const locale = this
39
+ // for the default locale, we can't send the fallback code back or we get an error
40
+ if (locale.default) {
41
+ delete locale.fallback_code
42
+ } else {
43
+ // temporary fix due to property naming weirdness
44
+ locale.fallbackCode = locale.fallback_code
45
46
+ }
47
delete locale.default
- delete locale.fallback_code
48
return createUpdateEntity({
49
http: http,
50
entityPath: 'locales',
0 commit comments