Contents

dominantLanguage(forScript:)

Returns the dominant language for the specified script.

Declaration

func dominantLanguage(forScript script: String) -> String?

Parameters

  • script:

    The specified script.

Discussion

The value of this property is a BCP-47 language tag, such as "en" or "fr", that identifies the dominant language.

See Also

Determining Correspondences Between Languages and Scripts