Skip to content

Conversation

@idontknowjs
Copy link
Contributor

Fixes #897

Changes:
The function was already present, but was not working

langs=["en", "es", "ko", "zh-Hans"]
While debugging found that, it was not going inside the for loop and due to which it could not return the langs[i]

Screenshots of the change:
Now as shown below, if the language preference will be present.
It will show in the set browser's language only, unless manually updated.
p5js

@idontknowjs
Copy link
Contributor Author

@limzykenneth @lmccart can you please review it! 🙂

@lmccart lmccart merged commit 283476b into processing:main Nov 30, 2020
@lmccart
Copy link
Member

lmccart commented Nov 30, 2020

thanks @CovalentBond!

@idontknowjs idontknowjs deleted the defaultLanguage branch December 7, 2020 04:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Detecting default browser language preference of user

3 participants