Open
Bug 1487315
Opened 6 years ago
Updated 1 year ago
Port bug 1429610 to TB: Add APIs to handle langpack/dictionary discoverability and adding/removal
Categories
(Thunderbird :: Add-Ons: General, task)
Thunderbird
Add-Ons: General
Tracking
(Not tracked)
NEW
People
(Reporter: Paenglab, Unassigned)
References
Details
Attachments
(1 obsolete file)
From bug 1429610 comment 0:
In order to allow for dynamic langpack installation based on various criteria (OS locale selection, user choice in Preferences etc.) we'll need three APIs:
1) An API to poll the list of langpacks for the given version of a product available for installation (from AMO)
2) An API to initiate langpack download/install action
3) An API to remove a langpack from the product
My mock idea of how such APIs could look like:
```
let availableLocales = await AddonsManager.getAvailableLocales();
Promise.all(availableLocales.map(code => AddonsManager.installLangpack(code))).then(() => {
console.log("All available locales installed!");
}).catch(e => {
console.error(`Failed to install langpack ${e.locale}`);
});
```
The rest of the logic is handled by the langpack installer which fires L10nRegistry which updates LocaleService.
Reporter | ||
Comment 1•6 years ago
|
||
Andrej, is this possible on ATN or do we lack something?
Flags: needinfo?(sancus)
Updated•6 years ago
|
Component: General → Add-Ons: General
Comment 2•6 years ago
|
||
I realize this is a bit old, but we do support that API and always did. There should not be any changes needed for us, we can implement it the exact same way Firefox does. Easy to try:
The main problem with this is that since we don't have automatic language pack upload working, the appropriate language packs aren't getting updated on ATN so only a couple are up to date.
That should not block any implementation or testing, but it would block release.
Depends on: 1490598
Flags: needinfo?(sancus)
Updated•5 years ago
|
Type: enhancement → task
Updated•2 years ago
|
Severity: normal → S3
Comment 3•2 years ago
|
||
Bug 1490598 (automatic langpack upload to ATN) is planned to hit 115 beta next week.
Updated•1 year ago
|
Attachment #9384522 -
Attachment is obsolete: true
You need to log in
before you can comment on or make changes to this bug.
Description
•