mapbox-speech-swift
mapbox-speech-swift copied to clipboard
Fix/locale codes
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