import getConfig from "next/config" ; export function getLocales ( ) { const config = getConfig ( ) ; return config . publicRuntimeConfig . locales ; } export function getDefaultLocale ( ) { const config = getConfig ( ) ; return config . publicRuntimeConfig . defaultLocale ; }