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 224

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
    224 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
    224 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
    84,331 Most Valuable Professional on at
    RE: How to translate JS error in other language?

    I already merged threads.

  • KaeL Profile Picture
    224 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
    84,331 Most Valuable Professional on at
    RE: How to translate JS error in other language?

    Please, no duplicated threads.

  • Verified answer
    PranavShroti Profile Picture
    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
    224 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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Kudos to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Microsoft Dynamics CRM (Archived)

#1
Mohamed Amine Mahmoudi Profile Picture

Mohamed Amine Mahmoudi 83 Super User 2025 Season 1

#2
Community Member Profile Picture

Community Member 52

#3
Victor Onyebuchi Profile Picture

Victor Onyebuchi 6

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans