Toolbelt.Blazor.I18nText icon indicating copy to clipboard operation
Toolbelt.Blazor.I18nText copied to clipboard

Console error on change language

Open a-iafrate opened this issue 6 years ago • 3 comments
trafficstars

Hi, i'm on preview 9 with the latest version, if i change the language all works but in console i have the error blazor.webassembly.js:1 GET https://xxxx.azurewebsites.net/content/i18ntext/ReferralShare.Client.I18nText.Text.it.json 404 (Not Found) this is correct because the file is in the folder _content/i18ntext/ReferralShare.Client.I18nText.Text.it.json

Someone can fix this bug?

Thanks!!!

a-iafrate avatar Sep 05 '19 14:09 a-iafrate

Thank you for your reporting!

Sorry, this is by design at this time to keep lower compatibility. Some old components those are using this library deploy the localized resource json into "content" folder (not "_content" folder).
Therefore, the library explores both of those folders.

However, it might be fixed in these days.

I'll consider when it should be fixed.

jsakamoto avatar Sep 05 '19 23:09 jsakamoto

"Blazor I18n Text" ver.7 reduced the "404 Not Found" error with breaking changes to search only "_content" folder.

However, due to the architecture and design, the "404 Not Found" error cannot be eliminated in all case. (The library cannot determine what language's files are exists at compile time)

jsakamoto avatar Oct 03 '19 23:10 jsakamoto

Will this be fixed?

image

0xF6 avatar Oct 10 '19 12:10 0xF6