react-native-onesignal icon indicating copy to clipboard operation
react-native-onesignal copied to clipboard

[question]: Changing the Language of Android System Modal Text in the requestPermission Callback Function

Open WooMinGy opened this issue 1 year ago • 2 comments

How can we help?

image

How can I change the language of the Android system modal that appears when navigating to device settings from the callback function of the requestPermission method? The language is currently mixed with Korean and English, as shown in the picture.

Code of Conduct

  • [X] I agree to follow this project's Code of Conduct

WooMinGy avatar Feb 07 '24 09:02 WooMinGy

Hello @WooMinGy thanks for reaching out! The language of the modal in your screenshot should be based on the device's system settings; it is a native prompt outside of OneSignal's customizable options. Is your phone currently set to Korean or English?

jennantilla avatar Feb 08 '24 17:02 jennantilla

@jennantilla Thank you for your response. It is currently set to Korean.

WooMinGy avatar Feb 17 '24 02:02 WooMinGy

@WooMinGy apologies for the delay in response. Do you also have English as a language on your phone (in Settings?)? Can you try removing it and see if the modal language updates?

jennantilla avatar Mar 19 '24 22:03 jennantilla

Closing due to no response.

jennantilla avatar Apr 30 '24 19:04 jennantilla

I am also experiencing the same issue where the system prompt only appears in English, even though my phone's language is set to Korean. Additionally, when I use LocaleConfig and set it up in res/xml/locale_config.xml like this:

<locale-config xmlns:android="http://schemas.android.com/apk/res/android">
  <locale android:name="ko"/>
</locale-config>

and configure AndroidManifest.xml as follows:

<application
  android:localeConfig="@xml/locale_config"
</application>

the system prompt no longer appears at all.

itlockit2 avatar Aug 18 '24 10:08 itlockit2