Hi, I’m creating a mobile app so instead of changing pages I’m navigating the user by changing URL parameters. I also let the user change the language also by making changes to URL parameters. The problem is that I want to link the chosen by the user language to this user, it looks like this: user chooses a language in the dropdown > go to the current page, send more data, language = this dropdown’s value’s 4 digit ISO code > make changes to the current user, current user’s language = this dropdown’s value. And a second workflow: on the page load > go to current page, language + current user’s language. But now the whole navigation does not working since it’s workflow ‘on the page load’ I’ve tried to also sand data of navigation = something but I couldn’t set it up. So the question is; is there a workflow that loads the page only when the user opens an app or something, not when the page is loading? Or maybe you know any other solutions to this? Thanks!
Bubble does not update the page language in this setup…you need to let the user change their language, then send the parameter into the URL and then do a page refresh if you are using app text.
If you are not using app text (I personally am more than likely going to move away from this because of issues in SEO and Google index for multilanguage apps). The problem with app text is that you are needing to force the page to refresh for updates. And if you combine that with the users language and you send Google to a page that is not in the default user language and you have URL values indicating the page language that do not match the users default language, your workflow to show the app text in correct language will cause the page to refresh and google will not index because of ‘too many redirects’.
The fix that I will likely take is to install a chrome extension that allows us to upload options sets via CSV (something Bubble should have done over 2 years ago when they first introduced option sets and everybody asked for the ability to upload them via CSV). Then on the text elements, instead of using the App text (which bubble should also fix to allow the change to not require a page refresh), I would use the option set values, and I can have a condition to show the different language (set via attributes on the options sets) based on either the URL values or the current users language, which would not require a page refresh and likely would result in google indexing the pages no matter which language is in the URL.
I’ve had numerous conversations with Bubble support regarding the issues of multiple languages, URL values and SEO in the past. I fully expect them to never implement any of the features I’ve requested to improve these situations as it has been over a year and there has been no movement so far.
Yeah I’m using app text right now. Do you think that I should worry about this right now or maybe take care of this later and focus on launch (I plan to launch my app in the next 2 weeks so I’m very busy with marketing)?
Another thing; I have a button that allows the user to share link to the page on different platforms, maybe when the user clicks on this button I could change the URL that the user is sharing language = English (default language).
Last thing; Is there a way in which when the user opens my app the language is already set to this user’s language? Thanks!
Could work. I wouldn’t do it though as I want my user that speaks a certain language to share it with their community that most likely speaks the same language and I want the share snippet to read in the language the user speaks.
Yes, set up the workflows to set the language in the URL based on the users language field in the db
Alright, thanks. That would be a custom workflow right?
I would put it in my header which is a reusable element placed on everypage
Wait, in the header so it would be a custom state, how would that work?
NO
Same way as discussed previously.