I've got text in my app that's supposed to be localized, like
Text(self.model.stringValue)
where .stringValue = "dist"
, and I've created Localized.strings and added the reference
"dist" = "the distance";
The documentation says that Text views automatically interpret strings as localization keys and look them up for you:
Text("pencil") // Searches the default table in the main bundle.
I've clicked "Localize" on the strings file and added languages to the project file and answers like this say it's supposed to just work: How to implement localization in Swift UI
But instead it's just displaying "dist" instead of the proper localized string. What am I doing wrong?