Skip to content

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

Closed

Description

@aaronraimist

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.

Activity

  1. aaronraimist commented on Apr 10, 2019

    @aaronraimist
    CollaboratorAuthor

    Possibly related: #4136 / #8710

    #8879
    #7847

  2. turt2live commented on Apr 10, 2019

    @turt2live
    Member

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

  3. lampholder commented on Apr 29, 2019

    @lampholder
    Member

    @turt2live - eagerly deleting when? When we redeploy?

  4. turt2live commented on Apr 29, 2019

    @turt2live
    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.

  5. bwindels commented on Oct 11, 2019

    @bwindels
    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

  6. kixiQu commented on May 8, 2020

    @kixiQu

    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?

  7. Yoric commented on Dec 23, 2020

    @Yoric
    Contributor

    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?

  8. Gustry commented on Jan 19, 2021

    @Gustry

    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

  9. t3chguy commented on Jan 19, 2021

    @t3chguy
    Member

    Clear your browser cache.

  10. Gustry commented on Jan 20, 2021

    @Gustry

    Thanks, it worked.

  11. 127 remaining items

  12. lindhe commented on Apr 28, 2022

    @lindhe

    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...

  13. t3chguy commented on Apr 28, 2022

    @t3chguy
    Member

    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

  14. novocaine commented on Apr 29, 2022

    @novocaine
    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

  15. babolivier commented on Apr 29, 2022

    @babolivier
    Contributor

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

  16. babolivier commented on May 3, 2022

    @babolivier
    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.

  17. andybalaam commented on May 4, 2022

    @andybalaam
    Member

    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.

  18. babolivier commented on May 4, 2022

    @babolivier
    Contributor

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

  19. andybalaam commented on May 5, 2022

    @andybalaam
    Member
  20. babolivier commented on May 13, 2022

    @babolivier
    Contributor

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

  21. babolivier commented on May 16, 2022

    @babolivier
    Contributor

    Again ^

  22. turt2live commented on Jul 4, 2022

    @turt2live
    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.

  23. richvdh commented on Aug 30, 2023

    @richvdh
    Member

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

  24. andybalaam commented on Aug 30, 2023

    @andybalaam
    Member

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    I18nO-OccasionalAffects or can be seen by some users regularly or most users rarelyS-MajorSeverely degrades major functionality or product features, with no satisfactory workaroundT-Defect

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions