googlesamples / ios-nearby

69 stars 30 forks source link

Change Permission Alert Texts #19

Open ranahack opened 7 years ago

ranahack commented 7 years ago

Hello, I wan to localize the Alert texts in the permission alertview, how can I do that?

Best Regards,

dan-webb commented 7 years ago

Hello,

The strings in the Nearby permission alert & dialog are localized to the following languages: Arabic, Catalan, Czech, Danish, German, Greek, English, Spanish, "Spanish (Latin America)", Finnish, French, "French (Canada)", Hindi, Croatian, Hungarian, Indonesian, Italian, Hebrew, Japanese, Korean, Malay, Dutch, "Norwegian Bokm\U00e5l", Polish, "Portuguese (Brazil)", "Portuguese (Portugal)", Romanian, Russian, Slovak, Swedish, Thai, Turkish, Ukrainian, Vietnamese, "Chinese (China)", "Chinese (Hong Kong [China])", "Chinese (Taiwan)"

But there's a catch: Your app must have localized strings for the language you want to use (at the top level in its bundle, it must have an .lproj folder containing localized strings). If it doesn't, Nearby will use the language that is chosen for the app. For instance, if the app only supports English, the Nearby dialog will show English, even if your iPhone's language is set to a different language.

Does this help?