Hi community:
I get an error using inflection on strings when the language is Spanish.
Issue: [Inflection] Cannot use Morphun, (Checking that the token is the correct type): (null)
The code:
let value = "5 dias"
var string = AttributedString(localized: "El primer \(value) es gratis")
var morphology = Morphology()
morphology.number = .plural
string.inflect = InflectionRule(morphology: morphology)
let result = string.inflected()
Any workaround to solve it?