Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-9409

getPreferredLanguage crashes with index out of range exception when currentLocale does not contain an '_'

    Details

      Description

      the getPreferredLanguage function assumes that the returned value of [NSLocale localeIdentifier] contains an '_'. This may be true most of the time, but we have ran into issues where the localeIdentifier does not contain any underscores (could be due to an invalid region being returned?). In any case, we need to handle gracefully when there is no underscore present to avoid an index out of bounds exception

        Attachments

          Activity

            People

            • Assignee:
              eymorale Edna Morales
              Reporter:
              eymorale Edna Morales
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: