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 { .btn-option--active:hover {
background: #9328e8; background: #de6c90;
border-color: #9328e8; border-color: #de6c90;
color: white; color: white;
} }
@ -233,7 +233,7 @@
} }
.submit-btn:hover { .submit-btn:hover {
background: #9328e8; background: #de6c90;
} }
.cancel-btn { .cancel-btn {
@ -465,5 +465,5 @@
.cancel-btn:hover { .cancel-btn:hover {
background: #f5f5f5; background: #f5f5f5;
border-color: #bbb; border-color: #bbb;
} }

View File

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