How to use resources in javascript file?

Viewed 20636

Hy,

I've got a resource file, which entries I want to use in my separate javascript file with following code:

@TestMvc.Resources.Views.Home.Strings.MyString

But in my javascript file the code line would not be interpreted by the MVC 5 framework.

How can I get access to my resource strings?

Thanks for help :)

3 Answers
Related