Skip to content
This repository has been archived by the owner on Feb 20, 2023. It is now read-only.

i18n.detectLanguage does not work #18633

Closed
FilipePS opened this issue Mar 24, 2021 · 4 comments
Closed

i18n.detectLanguage does not work #18633

FilipePS opened this issue Mar 24, 2021 · 4 comments
Labels
🐞 bug Crashes, Something isn't working, .. Feature:WebExtensions needs:triage Issue needs triage

Comments

@FilipePS
Copy link

FilipePS commented Mar 24, 2021

Steps to reproduce

Call the function browser.i18n.detectLanguage
Example: browser.i18n.detectLanguage("Hello", r => console.log(r))

Expected behavior

...

Actual behavior

This error is generated
[Exception... "File error: Not found" nsresult: "0x80520012 (NS_ERROR_FILE_NOT_FOUND)" location: "JS frame :: chrome://extensions/content/parent/ext-i18n.js :: detectLanguage :: line 34" data: no]

Device information

  • Device vendor / model and Android version: Moto g7 play Android 10
  • Firefox for Android version: Nightly 210324

This problem has been occurring for more than 1 year.

┆Issue is synchronized with this Jira Task

@FilipePS FilipePS added the 🐞 bug Crashes, Something isn't working, .. label Mar 24, 2021
@github-actions github-actions bot added the needs:triage Issue needs triage label Mar 24, 2021
@mcarare
Copy link
Contributor

mcarare commented Mar 25, 2021

@FilipePS I suppose you use this for a web extension. Does this work on Firefox for desktop?

@FilipePS
Copy link
Author

@FilipePS I suppose you use this for a web extension. Does this work on Firefox for desktop?

Yes

@kbrosnan
Copy link
Contributor

Moved to bugzilla: https://bugzilla.mozilla.org/show_bug.cgi?id=1712214

Change performed by the Move to Bugzilla add-on.

@Rob--W
Copy link

Rob--W commented Sep 4, 2022

FYI this got fixed in Firefox 106.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🐞 bug Crashes, Something isn't working, .. Feature:WebExtensions needs:triage Issue needs triage
Projects
None yet
Development

No branches or pull requests

4 participants