-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
YAMLLoaders::Page break with I18n pages #163
Comments
I tried a dirty fix : puts "for #{name} #{locale}"
if (attributes[name].is_a?(Hash))
puts "add"
attributes[name][locale] = value
else
puts "fixe"
attributes[name] = {locale => attributes[name]}
end
#(attributes[name] ||= {})[locale] = value However it does not work, as other data value can be already I guess load_tree and load_data should extract their data separately. EDIT : the problem was not there but upper in the process |
Looking at the code of |
The I make a extra pull request to highlight where I'm stuck. |
I try to push an I18n page to production from staging data, using the following command line :
wagon deploy production -d -v -e staging
And get the following errors :
Here is a sample of the pointed code :
https://github.com/locomotivecms/steam/blob/master/lib/locomotive/steam/adapters/filesystem/yaml_loaders/page.rb
The problem happen in the
(attributes[name] ||= {})[locale] = value
Fact is attributes contains already data from the initial language, and so collide.
The text was updated successfully, but these errors were encountered: