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

Markdown supported.
Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)

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.

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • 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.

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • 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

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    1
    maliming created
    Support Team Fullstack Developer

    hi

    public class SampleEntitiesAppService : NySampleServiceAppService, ISampleEntitiesAppService
    

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • 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,

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.8.0-preview. Updated on September 28, 2026, 11:44
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.