Throw if no resources are defined for an HTML document

RESOLVED WONTFIX

Status

L20n
HTML Bindings
RESOLVED WONTFIX
4 years ago
4 years ago

People

(Reporter: stas, Unassigned)

Tracking

Details

(Reporter)

Description

4 years ago
Spin off of bug 923670: 

> @@ +133,5 @@
> > +        });
> > +      } else if (scripts.length) {
> > +        ctx.requestLocales();
> > +      } else {
> > +        console.warn('L20n: No resources defined.');
> 
> that got me thinking. So an app with no resources cannot rely on
> DocumentLocalized... should we fire ctx.requestLocales in that case anyway?

I think we should throw so that we don't call collectNodes in this case.
(Reporter)

Comment 1

4 years ago
Related bug 913638 seems to have gone in the opposite direction.
Status: NEW → RESOLVED
Last Resolved: 4 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.