How to translate on a javascript script?

Topic summary

A user is encountering an issue with translating text within a JavaScript script. When attempting to implement translation, the system only renders the default language instead of the user’s current locale.

Technical Details:

  • The problem occurs specifically within JavaScript code
  • Translation functionality is not working as expected
  • Default language displays regardless of user locale settings

Current Status:

  • The issue remains unresolved
  • The user is seeking suggestions or solutions from the community
  • No responses or troubleshooting steps have been provided yet
Summarized with AI on November 13. AI used: claude-sonnet-4-5-20250929.

Hello,

When i’m trying to translate on a javascript script, it allows render me the default language instead of the current user locale.

Thanks a lot

Any idea?