diff --git a/packages/gatsby/src/schema/infer-graphql-type.js b/packages/gatsby/src/schema/infer-graphql-type.js index 21a32864f58ca..b699716346169 100644 --- a/packages/gatsby/src/schema/infer-graphql-type.js +++ b/packages/gatsby/src/schema/infer-graphql-type.js @@ -127,6 +127,12 @@ function inferGraphQLType({ measurement years, months, weeks, days, hours, minutes, and seconds.`, }, + locale: { + type: GraphQLString, + description: oneLine` + Configures the locale Moment.js will use to format the date. + `, + }, }, resolve(object, { fromNow, difference, formatString, locale = `en` }) { let date