Closed Bug 1228021 Opened 9 years ago Closed 6 years ago

Introduce applyTranslation API

Categories

(Firefox OS Graveyard :: Gaia::L10n, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: stas, Unassigned)

Details

Sometimes when it's not possible to avoid passing a localized string someplace further (like from backend to frontend which doesn't have the required localization resources) it would be helpful to have an API to apply the text value of the translation (and possibly same for the attributes) to a given DOM node, using the DOM overlays logic.

For examples, see bug 1225497 and bug 1222207, where the current view's title comes from the view but is displayed in an h1 in the parent container.

Name of the API is TBD.
Firefox OS is not being worked on
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.