RSG-Group/RSG-Chess-mobile

The globalization API doesn't work on Android

radi-cho opened this issue · 1 comments

I translated the app to Bulgarian and Russian (#8). Everything worked in phoneGap on Windows, but when I changed the language of physical phone RSG Chess wasn't able to detect it. There are two main POSSIBLE problems:

  1. Some of our checks don't work, because the output on Android may be different:
// such as:
let lang = language.value.split(/\s*-\s*/g)[0]
if (_.includes(Object.keys(strings.languages), lang)) {
  this.setState({ lang })
}
  1. The globalization plugin fails.

I'm gonna test the posibble problems and find out what's actually happening.

Fixed in ebfc541 - preveiw available here.