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 {
|
.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 {
|
||||||
|
|
|
||||||
|
|
@ -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'));
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue