Created
April 7, 2019 13:37
-
-
Save theodesp/629bf4c25b2dfd862b5f3e7b192227da to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div> | |
<select formControlName="languages" (change)="changeLanguage($event.target.value)"> | |
<option *ngFor="let lang of languages" [value]="lang" [selected]="language === lang"> | |
<a *ngIf="language !== lang" href="javascript:void(0)" class="link lang-item {{lang}}">{{ '_languages.' + lang | i18nextCap }}</a> | |
<span *ngIf="language === lang" class="current lang-item {{lang}}">{{ '_languages.' + lang | i18nextCap }}</span> | |
</option> | |
</select> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment