It is necessary in the client side to create a similarity to the .resx file in c #, to determine the application resources.
At the moment, I store all the lines in MyRes.resx and pass them to the client as follows:
<script> var str = '@MyRes.SomeStr'; </script> Because of this approach, I have two problems:
- It means that the lines that I define in the resources on the backend are used only on the client side;
- Because of the large number of lines with resources, I get a fairly large tape from assignments like "var str = '@ MyRes.SomeStr'.
How can I organize the storage of resources on the client side? Or how can you normally transfer resources to the frontend?