Contents

status(from:to:)

Checks for the installation of a specific language pairing and whether it’s ready for translation.

Declaration

func status(from source: Locale.Language, to target: Locale.Language?) async -> LanguageAvailability.Status

Parameters

  • source:

    The source language of the content.

  • target:

    The target language you want to translate content into. When set to nil, the system picks an appropriate target based on the person’s preferred languages and returns the status for those languages.

Return Value

The availability status for a language pairing.

Discussion

Use this function to check whether the system has installed the required language assets and the languages are ready to use for translation.

See Also

Checking language availability