Support multiple conditions together with a JS file per locale.

This is a fix for #131 compatible with v3.