I am not able to login to your support ticket system to send a request so I'm sending here.
Please change the default locale of my repo to be Japanese.
Here is the address
https://dreamdrive-next.prismic.io/
Thank you.
I am not able to login to your support ticket system to send a request so I'm sending here.
Please change the default locale of my repo to be Japanese.
Here is the address
https://dreamdrive-next.prismic.io/
Thank you.
Hello @james-dd-34,
Welcome to Prismic community, and thanks for reaching out to us!
We can assist you with the master locale change. Before we proceed, we kindly request that you carefully review the following information and confirm your understanding:
Let us know if you would still like to proceed with the change.
Thank you for your cooperation and understanding.
Racheal.
Hello @racheal.orukele
I can confirm my understanding of the information you provided and would still like you to set the master locale to be Japanese.
Thanks for your help here.
James
I am not able to login to your support ticket system to send a request so I'm sending here.
Please change the default locale of my repo to be Japanese.
Here is the address
https://dreamdrive-next.prismic.io/
Thank you.
Hello James,
We have changed the master locale of your repository.
Please let us know if there is anything else we can help you with.
Thanks,
Racheal.
I can confirm the master locale was correctly set to Japanese. However, for some reason the page still defaults to the English locale that I have added. I'm using a next JS project and have this in my next.config.js
const prismic = require("@prismicio/client");
const sm = require("./slicemachine.config.json");
/** @type {import('next').NextConfig} */
const nextConfig = async () => {
const client = prismic.createClient(sm.repositoryName);
const repository = await client.getRepository();
const locales = repository.languages.map((lang) => lang.id);
return {
reactStrictMode: true,
i18n: {
// These are all the locales you want to support in
// your application
locales,
// This is the default locale you want to be used when visiting
// a non-locale prefixed path e.g. `/hello`
defaultLocale: "ja-jp",
},
};
};
module.exports = nextConfig;
If I got to the home URL in dev then it automatically defaults to 'en-au' which is a second language that I added. Why is it not pointing to the Japanese page?
Hello @james-dd-36,
Your next.config.js file looks okay; the only difference is how the locale variable is used in the docs, but that isn't the problem; I tested it with just the string, and it works fine.
Can you confirm that the documents exist & have been published in both locales? And also, can you share your Route Resolver?
To get documents in both locales, I recommend you copy the content from one locale to another instead of manually creating another document in the new locale. Learn more: Navigate Languages and Copy Content - Guides - Prismic