[Feat] Support for LocalizedStringResource #93
Labels
Feature Request
New functionality the app doesn't provide yet
Size: Small
Probably less than 1 week of work
Problem Statement
AppIntents require LocalizedStringResource
These are essentially lazily loaded localized strings
The ergonomics are painful though.
static var title: LocalizedStringResource = LocalizedStringResource("Intent.AskMeAnything")
but to use code, I need to use
static var title: LocalizedStringResource = LocalizedStringResource(String.LocalizationValue(stringLiteral: Loc.Intent.AskChatter.tableLookupKey))
Suggested Solution
provide a generated localizedStringResource variable on the enum (or similar)
Additional Considerations
I mentioned before that the generated file could be WAY smaller if it just used a protocol with automated conformance.
(at least for simple singular strings)
Even more so if there is another property in play.
The text was updated successfully, but these errors were encountered: