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)
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
to produce something like
And you can sprinkle
<xliff>tags to turn them into nominal replacementsto get