chore(frontend): set default locale to en
This commit is contained in:
parent
4693bc5737
commit
ad9468bbb6
2 changed files with 4 additions and 4 deletions
|
|
@ -10,8 +10,8 @@ import "./globals.css"
|
||||||
import { Suspense } from "react"
|
import { Suspense } from "react"
|
||||||
|
|
||||||
export const metadata: Metadata = {
|
export const metadata: Metadata = {
|
||||||
title: "GoHorse Jobs - Encontre sua próxima oportunidade",
|
title: "GoHorseJobs - Find your next opportunity",
|
||||||
description: "Conectamos candidatos e empresas de forma rápida e direta",
|
description: "Connecting candidates and companies quickly and directly",
|
||||||
generator: "v0.app",
|
generator: "v0.app",
|
||||||
icons: {
|
icons: {
|
||||||
icon: "/logohorse.png",
|
icon: "/logohorse.png",
|
||||||
|
|
@ -26,7 +26,7 @@ export default function RootLayout({
|
||||||
children: React.ReactNode
|
children: React.ReactNode
|
||||||
}>) {
|
}>) {
|
||||||
return (
|
return (
|
||||||
<html lang="pt-BR">
|
<html lang="en">
|
||||||
<body className={`font-sans ${GeistSans.variable} ${GeistMono.variable} antialiased`}>
|
<body className={`font-sans ${GeistSans.variable} ${GeistMono.variable} antialiased`}>
|
||||||
<I18nProvider>
|
<I18nProvider>
|
||||||
<NotificationProvider>
|
<NotificationProvider>
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ const dictionaries: Record<Locale, typeof en> = {
|
||||||
const I18nContext = createContext<I18nContextType | null>(null);
|
const I18nContext = createContext<I18nContextType | null>(null);
|
||||||
|
|
||||||
export function I18nProvider({ children }: { children: ReactNode }) {
|
export function I18nProvider({ children }: { children: ReactNode }) {
|
||||||
const [locale, setLocale] = useState<Locale>('pt-BR');
|
const [locale, setLocale] = useState<Locale>('en');
|
||||||
|
|
||||||
const t = useCallback((key: string, params?: Record<string, string | number>): string => {
|
const t = useCallback((key: string, params?: Record<string, string | number>): string => {
|
||||||
const keys = key.split('.');
|
const keys = key.split('.');
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue