Closed Bug 1493698 Opened 2 years ago Closed 2 years ago

[remote-dbg-next] Add a helper to localize outside of components

Categories

(DevTools :: about:debugging, enhancement, P1)

enhancement

Tracking

(firefox65 fixed)

RESOLVED FIXED
Firefox 65
Tracking Status
firefox65 --- fixed

People

(Reporter: jdescottes, Assigned: jdescottes)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

Right now all our localization is based on reusing fluent-react Localized and withLocalization helpers. However this means non-component files have no mean of localizing any string. 

A proposal to address this is to expose withLocalization::getString on a l10n.js helper that could be used transparently by actions, reducers, modules etc...

Technically we could pass getString from the topmost component to this helper, but maybe there is a cleaner way to do this.
Priority: P3 → P2
Assignee: nobody → jdescottes
Status: NEW → ASSIGNED
Priority: P2 → P1
Pushed by jdescottes@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/09f652c90688
Add l10n localization helper for new about:debugging;r=daisuke
https://hg.mozilla.org/mozilla-central/rev/09f652c90688
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 65
You need to log in before you can comment on or make changes to this bug.