Closed Bug 1182406 Opened 9 years ago Closed 9 years ago

Serialize L20n resources into an object

Categories

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

defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: stas, Assigned: stas)

Details

Attachments

(2 files)

A follow-up to bug 1169361:  the serialized JSON for entries should be an object and not an array with an object.
Comment on attachment 8632024 [details] [review]
[gaia] stasm:1182406-serialize-l20n-to-object > mozilla-b2g:master

https://treeherder.mozilla.org/#/jobs?repo=gaia&revision=5e106e06030cd91a7bc718d01ad44769f837fef0
Attachment #8632024 - Flags: review?(gandalf)
Can you use r? on a PR against l20n.js? The webpack output is so mingled that reviewing this is close to impossible.
Flags: needinfo?(stas)
Flags: needinfo?(stas)
Attachment #8632266 - Flags: review?(gandalf)
Comment on attachment 8632266 [details] [review]
Pull request against l20n.js

Thanks!

I left two minor nits that you may want to consider.
Attachment #8632266 - Flags: review?(gandalf) → review+
Comment on attachment 8632024 [details] [review]
[gaia] stasm:1182406-serialize-l20n-to-object > mozilla-b2g:master

Damn, webpack is making the history of build/l10n/l20n.js worthless. Is there a way to prevent it from mingling module order on each build?
Attachment #8632024 - Flags: review?(gandalf) → review+
I don't suppose there is.  I did like your suggestion of splitting l20n into separate files in build/l10n though.

I'll wait for https://treeherder.mozilla.org/#/jobs?repo=gaia&revision=5a2c517584cd4121d29acf6225f0718a0faf341f to pass and land.
(In reply to Staś Małolepszy :stas from comment #7)
> I don't suppose there is.  I did like your suggestion of splitting l20n into
> separate files in build/l10n though.

Cool. Let's talk about this next week. I like this option as well more than the webpack.
Assignee: nobody → stas
confirming that it fixes the bug
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: