-
Notifications
You must be signed in to change notification settings - Fork 35
localize_entry fails #124
Comments
I'm not sure if it's the same issue, but since yesterday all the data that I accessed with camel case is now only available with underscores.... |
Hey @fkamras, Regarding the first issue, I'll look into it ASAP, it looks like a bug. Regarding the second issue, it's a documented change with version Cheers |
Bumping this... Any updates, @dlitvakb ? If it might help, the problem code can be found on line 32 of helpers.rb
It will throw an error when trying to localize for example the _meta property of a datafile
I was thinking the solution might be to rewrite localize_value like this:
Unless just returning the original hash, if no language or fallback has been found, could present another problem? EDIT: went ahead and created a PR for this |
Fixed by #128 Thanks! |
I noticed some new fields in the synced data that contains the content type id and created and updated dates.
It seems like the localize_entry function is failing becuase of this, as it's trying to get the en-US field that does not exist there.
Seems like this is the problem as it's working once I remove the meta key before the localize_entry function but it would be better if I don't have to go through my whole code to add this.
I'm using the dl/upgrade-to-v4 branch
The text was updated successfully, but these errors were encountered: