Localize text in card

My app uses a card view for the home / landing page, and I would like to localize the Title, Subheader, and Description text:

Scott_Nesbitt_0-1706111377048.png

Could someone tell me how to do this?  It looks like expressions are not supported here.

Thanks

Solved Solved
0 6 103
  • UX
1 ACCEPTED SOLUTION

Hey,

you're missing that I said, create a VC (Virtual Column) for that ๐Ÿ˜…

View solution in original post

6 REPLIES 6

Hey man,

you gotta translate the content of the field(s).
Maybe this can help you in case you're using a gSheet as Database:
https://support.google.com/docs/answer/3093331

Cheers

Right, I am using the Sheets GOOGLETRANSLATE() function in the Sheet, but I need to do this expression to get the right language:

LOOKUP(usersettings(Language), Language, Language, "Description")

I cannot get to usersettings in the Sheet, that is only accessible in AppSheet, correct?

Hey,

that's what USERLOCALE() normally is there for:
https://support.google.com/appsheet/answer/10108289?hl=en

e.g. Create a Virtual Column "TranslatedText" and put this as the AppFormula:

 

SWITCH(USERLOCALE(), 
  "en-US", [USEnglishTranslation], "es-ES", [SpanishTranslation], "fr-FR", [FrenchTranslation], [LocalText]
)

 

You can then use [TranslatedText] in your CardView.

Here's an overview of the supported locales:
https://support.google.com/appsheet/answer/11579290?hl=en

Cheers

But I cannot do a SWITCH() or USERLOCALE() in the Card layout because it does not support expressions.  Or am I missing something?

Hey,

you're missing that I said, create a VC (Virtual Column) for that ๐Ÿ˜…

Ah, you are right, I did miss that.  Great idea to have a VC, works like a charm.

Thanks so much!

Top Labels in this Space