There seem to be an interesting section in Promises doc from 2001 about 
multi-state promises - 
https://www.w3.org/2001/tag/doc/promises-guide#state-transitions

One of the things that we are working on is a spec for loading localization 
resources into HTML, which resembles the example from this chapter.

I was thinking about something like:

linkElement.ready((resource) => {
  console.log(resource.text());
});

and make when the language changes, I'd update the url in the link and the 
callback would get called again when its loaded.

Is there any evolution of that proposal?
What's the current thinking about solving such cases?

zb.
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to