@sdhupe19 wrote:
My code is
<button ion-button icon-left block (click)=“signInWithGoogle()”>
{{“Log in with Google” | translate}}
import { TranslateService,} from ‘@ngx-translate/core’;
constructor{// delarations here//}
this.lang = ‘en’;
this.translate.setDefaultLang(‘en’);
this.translate.use(‘en’);switchLanguage() {
this.translate.use(this.lang);
}and I am getting an error as
Error: Template parse errors:
The pipe ‘translate’ could not be found ("
{{[ERROR ->]"Log in with Google" | translate}} </button>
Posts: 1
Participants: 1