1

I need to access the resource file keys from a js file, Is this possible or not?

For example if I want to set a popup message based on some conditions applied in .js file and want to get the text from a resource file according to the language then how can i achieve this?

1 Answer 1

2

The are a few common approaches on howto deal with localization in your client side scripts. One would be creating a standalone localized javascript file for every language and culture. But this would not fit your requirement of using .net resource files. I find this solution very elegant and does precisely want you want.

Sign up to request clarification or add additional context in comments.

1 Comment

Thanks Martijn for your replay. I had checked the solution there its a good approach, but for my case it seems to be a bit complex.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.