abp icon indicating copy to clipboard operation
abp copied to clipboard

Localization not working when deploying project to iis or linux

Open diennttlu opened this issue 2 years ago • 3 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

Description

image

my config:

  private void ConfigureLocalization()
    {
        Configure<AbpLocalizationOptions>(options =>
        {
            options.Languages.Add(new LanguageInfo("vi", "vi", "Vietnamese"));
            options.Languages.Add(new LanguageInfo("en", "en", "English"));
        });
    }

Reproduction Steps

No response

Expected behavior

No response

Actual behavior

No response

Regression?

No response

Known Workarounds

No response

Version

6.0.0.0

User Interface

Angular

Database Provider

EF Core (Default)

Tiered or separate authentication server

None (Default)

Operation System

Windows (Default)

Other information

No response

diennttlu avatar Jul 20 '23 02:07 diennttlu

hi

You can publish your app to a local folder and test it again.

maliming avatar Jul 20 '23 05:07 maliming

I've added this code to ConfigureVirtualFileSystem:


            Configure<AbpVirtualFileSystemOptions>(options =>
            {
                options.FileSets.ReplaceEmbeddedByPhysical<WebMasterDomainSharedModule>(hostingEnvironment.ContentRootPath);
            });

diennttlu avatar Jul 20 '23 07:07 diennttlu

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Apr 27 '25 03:04 stale[bot]

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jun 26 '25 23:06 stale[bot]