The message passed in to tfa_email_otp_mail() may not have a langcode specified. This caused a problem in another module making unwarranted assumptions, so I think it's probably not a bug here. But it would prevent issues to default to something.

I added code to get it from $language. It could probably also just default to LanguageInterface::LANGCODE_NOT_SPECIFIED.

Comments

brad.bulger created an issue. See original summary.

brad.bulger’s picture