language implementation MERMS
This commit is contained in:
+10
-1
@@ -400,4 +400,13 @@ export default function Home() {
|
||||
</Layout>
|
||||
</>
|
||||
)
|
||||
}
|
||||
}
|
||||
export async function getStaticProps({ locale }) {
|
||||
const { getMessages } = await import('../utils/getMessages')
|
||||
return {
|
||||
props: {
|
||||
locale,
|
||||
messages: await getMessages(locale),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user