Creating a page to choose language


Hello, I need to create a landing page where the user can choose the language he wants on the first launch.
The steps are the following:

  1. launch app
  2. check if language is set in localstorage
  3. if not, show the language choosing page
  4. set the language in localstorage and a language global variable
  5. set the strings in the app based on this value

The problem is that the side menu loads before the global variable is set (when the user chooses) and so the strings in it are empty.


Did you solved this problem , if so please share the solution cause I want to do the same


Maybe you can skip checking if current page is Sidemenu or not.