You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For a client, I'm using this amazing framework to build a fast web app. However, I'm beginning with GraphQL. I noticed that the date is formatted to display months in English. I wanted to know which parameters is necessary to display the date in french.
Environment
Gatsby version: 1.1.27
Node.js version: 8.9.3
Operating System: OS X El Capitan 10.11.6
Is it possible to show how to get this working on my example? I'm trying to sort on the "datumString"which has a format like "01-12-2018" (first of december, 2018).
Description
For a client, I'm using this amazing framework to build a fast web app. However, I'm beginning with GraphQL. I noticed that the date is formatted to display months in English. I wanted to know which parameters is necessary to display the date in french.
Environment
Gatsby version: 1.1.27
Node.js version: 8.9.3
Operating System: OS X El Capitan 10.11.6
File contents (if changed):
gatsby-node.js
:const path = require('path');
exports.createPages = ({ boundActionCreators, graphql }) => {
const { createPage } = boundActionCreators;
}`)
.then(result => {
if (result.errors) {
return Promise.reject(result.errors);
}
}
GraphQL Query :
export const pageQuery = graphql`
query BlogPostByPath($path: String!) {
markdownRemark(frontmatter: { path: { eq: $path } }) {
html
frontmatter {
date(formatString: "DD/MM/YYYY")
path
title
}
`;
Actual result
I just have the month date like DD/MM/YYYY with numbers like 12/05/2017.
Expected behavior
I wanted to show the date like : 12 mai 2017
Thank you in advance for your help,
kind regards,
Maral.
The text was updated successfully, but these errors were encountered: