If I were doing this I would make a PR against the Internet Identity repo to integrate something like FormatJS.
The PR would replace hard-coded strings with formatted messages and add a locale file for en-US. From there people wishing to add support for other languages would need to make PRs that provide new locale files.