LocalizationConfiguration

public struct LocalizationConfiguration

A configuration to allow customizing localization.

  • LanguageCode enum representing the locale code.

    See more

    Declaration

    Swift

    public enum LanguageCode : String
  • Creates an instance of LocalizationConfiguration with related parameters. Allow overriding strings of localization keys with Localizable.strings file or other localizable filename.

    Declaration

    Swift

    public init(languageCode: String,
                localizableFilename: String = "Localizable",
                layoutDirection: LayoutDirection = .leftToRight)

    Parameters

    languageCode

    String representing the language code (ie. en, fr, zh-Hant, zh-Hans, …).

    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.

  • Get supported languages the AzureCommunicationUICalling has predefined translations.

    Declaration

    Swift

    public static var supportedLanguages: [String] { get }

    Return Value

    Get supported languages the AzureCommunicationUICalling has predefined translations.