Closed
Bug 1881814
Opened 1 year ago
Closed 1 year ago
AC Global Preference Update Global Language Action
Categories
(Firefox for Android :: Translations, task, P1)
Tracking
()
RESOLVED
FIXED
127 Branch
| Tracking | Status | |
|---|---|---|
| firefox127 | --- | fixed |
People
(Reporter: olivia, Assigned: olivia)
References
Details
(Whiteboard: [fxdroid][foundation][translations:127])
Attachments
(1 file)
This bug is to add an action for updating the language on the global language settings screen. Need to also ensure the page settings remain in sync.
| Assignee | ||
Updated•1 year ago
|
Blocks: fx-translation-android
Severity: -- → N/A
Depends on: 1862291
Priority: -- → P1
Whiteboard: [fxdroid][foundation]
Updated•1 year ago
|
| Assignee | ||
Updated•1 year ago
|
Assignee: nobody → ohall
| Assignee | ||
Updated•1 year ago
|
Whiteboard: [fxdroid][foundation] → [fxdroid][foundation][translations:127]
| Assignee | ||
Comment 1•1 year ago
•
|
||
Looks like this was added already via bug 1877203! I'm going to improve the documentation around this area. It is easy to miss what APIs are implemented and not implemented. I'll update this bug with better documentation shortly.
Edit: Realize I just saw updateLanguageSetting which is the path for the page settings, not global settings. So, this bug is still valid, but more just adding the action, and less connecting the API.
| Assignee | ||
Comment 2•1 year ago
|
||
Confirming the following Global APIS:
Never Translate This Site:
- Fetch via
TranslationsAction.OperationRequestedAction, operation = TranslationOperation.FETCH_NEVER_TRANSLATE_SITESakarequestNeverTranslateSites- Sets as
TranslationsBrowserState.neverTranslateSites
- Sets as
- Update via
TranslationsAction.RemoveNeverTranslateSiteActionakaremoveNeverTranslateSite
Language Settings:
- Fetch
TranslationsAction.OperationRequestedAction, operation = TranslationOperation.FETCH_AUTOMATIC_LANGUAGE_SETTINGSvia akarequestLanguageSettings- Sets as
TranslationsBrowserState.languageSettings
- Sets as
- Update via NEED TO ADD HERE aka
updateLanguageSetting
| Assignee | ||
Comment 3•1 year ago
|
||
This patch adds the option to update the user's language settings from a global perspective.
- Adds
TranslationsAction.UpdateLanguageSettingsActionto update the language setting.TranslationsStateReducerproactively accepts updates and is set on the translations engine
or else the state is rolled back inTranslationsMiddleware.
- Refactors
updateLanguageSettinginTranslationsMiddlewareto handle both the page setting and global setting perspective.
Pushed by ohall@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/1b6148d2775f
Translations AC Action to Update Language Preferences r=android-reviewers,giorga
Comment 5•1 year ago
|
||
| bugherder | ||
Status: NEW → RESOLVED
Closed: 1 year ago
status-firefox127:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 127 Branch
Updated•1 year ago
|
Type: enhancement → task
You need to log in
before you can comment on or make changes to this bug.
Description
•