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:
@@ -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;
|
||||
Reference in New Issue
Block a user