feat: language

parent 603cc873
<div id="sidebar">
<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"
type="text" tabindex="1" spellcheck="false" autofocus [(ngModel)]="q" (keyup.enter)="Search(q)">
</div>
......
......@@ -276,6 +276,7 @@ export class ElementNavComponent implements OnInit {
English() {
this._localStorage.delete('lang');
i18n.clear();
location.reload();
}
Language(lan: string) {
......@@ -291,5 +292,6 @@ export class ElementNavComponent implements OnInit {
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