mapbox-speech-swift icon indicating copy to clipboard operation
mapbox-speech-swift copied to clipboard

Fix/locale codes

Open ElyesDer opened this issue 4 years ago • 0 comments

Description This PR fixes an issue with incompatible ISO 639-3 codes between iOS's Locale and Amazon Polly's ISO 639-3. It was also reported here.

Implementation

  • [x] Store all unsupported language codes returned by Locale in ISO 639-2 format.
  • [x] If SpeechOptions's language identifier is in the list of unsupported, use the supported one instead.
  • [x] Support Arabic (AR) and Chinese (ZH) codes
  • [ ] Add support for other unsupported languages

ElyesDer avatar Feb 08 '22 18:02 ElyesDer