Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Create basic "select language" landing page #470

Open
jackieo5023 opened this issue Jun 8, 2021 · 0 comments
Open

Create basic "select language" landing page #470

jackieo5023 opened this issue Jun 8, 2021 · 0 comments
Assignees
Labels
feature 🌟 New feature or request

Comments

@jackieo5023
Copy link
Member

jackieo5023 commented Jun 8, 2021

Design

In App.jsx, we'll want to have some logic that goes like this: If a language is selected, do not show the landing page (aka everything under Router in this case). Otherwise, show the landing page (a new component you create).

To detect if a language is selected, simply do localStorage.getItem('language') !== null. We store the currently selected language in local storage - so if a language (say, Spanish) is selected, localStorage.getItem('language) would return "Spanish".

This new component you create can just have some basic buttons for all of the languages - no need to style it or implement functionality yet (unless you want to, but I'll probably create another issue for this). And maybe the purple background :)

@jackieo5023 jackieo5023 added the feature 🌟 New feature or request label Jun 8, 2021
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
feature 🌟 New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants