#Handling Translation of Values in Collections

2 messages · Page 1 of 1 (latest)

inland krakenBOT
#

hey everyone!
question about translations...
how do you handle translating values like in the following example collection?

{
      name: "genres",
      type: "select",
      hasMany: true,

      options: [
        { label: { en: "Horror", fr: "Horreur" }, value: "horror" },
        { label: { en: "Comedy", fr: "Comédie" }, value: "comedy" },
        { label: { en: "Drama", fr: "Drame" }, value: "drama" }
      ],
    },
]```

I imagine there's a way to return "Horror" or "Horreur" depending on the language, right?
lean sonnetBOT
#

Original message from @drifting elm - Moved from #general message