refactor(frontend): return-types en functie stijl
This commit is contained in:
parent
364ffd3b16
commit
bb6034dff8
1 changed files with 2 additions and 2 deletions
|
@ -13,10 +13,10 @@
|
||||||
]);
|
]);
|
||||||
|
|
||||||
// Logic to change the language of the website to the selected language
|
// Logic to change the language of the website to the selected language
|
||||||
const changeLanguage = (langCode: string) => {
|
function changeLanguage(langCode: string): void {
|
||||||
locale.value = langCode;
|
locale.value = langCode;
|
||||||
localStorage.setItem("user-lang", langCode);
|
localStorage.setItem("user-lang", langCode);
|
||||||
};
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue