You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I toggle the machine translations feature on a participatory process "overview" page (The process tab), the machine translations are not displayed.
To Reproduce
See this repository for an example of a decidim app illustrating the issue.
See the README.md instructions to reproduce.
Expected behavior
I expect the machine translations toggle button to toggle between original text and automatically-translated text.
Screenshots
N/A
Stacktrace
N/A
Extra data
Device: N/A
Device OS: N/A
Browser: N/A
Decidim Version: 0.27.5
Decidim installation: N/A
Additional context
I discovered that the caching mechanism does not take the machine translations into account when creating the cache hash. For example, see the decidim-proposals/app/cells/decidim/proposals/highlighted_proposals_for_component_cell.rb's cache_hash method.
Describe the bug
When I toggle the machine translations feature on a participatory process "overview" page (The process tab), the machine translations are not displayed.
To Reproduce
See this repository for an example of a decidim app illustrating the issue.
See the README.md instructions to reproduce.
Expected behavior
I expect the machine translations toggle button to toggle between original text and automatically-translated text.
Screenshots
N/A
Stacktrace
N/A
Extra data
Additional context
I discovered that the caching mechanism does not take the machine translations into account when creating the cache hash. For example, see the
decidim-proposals/app/cells/decidim/proposals/highlighted_proposals_for_component_cell.rb
'scache_hash
method.Here is a solution that fixed my issue.
Is this expected ? Is there another official way to handle cache when using Machine Translations ?
The text was updated successfully, but these errors were encountered: