Blazorise icon indicating copy to clipboard operation
Blazorise copied to clipboard

Localization for FileEdit isn´t kicking in

Open sturlath opened this issue 3 years ago • 2 comments
trafficstars

Hi for some reason I´m not getting the Icelandic localization for File edit (its here)

Basically this code

<Validation Validator="@ValidatePosterUpload">
    <FileEdit Filter="image/jpeg, image/jpg, image/gif" Changed="@OnPosterImageChanged" Multiple="false">
        <Feedback>
            <ValidationError />
            <FieldHelp>@L["EventPosterFieldHelp"]</FieldHelp>
        </Feedback>
    </FileEdit>
</Validation>

But as you can see its not getting localized but my abp.io @L["EventPosterFieldHelp"] is. image

Am I missing something?

I´m on Blazorise 1.0.4 and abp.io 5.3.2

sturlath avatar Jul 17 '22 12:07 sturlath

Are you using the BS5 provider? In the latest Bootstrap 5, there is no content defined in the DOM that could be replaced by the localization. So the label "No file chosen" is now controlled by the browser. Not sure if we can do anything about it. JavaScript comes to mind, but we will need to investigate that approach.

stsrki avatar Jul 17 '22 17:07 stsrki

Yes Im using BS5. Hopefully its possible to localize it sice it some how. It looks out of place like this. Wish I could help 🫣

sturlath avatar Jul 17 '22 20:07 sturlath