LocalizationOptions
public struct LocalizationOptions
Options to allow customizing localization.
-
Creates an instance of
LocalizationOptionswith related parameters. Allow overriding strings of localization keys with Localizable.strings file or other localizable filename.Declaration
Swift
public init(locale: Locale, localizableFilename: String = "Localizable", layoutDirection: LayoutDirection = .leftToRight)Parameters
localeLocale struct representing the language identifier (ie. en, fr, fr-FR, zh-Hant, zh-Hans, …), with or without region. If Locale identifier is not valid, will default to
en.localizableFilenameFilename of the
.stringsfile to override predefined Call Composite’s localization key or to provide translation for an custom language. The keys of the string should match with the keys from AzureCommunicationUI localization keys. Default value is"Localizable".layoutDirectionLayoutDirection for mirroring layout for right-to-left. Default value is
false.
View on GitHub
LocalizationOptions Structure Reference