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

Double % symbol is not escaped #168

Open
wohral opened this issue Jul 25, 2022 · 1 comment
Open

Double % symbol is not escaped #168

wohral opened this issue Jul 25, 2022 · 1 comment

Comments

@wohral
Copy link

wohral commented Jul 25, 2022

We use mixed localizations for Android and iOs devices. For android devices, we have to escape the % symbol with another % symbol, which causes that in localizing definition we have a double %%. On iOS, we have a problem because Localize-Swift does not work with the % symbol as escaping. Is there any way how to solve it? Or do I need to write some custom overriding method to solve this?

Localized text:
"You have a 100%% discount"

Current situation:
"You have a 100%% discount"

Expected:
"You have a 100% discount"

@Elamuruga
Copy link

Elamuruga commented Sep 20, 2022

@wohral If I am not wrong try something like
"You have a %d%% discount"
Output: "You have a 100% discount"

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

2 participants