Introduce i18n
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
import { serverSideTranslations } from 'next-i18next/serverSideTranslations'
|
||||
|
||||
export function getI18NProps(
|
||||
locale: string = 'en-US',
|
||||
nameSpaces: string[] = []
|
||||
) {
|
||||
return serverSideTranslations(locale, ['common', ...nameSpaces])
|
||||
}
|
||||
Reference in New Issue
Block a user