Post marked as solved
Post marked as solved with 2 replies, 544 views
I watched the talk "Formatters: Make data human-friendiy" from WWDC 2020 and want to understand/reproduce the examples, especially for "How we can make well-formated lists"
Question:
What do I have to change in my playground to reproduce the results of the examples.
let items = [ "English", "French", "Spanish"]
ListFormatter.localizedString(byJoining: items)
let items1 = ["English", "Spanish"]
ListFormatter.localizedString(byJoining: items1)
let items2 = ["Spanish", "English"]
ListFormatter.localizedString(byJoining: items2)
// Spanisch Localisation
let itemsInSpanish = ["Ingleés", "Espñol"]
ListFormatter.localizedString(byJoining: itemsInSpanish)
let itemsINSpanish2 = [ "Espanol", "Ingles" ]
ListFormatter.localizedString(byJoining: itemsINSpanish2)
Thank you for your time.