Locale set to master returns false

Master locale returns false

I have added the feature of two locales to a site for a client and currently is not having French as main language, I have followed the doumentation and set the main locale as french but it is not working.
This is the site

Ideally I would like the site to figure it out by itself what locale use, but I had trouble with that. Is there a documentation about it?

I would much appreciate the help. Thanks.

Impacted feature

Currently main locale is set as secondary,

What steps have you taken to resolve this issue already?

Following the documentation I have set the master locale inside setings but this has not modify the return of the cdn API.

Errors

The API CDN returns English as main locale, but French it should be.

Your Role

Solo developer of the site

Hosting provider

Vercel

Package.json file

{
	"name": "nextjs-starter-prismic-minimal-ts",
	"version": "0.1.0",
	"private": true,
	"license": "Apache-2.0",
	"author": "Prismic <contact@prismic.io> (https://prismic.io)",
	"scripts": {
		"dev": "concurrently \"npm:next:dev\" \"npm:slicemachine\" --names \"next,slicemachine\" --prefix-colors blue,magenta",
		"next:dev": "next dev",
		"build": "rm -rf .next/cache/fetch-cache && next build",
		"start": "next start",
		"lint": "next lint",
		"slicemachine": "start-slicemachine",
		"format": "prettier --write ."
	},
	"dependencies": {
		"@prismicio/client": "^7.3.1",
		"@prismicio/next": "^1.5.0",
		"@prismicio/react": "^2.7.3",
		"@types/node": "^20.8.9",
		"@types/react": "^18.2.33",
		"@types/react-dom": "^18.2.14",
		"@vercel/speed-insights": "^1.0.12",
		"clsx": "^2.1.0",
		"framer-motion": "^11.0.6",
		"next": "^14.2.7",
		"nodemailer": "^6.9.13",
		"react": "^18.3.1",
		"react-dom": "^18.3.1",
		"swiper": "^11.0.7",
		"tailwind-merge": "^2.2.1",
		"typescript": "^5.2.2"
	},
	"devDependencies": {
		"@slicemachine/adapter-next": "^0.3.35",
		"@types/nodemailer": "^6.4.14",
		"@typescript-eslint/eslint-plugin": "^8.2.0",
		"autoprefixer": "^10.4.17",
		"concurrently": "^8.2.2",
		"eslint": "^8.57.0",
		"eslint-config-next": "^14.2.7",
		"eslint-config-prettier": "^9.1.0",
		"eslint-plugin-jsx-a11y": "^6.9.0",
		"eslint-plugin-simple-import-sort": "^12.1.1",
		"eslint-plugin-unused-imports": "^4.1.3",
		"postcss": "^8.4.35",
		"slice-machine-ui": "^1.24.0",
		"tailwindcss": "^3.4.1"
	}
}

Steps to reproduce

Will have to login to the site and go to settings / Transalations and Locales

Hi @joa_palacios,

I've just had a go at this to test the behavior - you should be able to see the change being reflected if you retrigger the repository's API (by publishing a document for example, or any similar action).

Let me know if that solves it for you!

Thanks, it is now reflected the update.

1 Like