Closed Bug 809303 Opened 12 years ago Closed 12 years ago

If the lib finds a recursive import it does not fallback to another locale

Categories

(L20n :: JS Library, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: zbraniecki, Unassigned)

References

Details

Currently, if we encounter a recursive import we just stop and throw a towel.
I believe we should fallback to another locale if possible.

Related to bug 801663
Depends on: 801663
Hmm, I thought we were already doing the right thing here.

Looking at handleException [1], it does seem like it calls invalidate on NESTED_ERROR.

Maybe you hit a different bug?

[1] https://github.com/l20n/l20n.js/blob/master/lib/l20n.js#L752
yeah, that's WFM. The lib works properly, but the test was limited and didn't actually test if we loaded the fallback locale.

Extended the test
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.