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

First load of Arabic makes page blank, needs refresh #58

Open
mr-islam opened this issue Apr 10, 2021 · 5 comments
Open

First load of Arabic makes page blank, needs refresh #58

mr-islam opened this issue Apr 10, 2021 · 5 comments

Comments

@mr-islam
Copy link
Collaborator

Maybe it works the same for English if Arabic is loaded the same

Check language loading and svelte 18n

@mr-islam
Copy link
Collaborator Author

This error is not there on a local build, so clearly it's something when it's built / served / making network requests…

mr-islam added a commit that referenced this issue Apr 11, 2021
mr-islam added a commit that referenced this issue Apr 11, 2021
@mr-islam
Copy link
Collaborator Author

I'm hitting a blank about why this is happening… maybe there's some code in some library that's not playing nice, but I don't know what…

I might just end up running a page refresh after changing the locale… that's so lazy, but ideally people should receive their device language by default, and if not they change the language once manually, and the browser remembers automatically. This can help prevent weird font/styling bugs as well I guess.

Need to remove the counter for how many times language has been changed then…

@mr-islam
Copy link
Collaborator Author

Even that did not work: 45508e7

.......................................

Really tired of this bug… let me try a cache-free deploy from netlify

@mr-islam
Copy link
Collaborator Author

Um… so the netlify branch deploy was failing for the last 4~ commits so when I was testing it was still the old version...

😢

@mr-islam
Copy link
Collaborator Author

Alhamdulillah solved! It was setting a loading delay of zero that caused the trouble it seems. To prevent any future mess, should try:

  1. re-introduce the delay and see if the error comes back.
  2. not specify any loading delay, since svelte-i18n docs show it to be optional.

@mr-islam mr-islam reopened this Apr 12, 2021
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

1 participant