Added ability to select language in settings

Fixed locale support so that it actually works at runtime

Removed unused library
This commit is contained in:
Isaac Grynsztein
2020-03-15 14:52:07 -04:00
parent ebd0a419df
commit c7885e8726
6 changed files with 793 additions and 13 deletions

View File

@@ -1,6 +1,15 @@
<h4 i18n="Settings title" mat-dialog-title>Settings</h4>
<!-- <ng-container i18n="Allow subscriptions setting"></ng-container> -->
<mat-dialog-content>
<!-- Language -->
<div>
Language:&nbsp;&nbsp;&nbsp;<mat-select class="locale-select" (selectionChange)="localeSelectChanged($event.value)" [(value)]="initialLocale">
<mat-option *ngFor="let locale of supported_locales" [value]="locale">
{{all_locales[locale]['nativeName']}}
</mat-option>
</mat-select>
</div>
<!-- Host -->
<mat-expansion-panel class="settings-expansion-panel">
<mat-expansion-panel-header>