Open Closed

Localization #7081


User avatar
0
nabass created

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 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    What is the h5(HTML) output?

  • User Avatar
    0
    nabass created

    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 created
    Support Team Fullstack Developer

    hi

    Can you share a template project to reproduce?

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

  • User Avatar
    0
    nabass created

    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 created
    Support Team Fullstack Developer

    hi

    You can create a new template project

    abp new BookStore -t app

  • User Avatar
    0
    Anjali_Musmade created
    Support Team 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 created

    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 created

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

    thanks for efforts

  • User Avatar
    0
    Anjali_Musmade created
    Support Team Support Team Member

    HI,

    closing the ticket, as issue resolved?

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