Skip to content

Add support for traditional string placeholders #677

Description

@JakeWharton

Most codebases can't afford to go full ICU, but that doesn't mean we can't offer most of the benefits of this tool.

Classic positional replacements carry some type information

<string name="countdown">%1$s until holiday</string>

to produce something like

fun countdown(p0: String)

And you can sprinkle <xliff> tags to turn them into nominal replacements

<string name="countdown"><xliff:g id="time">%1$s</xliff:g> until holiday</string>

to get

fun countdown(time: String)

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