aksoftware98 / multilanguages

AKSoftware.Localization.MultiLanguages is a package for .NET developers allows them to easily build apps target multiple languages with just few lines of code
MIT License
85 stars 15 forks source link

How to preserve html tags #8

Open CPlusPlus17 opened 4 years ago

CPlusPlus17 commented 4 years ago

Hello

Its there a way to preserve HTML tags within the language strings?

<!-- Translated -->
<label class="custom-control-label" style="" for="123">Some text &lt;span style="text-decoration: underline;"&gt;more&lt;/span&gt;*</label>
<!-- Original -->
<label class="custom-control-label" style="" for="123">Some text <span style="text-decoration: underline;">more</span>*</label>

Thanks Manuel

aksoftware98 commented 4 years ago

Hello

Its there a way to preserve HTML tags within the language strings?

<!-- Translated -->
<label class="custom-control-label" style="" for="123">Some text &lt;span style="text-decoration: underline;"&gt;more&lt;/span&gt;*</label>
<!-- Original -->
<label class="custom-control-label" style="" for="123">Some text <span style="text-decoration: underline;">more</span>*</label>

Thanks Manuel

Hello dear

Unfourtuentley this is not supported now! but it looks a great Idea I will move forward starting from this weekend. I will make sure to make it available within a week at most

Thanks for that nice suggestion

Stonne commented 1 year ago

Hello Maybe a little late but I didi it like this the html tag is from mudblazor but another will also work :@((MarkupString)languageContainer.Keys["House"]) and in the yaml file : House: Our vacation home with all modern comfort is a great place to relax and unwind. hope this is what you asked for...

Stonne commented 1 year ago

Sorry copy and paste did not come out good : another try @((MarkupString)languageContainer.Keys["Welcome"]) and the yaml : House: Our vacation home with all modern comfort is a great place to relax and unwind.

Stonne commented 1 year ago

I hope it comes out good at your end it was ok until I clicked comment and then parts of the sentence was messed up