Open Closed

Bootstrap-datepicker, jquery.timeago, jquery-validation libraries configure the language as Chinese. #1533


User avatar
0
uyarbtrlp created

Hello,

  • ABP Framework version: v4.3.0
  • UI type: MVC
  • Tiered (MVC): Yes
  • Steps to reproduce the issue:

When I run the /api/abp/application-configuration endpoint on swagger, I see the localization values in my project. However, under the sections languagesMap and languageFilesMap, I see that the libraries which are bootstrap-datepicker, jquery.timeago, jquery-validation are set the language as Chinese. I expect when I select English on the Web UI, they are set as English. In addition, under the libraries on wwroot that I mentioned above, they have lots of language files. Do they need to be set as current language that I select on the Web UI. What is the reason of this?


2 Answer(s)
  • User Avatar
    0
    alper created
    Support Team Director

    the packages are being added as Chinese I'll check why this is being added as Chinese https://github.com/abpframework/abp/blob/dev/framework/src/Volo.Abp.AspNetCore.Mvc.UI.Packages/Volo/Abp/AspNetCore/Mvc/UI/Packages/AbpAspNetCoreMvcUiPackagesModule.cs#L36

    but when the client-side packages are being bundled current user's culture is added to the JS filename.

    So it should be localized for the current user.

    Check out

    https://github.com/abpframework/abp/blob/48c52625f4c4df007f04d5ac6368b07411aa7521/framework/src/Volo.Abp.AspNetCore.Mvc.UI.Packages/Volo/Abp/AspNetCore/Mvc/UI/Packages/JQueryValidation/JQueryValidationScriptContributor.cs#L23

    https://github.com/abpframework/abp/blob/48c52625f4c4df007f04d5ac6368b07411aa7521/framework/src/Volo.Abp.AspNetCore.Mvc.UI.Packages/Volo/Abp/AspNetCore/Mvc/UI/Packages/Timeago/TimeagoScriptContributor.cs#L23

  • User Avatar
    0
    ServiceBot created
    Support Team Automatic process manager

    This question has been automatically marked as stale because it has not had recent activity.

Made with ❤️ on ABP v9.1.0-preview. Updated on November 11, 2024, 11:11