feat: language

parent 603cc873
<div id="sidebar"> <div id="sidebar">
<div class="search"> <div class="search">
<input class="left-search" placeholder=" Search ..." maxlength="2048" name="q" autocomplete="off" <input class="left-search" placeholder=" {{'Search'| trans }} ..." maxlength="2048" name="q" autocomplete="off"
title="Search" title="Search"
type="text" tabindex="1" spellcheck="false" autofocus [(ngModel)]="q" (keyup.enter)="Search(q)"> type="text" tabindex="1" spellcheck="false" autofocus [(ngModel)]="q" (keyup.enter)="Search(q)">
</div> </div>
......
...@@ -276,6 +276,7 @@ export class ElementNavComponent implements OnInit { ...@@ -276,6 +276,7 @@ export class ElementNavComponent implements OnInit {
English() { English() {
this._localStorage.delete('lang'); this._localStorage.delete('lang');
i18n.clear(); i18n.clear();
location.reload();
} }
Language(lan: string) { Language(lan: string) {
...@@ -291,5 +292,6 @@ export class ElementNavComponent implements OnInit { ...@@ -291,5 +292,6 @@ export class ElementNavComponent implements OnInit {
i18n.set(k, data[k]); i18n.set(k, data[k]);
}); });
} }
location.reload();
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment