feat: add language selection and currency formatting options
This commit is contained in:
parent
698375b1bf
commit
f96a09abc4
7 changed files with 77 additions and 7 deletions
|
@ -1,5 +1,10 @@
|
|||
<p>Name: {{hotel.hotelName}}</p>
|
||||
<p>Description: {{hotel.description}}</p>
|
||||
<p>Price: {{hotel.price}}$</p>
|
||||
<p>Price: {{hotel.price | currency : "EUR" : "symbol" : "2.2-2" : "de-DE"}}</p>
|
||||
<select [ngModel]="selectedLanguage" (ngModelChange)="languageChange($event)">
|
||||
@for (lang of langs; track lang.lang) {
|
||||
<option value="{{lang.lang}}">{{lang.lang}}</option>
|
||||
}
|
||||
</select>
|
||||
<img src="{{hotel.imageUrl}}" alt="Hotel">
|
||||
<p class="border-b border-black">{{hotel.rating}}</p>
|
||||
|
|
Reference in a new issue