BRLocaleMap 1.1.0

BRLocaleMap 1.1.0

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Dec 2018

Maintained by Brian Chan.



  • By
  • b123400

BRLocaleMap

This project maps Apple's locale codes to Google/Microsoft Translate.

Example

[BRLocaleMap locale:@"pa"
         forService:BRLocaleMapServiceGoogle]; // returns "ma"

[BRLocaleMap locale:@"fil"
         forService:BRLocaleMapServiceGoogle]; // returns "tl"

[BRLocaleMap locale:@"zh_Hant_HK"                 // Automatically fallback to zh_Hant
         forService:BRLocaleMapServiceMicrosoft]; // returns "zh-CHT"

[BRLocaleMap locale:@"gsw"
         forService:BRLocaleMapServiceMicrosoft]; // returns "de"

Usage

Add this to your Podfile

pod 'BRLocaleMap'