Added language switching component. This component will render a dropdown or buttons for language selection and update the language globally when changed.

This commit is contained in:
K
2025-06-19 16:19:37 +05:30
parent 5484b122a1
commit 64a34fdf0d
+11
View File
@@ -0,0 +1,11 @@
import React from "react";
const LanguageSwitcher = ({ currentLanguage, onChangeLanguage }) => (
<select value={currentLanguage} onChange={e => onChangeLanguage(e.target.value)}>
<option value="en">English</option>
<option value="fr">Français</option>
{/* Add more languages as needed */}
</select>
);
export default LanguageSwitcher;