Closed morgrowe closed 3 years ago
Hi @morgrowe
Sorry I’m not able to offer a solution now due to some health issues :( may be after two weeks I will be able to help.
Hi Ziya,
Sorry to hear you're not well. I hope you get well soon.
No problem at all--don't even think about it. I'm more than happy to use the workaround :)
Morgan
Hi @morgrowe ,
Thank you for your kindness, finally I have recovered and feeling better now :)
Your workaround is correct, but this issue inspired me to create a new tag helper...
XLocalizer.TagHelpers
currently v1.1.0
Install-Package XLocalizer.TagHelpers -Version 1.1.0
localize-select
to create a select control with all items texts localized:
<localize-select asp-items="@items"></localize-select>
This will produce a select list with all option texts localized.
Best regards, Ziya
Hi Ziya,
Glad to hear you're feeling better. :)
Ok great, that enhancement will be extremely useful. Thank you!
Morgan
Hi Ziya,
Hope you're well.
Is it possible to localize the contents of a
<select asp-items />
automatically?For example, in a View:
I'm not sure where I'd put the
localize-content
orlocalize-att-*
to tell it to do its magic.I haven't tried it, but as a work around, I imagine I could omit the
asp-items
and do it something like this:But I thought I'd ask in case this is isn't required. :)
Thanks, as always. Morgan