i18n all the remaining strings.

This commit is contained in:
softsimon
2020-12-03 18:34:19 +07:00
parent 129f122993
commit fb11d73751
39 changed files with 776 additions and 424 deletions

View File

@@ -256,9 +256,9 @@ export class DashboardComponent implements OnInit {
changeLanguage() {
const language = this.languageForm.get('language').value;
this.document.location.href = (language === 'en' ? '/' : '/' + language);
try {
document.cookie = `lang=${language}; expires=Thu, 18 Dec 2050 12:00:00 UTC; path=/`;
} catch (e) { }
this.document.location.href = (language === 'en' ? '/' : '/' + language);
}
}