-
Notifications
You must be signed in to change notification settings - Fork 733
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
Accessing string with percentage symbol strips it #859
Comments
I'm seeing this issue as well. I've found a workaround however, which i'm using whenever I need to use the % symbol in my strings. I simple substitute the symbol with a and the usage in Swift code: |
My workaround us doubling the percentage symbol, so |
Duplicate of quite a few issues:
This is an effect of all translations being run through TL;DR: you have to escape the |
Thanks @djbe for the info! It makes sense now that you've explained the I guess I could have found this out by searching the closed issues but I don't normally go to that much effort before raising an issue tbh 😅 . |
I am using SwiftGen to generate strings with the structured swift5 template
If I have a string that contains the percentage symbol, like
accessing
LocalizedString.percentageSymbolTest
gives meResult is 100
with the percentage being stripped.The text was updated successfully, but these errors were encountered: