Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

[Feat]: Add language support #181

Open
alexalannunes opened this issue May 24, 2022 · 1 comment
Open

[Feat]: Add language support #181

alexalannunes opened this issue May 24, 2022 · 1 comment

Comments

@alexalannunes
Copy link

Is your feature request related to a problem? Please describe.

I have an issue when I call wifi.getCurrentConnections return an empty array. I checked out the source code and found this
image

I'm brazilian and console show sim | não 😄

Describe the solution you'd like

this package cold be multi language

Describe alternatives you've considered

No response

Teachability, Documentation, Adoption, Migration Strategy

It'll be interesting set language to test the condition

if (fields[0] == 'yes')

like

wifi.setLanguage('pt-br');
// ...
const LANGUAGES = {
  PT_BR: "sim"
};
// ...
if (fields[0] == LANGUAGES[PT_BR]) { ... }
@alexalannunes
Copy link
Author

Or check by process.env

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant