This results in tooltips like Add %s and Reusable Block: %s:


| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 3126442-add-sprintf-support.patch | 7.8 KB | codebymikey |
| sprintf-2.png | 4.58 KB | codebymikey | |
| sprintf.png | 8.55 KB | codebymikey |
This results in tooltips like Add %s and Reusable Block: %s:


| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 3126442-add-sprintf-support.patch | 7.8 KB | codebymikey |
| sprintf-2.png | 4.58 KB | codebymikey | |
| sprintf.png | 8.55 KB | codebymikey |
Comments
Comment #2
codebymikey commentedAdded a patch adding
sprintf.jssupport, as well as ensuring that context is correctly passed into the translations.The change relies on this PR being merged in the upstream drupal-gutenberg-translations node module.
Comment #4
marcofernandes commentedReviewed and tested. Great work, thanks!