LocalizationOptions | iOS SDK | 2GIS Documentation

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])

Localization settings builder.

Parameters
locales
Locale[]

List of locales supported by the application.

systemLocales
Locale[]

List of system locales.

public init(locales: [Locale])

Localization settings builder.

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.