Forgot to change variable name from opts.language to opts.lang (now fixed).