I have a large dictionary of words in an app that I’d like to localize.
I'm thinking of asking a human translator (or AI agent) to translate them. I might translate each word by machine and include the translation in the data I provide to the translator as candidates.
How can I export this data to the translator in XLIFF format? Does iOS have API for XLIFF generation or interpretation? Are there decent open source options written in Swift?
Note that the agentic translation features in Xcode 27 are targeted at translating strings inside String Catalogs, and in that case machine-translated strings will automatically get the leveraged-mt state-qualifier when exported to XLIFF.
If your dictionary is in some other format, agents may still be able to do a decent job, especially if they don't need to consider the context of those words in your app UI.
We still recommend human review from native speakers, which could happen via the Export Localizations feature described above, or via something like TestFlight.