Open Closed

Localization is not working on my Microservice #5794


User avatar
0
alaam@ecash-pay.com created
  • ABP Framework version: v7.3.2
  • UI Type: Blazor WASM
  • Database System: EF Core (SQL Server)
  • Tiered (for MVC) or Auth Server Separated (for Angular): auth server separated
  • Architecure: Microservices
  • Exception message and full stack trace: no exception
  • Steps to reproduce the issue:

in AppService write this code :

throw new UserFriendlyException(L["ItemAlreadyExists"]);

in DomainShared -> en.json write: "ItemAlreadyExists": "Item already exists.",

When calling Action it should shows "Item already exists." in my case, it shows "ItemAlreadyExists"

What is the problem?

Thanks.


I Sent you the solution on email


5 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    in AppService write this code :

    Can you share detail steps or screenshots to reproduce this in a new microservice project? Thanks.

  • User Avatar
    0
    alaam@ecash-pay.com created

    Hi,

    here is the screenshots:

    Domain Shared:

    en.json

    AppService:

    User Interface:

    it should show this message instead :

    Record identity can not be modified.

    What is the problem.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    How can I reproduce this in a new microservice project?

    Can you share a new project?

    liming.ma@volosoft.com

  • User Avatar
    1
    maliming created
    Support Team Fullstack Developer

    hi

    public class SampleEntitiesAppService : NySampleServiceAppService, ISampleEntitiesAppService
    

  • User Avatar
    0
    alaam@ecash-pay.com created

    Thank you!

    Inheriting from NySampleServiceAppService did solve the problem.

    However, please note that this services is generated using your other product ABP Suite.

    Regards,

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