locale(_:)
Modifies the format style to use the specified locale.
Declaration
func locale(_ locale: Locale) -> Duration.TimeFormatStyleParameters
- locale:
The locale to use when formatting a duration.
Return Value
A format style with the provided locale.