Skip to content

Instantly share code, notes, and snippets.

@lizzymendivil
Created February 13, 2019 13:09
Show Gist options
  • Save lizzymendivil/67e0384a36a59955dd156e79a40f2866 to your computer and use it in GitHub Desktop.
Save lizzymendivil/67e0384a36a59955dd156e79a40f2866 to your computer and use it in GitHub Desktop.
ngx-translate-app.component.html
<div class="mr-5 mb-5 d-flex justify-content-end">
<button class="mr-2 btn bg-danger text-white text-uppercase" (click)="switchLanguage('en')">{{ 'demo.english' | translate
}}</button>
<button class="btn bg-danger text-white text-uppercase" (click)="switchLanguage('es')">{{ 'demo.spanish' | translate }}</button>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment