From 5d1b5d5fda311003d0ae20e27a06d6bd443554be Mon Sep 17 00:00:00 2001 From: David Date: Fri, 16 Oct 2020 19:12:52 +0200 Subject: [PATCH] feat(firebase-x): add setLanguageCode method for auth (#3548) Co-authored-by: david --- src/@ionic-native/plugins/firebase-x/index.ts | 21 ++++++++++++------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/src/@ionic-native/plugins/firebase-x/index.ts b/src/@ionic-native/plugins/firebase-x/index.ts index 7a230ddd26..721b847829 100644 --- a/src/@ionic-native/plugins/firebase-x/index.ts +++ b/src/@ionic-native/plugins/firebase-x/index.ts @@ -169,7 +169,7 @@ export class FirebaseX extends IonicNativePlugin { getId(): Promise { return; } - + /** * Get the current FCM user. * @return {Promise} @@ -178,7 +178,7 @@ export class FirebaseX extends IonicNativePlugin { getCurrentUser(): Promise { return; } - + /** * Reload the current FCM user. * @return {Promise} @@ -526,13 +526,18 @@ export class FirebaseX extends IonicNativePlugin { * code {string} - verification code. Will only be present if instantVerification is true. Always undefined on iOS. */ @Cordova({ - callbackOrder: 'reverse' + callbackOrder: 'reverse', }) - verifyPhoneNumber( - phoneNumber: string, - timeOutDuration: number, - fakeVerificationCode?: string - ): Promise { + verifyPhoneNumber(phoneNumber: string, timeOutDuration: number, fakeVerificationCode?: string): Promise { + return; + } + + /** + * Switch current authentification system language, for example, the phone sms code. + * @param lang - language to change, ex: 'fr' for french + */ + @Cordova() + setLanguageCode(lang: string): Promise { return; }