{"record":{"id":"2cf74ca2c5f06360","repo":"gatsbyjs/gatsby","slug":"localesmissing","errorCode":"LocalesMissing","errorMessage":"Please check if your localeFilter is configured properly. Locales '${allLocales.map(item => item.code).join(`,`)}' were found but were filtered down to none.","messagePattern":"Please check if your localeFilter is configured properly\\. Locales '(.+?)' were found but were filtered down to none\\.","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/gatsby-source-contentful/src/source-nodes.js","lineNumber":174,"sourceCode":"  } = await fetchContent({ syncToken, pluginConfig, reporter })\n\n  const contentTypeItems = await cache.get(CACHE_CONTENT_TYPES)\n\n  const locales = allLocales.filter(pluginConfig.get(`localeFilter`))\n  reporter.verbose(\n    `Default locale: ${defaultLocale}. All locales: ${allLocales\n      .map(({ code }) => code)\n      .join(`, `)}`\n  )\n  if (allLocales.length !== locales.length) {\n    reporter.verbose(\n      `After plugin.options.localeFilter: ${locales\n        .map(({ code }) => code)\n        .join(`, `)}`\n    )\n  }\n  if (locales.length === 0) {\n    reporter.panic({\n      id: CODES.LocalesMissing,\n      context: {\n        sourceMessage: `Please check if your localeFilter is configured properly. Locales '${allLocales\n          .map(item => item.code)\n          .join(`,`)}' were found but were filtered down to none.`,\n      },\n    })\n  }\n\n  // Update syncToken\n  const nextSyncToken = currentSyncData?.nextSyncToken\n\n  actions.setPluginStatus({\n    [CACHE_SYNC_TOKEN]: nextSyncToken,\n  })\n\n  fetchActivity.end()\n","sourceCodeStart":156,"sourceCodeEnd":192,"githubUrl":"https://github.com/gatsbyjs/gatsby/blob/8b06340921ffdf23125a365b9c9923690cb62ce6/packages/gatsby-source-contentful/src/source-nodes.js#L156-L192","documentation":"Error \"Please check if your localeFilter is configured properly. Locales '${allLocales.map(item => item.code).join(`,`)}' were found but were filtered down to none.\" thrown in gatsbyjs/gatsby.","triggerScenarios":"Thrown at packages/gatsby-source-contentful/src/source-nodes.js:174 when the library encounters an invalid state.","commonSituations":"Occurs when the localeFilter plugin option filters out every locale returned by the Contentful space. Adjust localeFilter in gatsby-config.js so at least one of the listed locales passes.","solutions":["Remove or fix the localeFilter option so at least one locale remains.","Use one of the listed locale codes exactly (they are case-sensitive) in your localeFilter."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"8b06340921ffdf23125a365b9c9923690cb62ce6","analyzedAt":"2026-08-13T02:36:21.405Z","schemaVersion":2},"datasetVersion":"2026-08-13T04:17:16.726Z"}