Minor: use constant, indent
Implement #1499 "Send action: support language parameter"

Also move currentFRResources and currentFormResources.
Implement #1500 "Calculate using xxf:instance('fr-language-instance') doesn't update properly"