Skip to content

Bypass String(format:) to prevent escaping percentage symbols  #848

Open
@pimnijman

Description

@pimnijman

Now that strings are always formatted using String(format:) (even strings without arguments) we have to escape any percentage signs (%) with %%

Our strings are hosted on phrase.com and also used in our Android project. This means I cannot go to the source and replace things like "get a 40% discount" with "get a 40%% discount", because that will have effects on other platforms as well.

Is there a possibility to opt out of this behavior, so that we don't have to escape the percentage symbol in strings that do not contain arguments?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions