Files
cbsnexora/src/app/shared/language-selector/language-selector.component.html
T

25 lines
862 B
HTML

<!--
Copyright since 2025 Mifos Initiative
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at http://mozilla.org/MPL/2.0/.
-->
<mat-form-field id="language-selector" [appearance]="appearance" [class.outlined-variant]="appearance === 'outline'">
@if (showLabel) {
<mat-label>{{ 'labels.inputs.Language' | translate }}</mat-label>
}
<mat-select
[formControl]="languageSelector"
(selectionChange)="setLanguage()"
class="languageselector"
[placeholder]="!showLabel ? ('labels.inputs.Language' | translate) : ''"
>
@for (language of languages; track language) {
<mat-option [value]="language">
{{ 'languages.' + language | translate }}
</mat-option>
}
</mat-select>
</mat-form-field>