LocalizationOptions | iOS SDK | 2GIS Documentation
iOS SDK

LocalizationOptions

Application localization settings. Allows you to set the set of locales used to localize the map and guide.

public init(locales: [Locale], systemLocales: [Locale])
Parameters
locales
Locale[]

List of locales supported by the application.

systemLocales
Locale[]

List of system locales.

public init(locales: [Locale])

Localization settings constructor.
The systemLocales parameter is a list of the user's preferred languages.

Parameters
locales
Locale[]

List of locales supported by the application.

Properties

List of locales supported by the application. If an empty list is passed, system locales are used.

List of system locales. If an empty list is passed, en-EN is used.

Default settings. Using the list of user's preferred languages.