Contents

reserve(locale:)

Add an asset locale to the app’s current reservations.

Declaration

@discardableResult static func reserve(locale: Locale) async throws -> Bool

Return Value

false if the locale was already reserved.

Discussion

If an asset that supports the input locale exists, adds that asset’s locale to reservedLocales.