angular / angular/angularfire

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

Đang mở
#3,296 4 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
TypeScript
Star
7.8k
Fork
2.2k
Merge trung bình
22 giờ 28 phút
Pull request đã merge (30 ngày)
6

Mô tả

### 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);
```

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

Bắt đầu bằng cách tái hiện vấn đề với Angular 15, Firebase 9.14.0 và @angular/fire 7.5.0 bằng cách gán languageCode, sau đó gọi sendPasswordResetEmail. Theo dõi cách languageCode được truyền qua lời gọi đó và so sánh ngôn ngữ được yêu cầu với cài đặt mẫu trong Firebase Console. Hoàn tất khi email đặt lại mật khẩu sử dụng ngôn ngữ được cung cấp qua languageCode, kèm theo một bài kiểm thử hồi quy hoặc một giới hạn được ghi rõ trong tài liệu bao quát hành vi này.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
angular, firebase, typescript
Lĩnh vực
authentication
Loại issue
Lỗi
Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
35/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.