Even if you are not looking at translating your app to support other languages, you owe it to yourself to take a look at String Catalogs in Xcode 15 π
With String Catalogs itβs easy to set up number and noun agreements (1 book vs. 2 books) or noun adjective agreement for languages which have gendered nouns (such as French, Spanish, Portuguese) very easily.
Just for the number-noun agreement part, I used to litter my code with ternary operators. But itβs so much easier to set up with String Catalogs. And that part is the least of the functionality of this new feature π
Check out the following WWDC 2023 session to find out more:
https://developer.apple.com/videos/play/wwdc2023/10155/#Apple #WWDC #WWDC2023 #Strings #Grammar #StringCatalogs