Closed Bug 1205799 Opened 10 years ago Closed 10 years ago

view.formatValue errors when called before first language is resolved

Categories

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

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: zbraniecki, Unassigned)

Details

Justin encountered it while working on Music-NGA calling document.l10n.formatValue too errors with: "this.service is undefined" The API should handle formatValue called at any point and resolve it when the first language is resolved.
:stas, I know you've encountered this while working on SMS-L20n. Did you have a solution in mind? Dirty hack would be to make it wait for l10n.ready internally, but maybe you have a better way?
Flags: needinfo?(stas)
I'm fixing this in bug 1207120 among with other methods, too.
Flags: needinfo?(stas)
Bug 1207120 has been fixed in the l20n.js repo. I'll update the l20n.js lib in Gaia next week.
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.