Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Console error on change language #7

Open
a-iafrate opened this issue Sep 5, 2019 · 3 comments
Open

Console error on change language #7

a-iafrate opened this issue Sep 5, 2019 · 3 comments

Comments

@a-iafrate
Copy link

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 a-iafrate changed the title Error on change language Console Error on change language Sep 5, 2019
@a-iafrate a-iafrate changed the title Console Error on change language Console error on change language Sep 5, 2019
@jsakamoto
Copy link
Owner

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
Copy link
Owner

"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)

@0xF6
Copy link

0xF6 commented Oct 10, 2019

Will this be fixed?

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants