generated from ludops/ludops-skeleton
feat: 'fr' translate by default
Build and Deploy / build-and-push (push) Successful in 1m21s
Details
Build and Deploy / build-and-push (push) Successful in 1m21s
Details
This commit is contained in:
parent
e081d290c6
commit
c5f386490a
|
|
@ -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 {
|
||||
|
|
@ -465,5 +465,5 @@
|
|||
|
||||
.cancel-btn:hover {
|
||||
background: #f5f5f5;
|
||||
border-color: #bbb;
|
||||
border-color: #bbb;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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'));
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue