Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Calling localized strings from JavaScript #1157


User avatar
0
kressler created

Here is a section from asp.net boiler help. I would like to do this in my application. However I do not have the folder listed below <script src="/AbpScripts/GetScripts" type="text/javascript"></script>

How do I do this in asp.net zero?

Thanks,

Ken

In Javascript

ASP.NET Boilerplate makes possible to use same localization texts in also javascript code. First, you should be added dynamic ABP scripts to the page: <script src="/AbpScripts/GetScripts" type="text/javascript"></script>

ASP.NET Boilerplate automatically generates needed javascript code to get localized texts in the client side. Then you can easily get a localized text in javascript as shown below:

var s1 = abp.localization.localize('NewTask', 'SimpleTaskSystem');


1 Answer(s)
  • User Avatar
    0
    kressler created

    I found my answer.

    app.localize

    Thanks!