You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fixed in #778
Create a locale id fallback rule to support different locale format as we can as possible:
collatorIdentifier: zh-Hant-TW -> zh_Hant_TW -> zh-Hant -> zh_Hant -> zh -> en
ex. Locale (zh-Hant)
let localeId = (locale.collatorIdentifier ?? Locales.english.toLocale().collatorIdentifier!) // zh-Hant
case in RelativeFormatterLanguage is "zh_Hant"
This case makes it impossible to map the correct
RelativeFormatterLanguage
, and it map to the casezh
SwiftDate/Sources/SwiftDate/Formatters/RelativeFormatter/RelativeFormatter.swift
Lines 32 to 44 in 89774a1
I think the solution
or write RelativeFormatterLanguage
init:rawValue
The text was updated successfully, but these errors were encountered: