asp.net mvc – Multi MVC ASP NET language ….. how to use it in JavaScript

I'm doing tests to make my application multi-language … and everything is fine … the problem is how to make sure that when we send an informative alert or a confirmation alert in JavaScript, the corresponding message is displayed in the language ?? how to call my variable in my resource file?