We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
If you have a string that has printf format specifiers like:
<string name="total_duration">%1$s Total</string>
It generates:
override val totalDuration = { p0: String -> "%s Total" .format(p0) }
Problem is there is no such format method on string at least in common code.
For most simple cases you could simply generate string interpolation code and if the format specifier is more complex generate warnings
The text was updated successfully, but these errors were encountered:
I confirmed that our string files do not do anything more complicated than %1$s or %1$d so simple string interpolation is all we need.
%1$s
%1$d
Sorry, something went wrong.
any update on this? @adrielcafe
No branches or pull requests
If you have a string that has printf format specifiers like:
It generates:
Problem is there is no such format method on string at least in common code.
For most simple cases you could simply generate string interpolation code and if the format specifier is more complex generate warnings
The text was updated successfully, but these errors were encountered: