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

Is there a filter to escape string? #178

Open
krypt-lx opened this issue Oct 1, 2024 · 0 comments
Open

Is there a filter to escape string? #178

krypt-lx opened this issue Oct 1, 2024 · 0 comments

Comments

@krypt-lx
Copy link

krypt-lx commented Oct 1, 2024

I have multiple cases where I need to generate string constants using swiftgen, but I need those strings to be properly escaped.

Depending on use case, those I need strings to be

  • swift strings
  • proper localizable.strings strings

Is there a way to do so?
From sources, it looks like the answer is "no": https://github.com/SwiftGen/StencilSwiftKit/blob/fb6a88bac60b088a9f8b61bbc70eacecb2100b59/Sources/StencilSwiftKit/Environment.swift
Question 1: Maybe I missed something and it is actually possible to do?
Question 2: Will you accept a merge request if I submit an implementation of those filters?

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