angular / angular/angularfire

setting languageCode does not impact template language. Emails are sent using default language specified in Firebase console

Open
#3,296 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
7.8k
Forks
2.2k
Avg merge
22h 28m
Merged PRs (30d)
6

Description

### Version info

**Angular:**
15.0.0

**Firebase:**
"version": "9.14.0",

**AngularFire:**
"@angular/fire": "^7.5.0",

### How to reproduce these conditions

**Failing test unit, Stackblitz demonstrating the problem**

**Steps to set up and reproduce**

this.afAuth.languageCode = Promise.resolve('de');
await this.afAuth.sendPasswordResetEmail(passwordResetEmail);

### Expected behavior

Should sent email with defined language

### Actual behavior

Sending an emil with defined language in Firebase console: [Screenshot 2022-11-30 at 11 15 18](https://user-images.githubusercontent.com/3918999/204769562-7887d107-6430-4ed0-a365-f57aa2ce8afb.png)

Detailed explanation:

I am still facing this issue... this.afAuth.languageCode = Promise.resolve(lang); still sends emails with default template language set in firebase console.

any solution anyone?

p.s. I do:

```
this.afAuth.languageCode = Promise.resolve('de');
await this.afAuth.sendPasswordResetEmail(passwordResetEmail);
```

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the issue with Angular 15, Firebase 9.14.0, and @angular/fire 7.5.0 using the languageCode assignment followed by sendPasswordResetEmail. Trace how languageCode is passed through that call and compare the requested language with the Firebase Console template setting. Done means the password-reset email uses the language supplied through languageCode, with a regression test or documented limitation covering the behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
angular, firebase, typescript
Domain
authentication
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.