Skip to content
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

Translated Attributes Customization. #46

Open
DavideMiozzi opened this issue Sep 24, 2013 · 1 comment
Open

Translated Attributes Customization. #46

DavideMiozzi opened this issue Sep 24, 2013 · 1 comment

Comments

@DavideMiozzi
Copy link

I added some attributes to my Product model which I'd need to support locales.
I'm already using spree_multi_lingual and I tried to take advantage of easy_globalize3_accessors and override in my product_decorator the translated attributes (after creating and running the corresponding migrations).
Yet, only the ones defined in spree_multi_lingual get translated.
I'll solve this problem by forking the gem and making it suit my requirements, but
what about adding the possibility of add/remove the translated attributes of a product?

@sbounmy
Copy link
Collaborator

sbounmy commented Oct 19, 2013

this is a great idea ! to support this I think we should take a closer look at https://github.com/jipiboily/spree_multi_lingual/blob/master/lib/spree_multi_lingual/translates_with_accessors.rb#L29

We should be able to append attributes to translates method
I would love to merge this improvement if you can make a pull request ! 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants