Open Closed

Translating database data from English to Chinese #229


User avatar
0
lalitChougule created
  • ABP Framework version: v2.7.0
  • UI type: Angular
  • Tiered (MVC) or Identity Server Seperated (Angular): yes
  • Exception message and stack trace:N.A
  • Steps to reproduce the issue:N.A

What I have now : I have a table which contains name of the countries e.g.

1. India
2. China
3. Russia
4. ...

This data comes from the database which is stored in english and is displayed in one of my form through dropdown

What I want to achieve : If my user changes the language to chinese from the language dropdown I want to show him the converted text i.e.

1. 印度
2. 中国
3. 俄国
4. ...

All my data in database is stored in English I want to display that data as per the language selected by the user Is there a way to achieve this ?


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

    you are looking for "Multi Lingual Entity" This feature is on the roadmap, see https://github.com/abpframework/abp/issues/1754 but still not implemented yet. if you don't want to wait for it, you can implement it on your own, check out AspNet Boilerplate implementation https://aspnetboilerplate.com/Pages/Documents/Multi-Lingual-Entities

  • User Avatar
    0
    lalitChougule created

    Hi @alper,

    I tried to implement "Multi Lingual Entity" I created the Entity using IMultiLingualEntity & IEntityTranslation as per the document

    But I got stuck in this part CreateMultiLingualMap https://aspnetboilerplate.com/Pages/Documents/Multi-Lingual-Entities#createmultilingualmap

    If you can guide me how to map the entities , It will be helpful

    Thanks

  • User Avatar
    0
    alper created
    Support Team Director

    maybe I may have misrepresented it. this feature is not available now. so you need to impelement it https://aspnetboilerplate.com/Pages/Documents/Multi-Lingual-Entities#createmultilingualmap this is the docs, but these documents explain how to use it. in ABP framework it's not ready yet. so you can start by creating the interface and the rest https://github.com/aspnetboilerplate/aspnetboilerplate/blob/dev/src/Abp/Domain/Entities/IMultiLingualEntity.cs

Made with ❤️ on ABP v8.2.0-preview Updated on March 25, 2024, 15:11