Aperto Chiuso

Localization #7081


User avatar
0
nabass creato

hi sir i noticed that localization just work within <abp> tags i tried to put it into <h5> tag but it doesn't work

  • ABP Framework version: v8
  • UI Type: MVC
  • Database System: EF Core (SQL Server)

9 risposte
  • User Avatar
    0
    maliming creato
    Team di supporto Fullstack Developer

    hi

    What is the h5(HTML) output?

  • User Avatar
    0
    nabass creato

    no thing shows same as i don't put a tag and if i put it into tag itself the output will be:====> ["Opening Year / Period:"]

  • User Avatar
    0
    maliming creato
    Team di supporto Fullstack Developer

    hi

    Can you share a template project to reproduce?

    https://wetransfer.com/ liming.ma@volosoft.com

  • User Avatar
    0
    nabass creato

    it's a company project i cant send it even if they allowed me because the size of it you can try any open project on your PC put <h5> or any tag not starts with <abp> it will not work <p> tag <a> tag <h1> tag ..... etc

  • User Avatar
    0
    maliming creato
    Team di supporto Fullstack Developer

    hi

    You can create a new template project

    abp new BookStore -t app

  • User Avatar
    0
    Anjali_Musmade creato
    Team di supporto Support Team Member

    HI,

    please try like this

    <h5>@L["Opening Year / Period:"].Value</h5>

    At my end it results like this

    thanks

  • User Avatar
    0
    nabass creato

    hi Anjali,, it will not take the value into localization it will take the value within the tag it means that if i change the localization of this item no effect will happen

  • User Avatar
    0
    nabass creato

    i solved it thanks tag must be like this: without (/) <h5>@L["OpeningYearPeriod"].Value</h5>

    thanks for efforts

  • User Avatar
    0
    Anjali_Musmade creato
    Team di supporto Support Team Member

    HI,

    closing the ticket, as issue resolved?

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