I am working on converting my Spring boot application to be displayed in different languages. For static text we are already using properties file (internationalization) for different languages so converting static text is not an issue.
There are some dynamic data(eg:username, hobbies) that also needs to be translated. So I'll have to convert that at run-time. So calling the google translate api at runtime is correct approach or there can be a better way to achieve this.