> if I understand correctly, you'll retranslate all each time a resource will be retrieved ?

No, this is done only when the last resource is loaded, see this line:
```javascript
if (gResourceCount >= langCount) { 
```
the name `langCount` might not be fortunate