export const getStaticProps: GetStaticProps = async (context) => {
const { locale } = context;
const translations = await serverSideTranslations(locale, ["common"]);
console.log(translations._nextI18Next.initialI18nStore)
}
is showing only the ones from the current locale and default locale if it is the case.
this is my next-18next.config.js
file:
const path = require("path");
module.exports = {
i18n: {
defaultLocale: "de",
locales: ["de", "en", "fr", "it"],
},
localePath: path.resolve("./src/locales"),
};
and my locales
look something like this:
I would like to find in the initialI18nStore
all the locales defined by me in the config. Why it isn't showing all of them?