Multi-language resource management #2308
Closed
sedubois
started this conversation in
Feature requests
Replies: 2 comments 1 reply
-
Hey, @sedubois. Thanks for writing. Avo doesn't yet have this feature as 1st party, but you can still achieve this in two ways.
[:en, :fr, :es, :de].each do |locale|
field :"name_#{locale}", as: :string
end This will render the fields for all locales. We plan to support this use-case in the future, but it's not on our immediate roadmap. |
Beta Was this translation helpful? Give feedback.
1 reply
-
Closing for now. Feel free to re-open. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
It appears Avo does not yet support creating resources in multiple languages or at least I did not find documentation for it (there is some documentation to localize the Avo UI using hard-coded translation strings, but that's not what is needed here). Avo describes itself as a "custom Content Management System" and I expect a CMS to support localization. For instance, Spina CMS seems to have implemented this using Mobility with JSONB backend and attr_json.
For starters, perhaps there could be just detailed documentation or a video tutorial to implement this using Avo from scratch.
It should be possible to translate entire resources, but ideally also only some specific fields. For instance, in a blog post, the main image might be the same for all languages but the title and body would differ. Each blog post, no matter the language, could also belong to several categories, but in turn the titles of those categories would themselves be localized. How to build this using Avo?
Beta Was this translation helpful? Give feedback.
All reactions