Please change the master locale of my repo

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! :slightly_smiling_face:

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:

  1. The master locale change is only recommended when one of the locales is empty and the other locale contains all the desired content. For example, If your current master locale is "fr-fr" and you also have "en-us,". If you only have documents in English in the master locale, we can perform the change to make English the new master locale. However, if both locales have content, the documents from the old master locale and the other locale will be mixed in the new master locale. For instance, if you have documents in English and French, performing the change will result in combining both English and French documents in the new master locale "en-us".
  2. If you intend to change the "Main locale" to a non-standard locale (a locale not listed in the "Translations & locale" settings), it is essential to first create the desired locale in the settings.

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.

@racheal.orukele thanks a lot!

@racheal.orukele

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