I’ve made a String Catalog using Localizable.xcstrings (apparently the most modern way…only available on ios 15+) for a SwiftUI app.
Chat GPT is telling me that the way to use the strings from the codebase is like this using NSLocalizedString:
Text(NSLocalizedString("welcome_message", comment: ""))
.padding()
But the “NS”… has me wondering: Is there a more modern mechanism to access the strings than this… perhaps something that would allow for autocompletion of the string keys instead of typing a string literal every time and having to venture off across files doing cutting and pasting?