I have a multilingual site, and depending on the language I want the drop-down list to be selected with the category of the movie.
I want to manage my categories in a yaml file (categories.yml), for example
category: {en: Movies,de: Filme } {en: Series,de: Serien } {en: Cartoons,de: Zeichentrick }
a category is a whole field in Movie Entity / Table
so i need to generate a dropdown like this
<select> <option value="1">Movies</option> <option value="2">Series</option> <option value="3">Cartoons</option> </select>
in the correct language text
how can i generate form element from yaml file? and for clean file management, where should it be placed? by resources / languages? or in the / config application?
source share