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

Translatable collection #359

Open
sten opened this issue Mar 14, 2025 · 6 comments
Open

Translatable collection #359

sten opened this issue Mar 14, 2025 · 6 comments
Labels
enhancement New feature or request

Comments

@sten
Copy link

sten commented Mar 14, 2025

Is your feature request related to a problem? Please describe.
It appears that the collections are not translatable. This makes it impossible to translate a form which uses collections for radio buttons for example.

Describe the solution you'd like
Make the values column of bolt_collections translatable and add a language switch to the resource.

Describe alternatives you've considered
There are no clear alternatives to me, since the ID of the collection is added to the field, so creating separate collections for each language and linking them to the field is impossible.

Would you allow a PR for this?

@atmonshi
Copy link
Member

I think I just missed the collection resource, and no one requested it before :)
PRs always welcome

@atmonshi atmonshi added the enhancement New feature or request label Mar 14, 2025
@atmonshi
Copy link
Member

atmonshi commented Mar 14, 2025

unfortunately this looks like a braking change! so I'll try to implemented it without braking everyones apps :)

also are you looking to translate the values also?

@sten
Copy link
Author

sten commented Mar 14, 2025

@atmonshi I was already working on a PR, so I just pushed it.

The data transformation from non-translated to translated fields is not yet done. I think this is best achieved via a migration or command. See PR #360.

Thanks for your work!

@sten
Copy link
Author

sten commented Mar 19, 2025

@atmonshi Could you let me know a time frame to release this? I need it for a project ;-)
Thanks!

Otherwise I will use a fork.

@atmonshi
Copy link
Member

not sure tbh, I have to test more and I am trying to avoid BC till v4.

will try to test this friday if its save will release it or will wait for v4

@sten
Copy link
Author

sten commented Mar 21, 2025

@atmonshi I noticed that the field description and help fields are also not translatable. Since they are stored in one json column, this might also be tricky.

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

No branches or pull requests

2 participants