Language for newbies

Hi,

I’m new at how an app can manage many languages with the field “language” in the user.

I’ve read the reference of App Text (?) and from language. But didn’t understand.

Can someone please explain how this is done?

Thanks in advance :slightly_smiling_face::computer:

Hello @hacker
Answer:

Yes, but how can a user change the language? and how can a text in a button change depending on the selected language by the user?

in the URL by default: lang=english (or any other language). You have to refresh the browser after that. App (text) will use the language selected by default.
In my example, I use english (that doesn’t exist anymore on new Bubble interface).
You add the language in your URL when you call your page: &lang=spanish.

But for example, can I have https://google.com and the language of the user only changes the text elements and not the URL?

To do that, you can’t use the actual app(text) and must create your own custom table. All errors will be catch and seen in English.

Consider building UI and conditional logic. Below in one of my apps I have a dropdown enabling the user to select between english and spanish with different flows triggering the modification of the user’s language parameter that I created for this purpose (a text … key is to use the language parameters within the parenthesis for things to work using the element box editor’s AppText expression):

Ohh, thanks a lot. But for example, how can I change the text of a button? Do I have to use the App Text (?)?

If you wan’t to use the language function of Bubble, yes you need to use App text (?). When you select this, you will select what is the correct message you have set in the languages tab.
Bubble will automatically use the field on the user type you have selected to store the language selection from user and display the correct language according to this field.

If you don’t want to use the languages function, you can also use conditonnal and set something like Current user language = en … text = Button text / Current user language = fr, text = Texte du bouton

1 Like

Ohh, okay. Thanks

This topic was automatically closed after 70 days. New replies are no longer allowed.