LocalizationOptions
public struct LocalizationOptions
Options to allow customizing localization.
-
Creates an instance of
LocalizationOptions
with 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
locale
Locale 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
.localizableFilename
Filename of the
.strings
file 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"
.layoutDirection
LayoutDirection for mirroring layout for right-to-left. Default value is
false
.