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)
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.
| Reporter | ||
Comment 1•10 years ago
|
||
: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)
Comment 2•10 years ago
|
||
I'm fixing this in bug 1207120 among with other methods, too.
Flags: needinfo?(stas)
Comment 3•10 years ago
|
||
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.
Description
•