setting languageCode does not impact template language. Emails are sent using default language specified in Firebase console
- 主要言語
- TypeScript
- スター
- 7.8k
- フォーク
- 2.2k
- 平均マージ
- 22時間 28分
- マージ済み PR(30日)
- 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);
```
コントリビューションガイド
調査の方向性
まず、languageCode の代入に続けて sendPasswordResetEmail を使用し、Angular 15、Firebase 9.14.0、@angular/fire 7.5.0 で問題を再現します。その呼び出しを通じて languageCode がどのように渡されるかを追跡し、要求された言語と Firebase Console のテンプレート設定を比較します。languageCode で指定された言語がパスワードリセットメールで使用され、その動作をカバーする回帰テストまたは文書化された制限があれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- angular, firebase, typescript
- 領域
- authentication
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100