Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bridge LocalizedStringKey as FormattableString #54

Open
chkn opened this issue Jun 30, 2022 · 0 comments
Open

Bridge LocalizedStringKey as FormattableString #54

chkn opened this issue Jun 30, 2022 · 0 comments

Comments

@chkn
Copy link
Owner

chkn commented Jun 30, 2022

In both C# and F#, FormattableString can be created directly from an interpolated string literal, just like LocalizedStringKey in SwiftUI. We should be able to inspect the FormattableString and extract the format string and its arguments. Then we can use those to build up the LocalizedStringKey.StringInterpolation object and pass that to LocalizedStringKey.init(stringInterpolation:)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant