Conversation

Fahim Farook

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
1
1
6

@f I need to check this session I already use existing stringdict. Anything simpler to use is welcome.

1
0
0
@sgamel It puts all your localisable resources in one table β€” as an Organization-freak, I find just that aspect really appealing πŸ™‚

Plus, it shows you resources which are stale (because they are no longer in use) and auto-manages adding new resources or removing resources which have not been translated. Seems very, very nifty to me. I really want to start using it right now just to see how well it all works …
0
0
1