mirror of
https://github.com/xuthus83/pigallery2.git
synced 2025-01-14 14:43:17 +08:00
Adding URL base to language selector. #548
This commit is contained in:
parent
9b56331f50
commit
a4cdbc9b1c
@ -14,6 +14,6 @@
|
||||
|
||||
</button>
|
||||
<div *dropdownMenu class="dropdown-menu" aria-labelledby="language">
|
||||
<a *ngFor="let lang of languages" class="dropdown-item" href="/{{lang}}">{{lang}}</a>
|
||||
<a *ngFor="let lang of languages" class="dropdown-item" href="{{urlBase}}/{{lang}}">{{lang}}</a>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -12,6 +12,7 @@ export class LanguageComponent {
|
||||
@Input() isDark: boolean;
|
||||
languages: string[] = [];
|
||||
current: string = null;
|
||||
urlBase = Config.Client.urlBase;
|
||||
|
||||
constructor(private cookieService: CookieService) {
|
||||
this.languages = Config.Client.languages.sort();
|
||||
|
Loading…
x
Reference in New Issue
Block a user