diff options
Diffstat (limited to 'platform/ios/src/NSOrthography+MGLAdditions.h')
-rw-r--r-- | platform/ios/src/NSOrthography+MGLAdditions.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/platform/ios/src/NSOrthography+MGLAdditions.h b/platform/ios/src/NSOrthography+MGLAdditions.h new file mode 100644 index 0000000000..a552fc7774 --- /dev/null +++ b/platform/ios/src/NSOrthography+MGLAdditions.h @@ -0,0 +1,18 @@ +#import <Foundation/Foundation.h> + +@interface NSOrthography (NSOrthography_MGLAdditions) + +/** + Returns a four-letter ISO 15924 code representing the name of the dominant + script for a given language. + + On iOS 11 or newer, this method wraps + `+[NSOrthography defaultOrthographyForLanguage:]` and supports any language. + On iOS 10 and older, this method only returns values for Mapbox + Streets-supported languages. + + @param language The ISO-639 code representing a language. + */ ++ (NSString *)mgl_dominantScriptForMapboxStreetsLanguage:(NSString *)language; + +@end |