Adding language selection to my app

Lets say we have 2 screens , and by pressing english i want to change my labels and buttons to english,
is it possible to do it ? Any design ideas ? Thanks

1 Like

Check this app

https://x.thunkable.com/projectPage/60a013d7aed6ad0012a487bf

1 Like

thanks a lot this will help me a lot

1 Like

@denemeyanilma892420
My method is:
Create a page, you can choose the language (the home page or the top of the function page provides an earth language button), when this button is clicked, the page will switch to the language page.

Create a function, input text in various languages, and output text in the selected language.

My app screen shot



Program screen shot
Initially set a null value (for the first time)
圖片
Open the screen to update the language Fixed component language (non-fixed component is also possible, this function can be used at any time. )
圖片
圖片

Define function (only with this, other languages can be added.)
圖片
The most important switcher.
圖片

1 Like

Thanks for the input.

The issue here is that Thunkable has the function definition and scope is limited to the screen which means for an app with multiple screens you will have to create the same function in every screen but with slightly different names. This makes things a mess.

When Thunkable provides a way for Global Functions then such way would work for multi-screen apps.

1 Like

I only need to copy the function to each page, it takes about 3 to 5 seconds, and there is no need to use a different name.

1 Like

I will never have functions with the same name in my project if they can have different codes. This is bad practice and complicates changes and modifications. Not my cup of tea at all.

@domhnallohanlon This is needed!

1 Like
1 Like