Welcome to the Losant Forums!
That template will be rendered into the HTML it represents before the client-side JS has access.
Could you provide some additional details on what it is exactly you are looking to translate? And where that information is located within the component? A screenshot of your current component configuration would be really helpful.
The component you described is a fairly light wrapper around the bootstrap alert component, and you may want to look into implementing on your own, the below is a great resource: