This allows to keep the same Javascript calls to load languages, so it does not require any change for extensions to benefit from this. Closes #1350. Fixes #2209.