setting languageCode does not impact template language. Emails are sent using default language specified in Firebase console
- 主要语言
- TypeScript
- 星标
- 7.8k
- 派生
- 2.2k
- 平均合并
- 22 小时 28 分钟
- 30 天内合并 PR
- 6
描述
### 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);
```
贡献指南
调研方向
首先使用 Angular 15、Firebase 9.14.0 和 @angular/fire 7.5.0 复现该问题,先进行 languageCode 赋值,再调用 sendPasswordResetEmail。跟踪 languageCode 如何通过该调用传递,并将请求的语言与 Firebase Console 中的模板设置进行比较。当密码重置电子邮件使用通过 languageCode 提供的语言,并且有回归测试或记录在案的限制覆盖此行为时,即视为完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- angular, firebase, typescript
- 领域
- authentication
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100