-
Notifications
You must be signed in to change notification settings - Fork 61
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
Is it possible to have a localizable / translatable Custom Entity #144
Comments
Small update: if I look at the
This method seems so imply that only the label of an entity is translatable. However, there is a edit: It looks like that if I replace |
Can anyone tell me if this is intended behavior? Because I currently have a working setup with localizable custom entities and I'm willing enough to make a pull request for this feature, but I'm not sure if what I'm doing is correct. I'm very new to Akeneo (I've only worked 2 or 3 weeks with it now), but I do have a lot of experience with PHP and Magento 2. Here's what I've got: When analyzing the code of the custom entity bundle, it appeared to me that there was no built-in option for localizable custom entities. The example provided only translated a label and this works, but the core code suggests that the label is in fact the only property that is localizable. For example: if I have a custom entity called So what I did was the following:
I can create a pull request with these adjustments / edits, but once again: I'm very new to Akeneo so it might be that I'm completely on the wrong track anyhow. There is not much documentation out there and the community seems kind of small. |
Hi @kanduvisla , Your assumption is correct, currently you can only update a
Regards, |
Thanks! I already thought that there had to be a better way than |
@mmetayer : I've create a PR of what I've got so far. I still want to expand it with tests and example code, but it would be nice to know if I'm on the right track. |
Thank you very much for the PR @kanduvisla 🙂, I'm quite busy at the moment, but I'll give it a look as soon as I can. |
The
Pictogram
example only shows how you can have a label that is translatable / localizable. But is it also possible to have the values of your Custom Entity localizable?For example: if I look at
fabric
, would it also be possible to have the fieldsname
andalternative name
localizable?The text was updated successfully, but these errors were encountered: