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

[Bug]: Can't initialize OneSignal for slovenian users #1156

Open
jozeblackblox opened this issue Jan 22, 2024 · 0 comments
Open

[Bug]: Can't initialize OneSignal for slovenian users #1156

jozeblackblox opened this issue Jan 22, 2024 · 0 comments

Comments

@jozeblackblox
Copy link

What happened?

If the system language in browser (and also in Cordova SDK) is set to slovenian, OneSignal cannot be initialized.

Same problem, different language was solved on issue: OneSignal/react-native-onesignal/issues/1568

@nan-li please update your server to accept slovenian language ( sl )

What browsers are you seeing the problem on?

Firefox, Chrome (Chromium), Microsoft Edge

What operating system are you running?

Windows 11 23H2

Steps to reproduce?

Set system/browser language to slovenian, then simply try init:

OneSignal.init({
    appId: XXXXXXXXXXXXX,
});

What did you expect to happen?

It should login the user on URL /apps/$APP_ID/users with "language":"sl" but instead error 400 is returned.

Relevant log output

{"errors":[{"title":"The provided language value is not a supported ISO 639-1 value"}]}
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant