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

How to localize sweet alerts buttons ? #399


User avatar
0
klainer created

Hello, how locallize sweet alerts buttons ? I found in code this:

abp.event.on('abp.dynamicScriptsInitialized', function () {
        abp.libs.sweetAlert.config.confirm.title = abp.localization.abpWeb('AreYouSure');
        abp.libs.sweetAlert.config.confirm.cancelButtonText = abp.localization.abpWeb('Cancel');
        abp.libs.sweetAlert.config.confirm.confirmButtonText = abp.localization.abpWeb('Yes');
    });

Where are this rosources ? In Localization AbpWeb resource is missing... Thnaks for help !


4 Answer(s)
  • User Avatar
    0
    ddnils created

    Have you checked embedded resources in Abp.Core?

    Also check: <a class="postlink" href="http://www.aspnetboilerplate.com/Pages/Documents/Localization">http://www.aspnetboilerplate.com/Pages/ ... calization</a>

  • User Avatar
    0
    klainer created

    I checked this document, tried this:

    Configuration.Localization.Sources.Extensions.Add(
                    new LocalizationSourceExtensionInfo("AbpWeb",
                        new XmlFileLocalizationDictionaryProvider(
                            HttpContext.Current.Server.MapPath("~/Localization/AbpWebExtensions")
                            )
                        )
                    );
    

    And overide the names in resource file, but it dont work.

    Thnaks for tips!

  • User Avatar
    0
    hikalkan created
    Support Team

    Hi,

    Can you create an issue on the Github, so I will check it.

    Thanks.

  • User Avatar
    0
    hikalkan created
    Support Team

    I fixed it. See: <a class="postlink" href="https://github.com/aspnetboilerplate/aspnetboilerplate/issues/670">https://github.com/aspnetboilerplate/as ... issues/670</a>