Update resourceLoader.js

Configurable locale resolve logic