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

Missing translation: en| - Unable to set language on Firefox #9422

Closed
aaronraimist opened this issue Apr 10, 2019 · 121 comments · Fixed by #21912
Closed

Missing translation: en| - Unable to set language on Firefox #9422

aaronraimist opened this issue Apr 10, 2019 · 121 comments · Fixed by #21912
Labels
I18n O-Occasional Affects or can be seen by some users regularly or most users rarely S-Major Severely degrades major functionality or product features, with no satisfactory workaround T-Defect

Comments

@aaronraimist
Copy link
Collaborator

aaronraimist commented Apr 10, 2019

Recently I've seen lots of people reporting that they are seeing missing strings for languages that are properly translated. I've also gotten bit by this a few times. The console error that looks relavent is

Unable to set language 
Object { err: null, response: XMLHttpRequest }
rageshake.js:61:8

Screen Shot 2019-04-10 at 10 34 12 AM

I got it on /develop, other people on /app have reported the same issue.

@aaronraimist
Copy link
Collaborator Author

aaronraimist commented Apr 10, 2019

Possibly related: #4136 / #8710

#8879
#7847

@turt2live
Copy link
Member

Looks like we might be eagerly deleting files which causes 404s later on. Might need a different cache strategy

@lampholder
Copy link
Member

@turt2live - eagerly deleting when? When we redeploy?

@lampholder lampholder added T-Defect i18n P1 X-Needs-Info This issue is blocked awaiting information from the reporter labels Apr 29, 2019
@turt2live
Copy link
Member

yes, it seems like we're blowing away the old build when we deploy a new build, which means that people who are unlucky will have missed the bundle.

@bwindels
Copy link
Contributor

We could solve this by adding a service worker that adds the language files (and others) to the cache and falls back to it on a 404

@kixiQu
Copy link

kixiQu commented May 8, 2020

This is happening for me and other people using the Riot that I host since I upgraded. The thing is, reload doesn't help. The error message is the same. Is there a header I can set with nginx to kill the caching?

@Yoric
Copy link
Contributor

Yoric commented Dec 23, 2020

I keep being bitten by it several times per week, so I'd be happy if we could fix this 👍

Relevant console message seems to have changed:

Using WebAssembly Olm
Unable to set language null KeyboardShortcuts.tsx:272:21
    n KeyboardShortcuts.tsx:272
    Z init.tsx:114
Skin loaded

Could we possibly init an auto-reload when we detect the issue?

@Gustry
Copy link

Gustry commented Jan 19, 2021

I got this issue many times per week as well, for the last 2 months, a popup telling me "missing translation". But it was only a single popup. Not more.

But since yesterday, it all strings provided by Element which are pre-fixed by "Missing translation" as you can see on the screenshot

Selection_002

@t3chguy
Copy link
Member

t3chguy commented Jan 19, 2021

Clear your browser cache.

@Gustry
Copy link

Gustry commented Jan 20, 2021

Thanks, it worked.

@jryans jryans added I18n and removed A-I18n labels Mar 5, 2021
@ara4n
Copy link
Member

ara4n commented Apr 12, 2021

I'm seeing reports of this every few days atm, including from VIPs. Can Element not load the resource via JS with a retry schedule if it fails?

@Yoric
Copy link
Contributor

Yoric commented Apr 12, 2021

Clear your browser cache.

Unfortunately, most end users know nothing about the cache, so we need a better solution.

@Gustry
Copy link

Gustry commented Apr 12, 2021

Clear your browser cache.

Unfortunately, most end users know nothing about the cache, so we need a better solution.

Yes, and this issue came back a few times already since my last answer. I thought it would be ok just one time, but no.

@babolivier
Copy link
Contributor

I'm getting this almost every time I load Element Web now. For what it's worth, it goes away with a simple refresh of the page, but it's still pretty annoying.

@jryans
Copy link
Collaborator

jryans commented May 18, 2021

Just to add a counterpoint, I haven't seen this in many months, at least on develop. I wonder if it's something related to cache headers...?

@babolivier
Copy link
Contributor

If that helps, I should add that I'm always using develop.element.io with Firefox on Linux.

@jryans jryans self-assigned this May 18, 2021
@jryans
Copy link
Collaborator

jryans commented May 18, 2021

Okay, good to know. Unfortunately, rageshakes don't help too much for this issue at the moment, as all they show is:

E Unable to set language null

Let's at least record the actual error to the logs...

For the moment though, the next time someone does see this on develop, please capture the actual missing file from the error, as I'd like to trace down why it's been removed.

@babolivier
Copy link
Contributor

image

^ is all I can see in the console (logs start when the Element Web tab is loaded and end a few messages after the "Unable to set language" error)

@andybalaam
Copy link
Contributor

I got this again this morning, rageshake ^

@andybalaam
Copy link
Contributor

Got this again today.

@novocaine
Copy link
Contributor

#21605 has been merged

@andybalaam
Copy link
Contributor

Just seen it again today, with updated=1 in the URL :-(

@novocaine
Copy link
Contributor

Just seen it again today, with updated=1 in the URL :-(

rageshake please

@andybalaam
Copy link
Contributor

rageshake please

Sorry, forgot to mention that rageshake immediately above that comment is mine.

@lindhe
Copy link

lindhe commented Apr 28, 2022

Yeah, this is still present. I got it and pressed "send feedback". Hope that's equivalent to rage shaking. I tried rage shaking my laptop, but nothing happened...

@t3chguy
Copy link
Member

t3chguy commented Apr 28, 2022

Yeah, this is still present. I got it and pressed "send feedback". Hope that's equivalent to rage shaking. I tried rage shaking my laptop, but nothing happened...

Unfortunately feedback doesn't include logs for privacy reasons, please send logs from Settings > Help & About

@novocaine
Copy link
Contributor

Yeah, this is still present. I got it and pressed "send feedback". Hope that's equivalent to rage shaking. I tried rage shaking my laptop, but nothing happened...

Element 1.10.11 was created on April 19, so doesn't have the most recent attempt to fix the issue

@babolivier
Copy link
Contributor

I saw it again this morning on develop, I've rageshaken ^

@babolivier
Copy link
Contributor

It's happened to me again this morning, except this time it seemed to prevent Element to load (I got an infinite spinner until I reloaded the tab), so I couldn't rageshake.

@andybalaam
Copy link
Contributor

I got the infinite spinner this morning. Console:

Content Security Policy: The page's settings blocked the loading of a resource at inline ("script-src"). moz-extension:33:9
Unable to set language Error: Failed to load i18n/languages.630445c.json, got 404
    getLangsJson languageHandler.tsx:533
    on_end index.js:294
    on_state_change index.js:244
rageshake.ts:72:27
Loading Worker from “https://develop.element.io/ad35579c7db15f5fe93e.worker.js” was blocked because of a disallowed MIME type (“text/html”). develop.element.io

Address bar:

https://develop.element.io/?updated=850a250cea91-react-1c70696b1020-js-d190cdc307f1#/room/!LjeDfEINUDXfGPPsHm:matrix.org

The screen is blank except for "missing translation: en|Logout" at the bottom, and a spinner in the middle.

@babolivier
Copy link
Contributor

I got it again this morning. I managed to rageshake through the console ^

@andybalaam
Copy link
Contributor

@babolivier
Copy link
Contributor

Also had one just now (not the freeze), rageshaken ^

@babolivier
Copy link
Contributor

Again ^

@turt2live
Copy link
Member

It's unclear what this was blocked on, but it's certainly worthy of picking up.

I believe at this point we know what causes it, we just need to figure out how to fix it.

@richvdh
Copy link
Member

richvdh commented Aug 30, 2023

Is this still happening? I don't remember seeing it recently.

@andybalaam
Copy link
Contributor

I haven't seen it for ages. Closing. If it re-occurs please re-open. (Thanks Rich for pointing this out.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
I18n O-Occasional Affects or can be seen by some users regularly or most users rarely S-Major Severely degrades major functionality or product features, with no satisfactory workaround T-Defect
Projects
None yet