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

Translating awesome proposals custom fields #221

Closed
esdrasitq opened this issue May 12, 2023 · 1 comment
Closed

Translating awesome proposals custom fields #221

esdrasitq opened this issue May 12, 2023 · 1 comment

Comments

@esdrasitq
Copy link

Is your feature request related to a problem? Please describe.
Hi,
Does anyone know how to translate the proposal custom fields?
After some investiguations I find that those fields are rendering in a json var. But it's hard for me to add the key in the fr.yml.

image

Describe the solution you'd like
Translate the #{var} in this file below:

https://github.com/decidim-ice/decidim-module-decidim_awesome/blob/main/app/views/decidim/decidim_awesome/admin/config/_autoedit_box_label.html.erb#L2

Describe alternatives you've considered
In the screenshot below, this is the way I try to add it in the file, but it does'nt work.

image

Any help will be appreciated, thanks.

@esdrasitq esdrasitq changed the title Translating awesome custom fields Translating awesome proposals custom fields May 12, 2023
@froger
Copy link
Contributor

froger commented Oct 25, 2023

Hello, sorry to tell but this one will be very hard to implement.
The javascript library used behind the scene doesn't have the functionality for translated labels.

There is a very old issue existing, but unactive. From my understanding, the data-model behind the library wasn't prepared to have translated labels at all.

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