Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

How to translate JS error in other language?

(0) ShareShare
ReportReport
Posted on by 220

Hi Experts

I need some help. do you know any tutorials or blog on how to translate the Javascript error message in other language? Like the error message "is undefined at Anonymous function".

4604.ErrorTranlated.png

Thank you so much for the help.

*This post is locked for comments

  • KaeL Profile Picture
    KaeL 220 on at
    RE: How to translate JS error in other language?

    Hi Sir i have a question, is there a way that the error message automatically translate  to the other language?

  • KaeL Profile Picture
    KaeL 220 on at
    RE: How to translate JS error in other language?

    Thank you so much for the help and I'll try your solution.

  • Suggested answer
    a33ik Profile Picture
    a33ik 84,325 Most Valuable Professional on at
    RE: How to translate JS error in other language?

    I already merged threads.

  • KaeL Profile Picture
    KaeL 220 on at
    RE: How to translate JS error in other language?

    Sorry i cant find my first question and it shows on my notification "There was an error loading the notification."  every time i refresh my notification

  • Suggested answer
    a33ik Profile Picture
    a33ik 84,325 Most Valuable Professional on at
    RE: How to translate JS error in other language?

    Please, no duplicated threads.

  • Verified answer
    PranavShroti Profile Picture
    PranavShroti 4,510 on at
    RE: Javascript generated error in different language

    Hi,

    1.  Declare a variable in JavaScript that defines the current language and set up a JavaScript object that contains the different messages.

    var language = "en";

    var msg = {en: "English alert", fr:"French alert"};

    alert(mes[language ]);

    2. Inside your webresources: Check the logged in user language preferences and switch based on this variables.

    3. You can also store these messages in a custom entities and pull based on languages.

    Hope this helps !

  • KaeL Profile Picture
    KaeL 220 on at
    Javascript generated error in different language

    Hi Guys

    Do you have any idea, know some blog or tutorial on how to translate the generated javascript error on different language? like the error "is undefined at Anonymous function" when the user change the language of the interface.

     ErrorTranlated.png

    Thanks in advance for the help.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,489 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,305 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans