feat: 'fr' translate by default
Build and Deploy / build-and-push (push) Successful in 1m21s Details

This commit is contained in:
Ludo 2026-05-04 17:07:33 +02:00
parent e081d290c6
commit c5f386490a
2 changed files with 7 additions and 7 deletions

View File

@ -156,8 +156,8 @@
}
.btn-option--active:hover {
background: #9328e8;
border-color: #9328e8;
background: #de6c90;
border-color: #de6c90;
color: white;
}
@ -233,7 +233,7 @@
}
.submit-btn:hover {
background: #9328e8;
background: #de6c90;
}
.cancel-btn {

View File

@ -10,13 +10,13 @@ interface LanguageContextType {
}
const LanguageContext = createContext<LanguageContextType>({
locale: 'en',
t: translations.en,
locale: 'fr',
t: translations.fr,
toggleLocale: () => {},
});
export function LanguageProvider({ children }: { children: ReactNode }) {
const [locale, setLocale] = useState<Locale>('en');
const [locale, setLocale] = useState<Locale>('fr');
const toggleLocale = () => setLocale(l => (l === 'en' ? 'fr' : 'en'));