Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to set default Moment.js locale #3837

Closed
kripod opened this issue Feb 3, 2018 · 3 comments
Closed

Add option to set default Moment.js locale #3837

kripod opened this issue Feb 3, 2018 · 3 comments

Comments

@kripod
Copy link
Contributor

kripod commented Feb 3, 2018

It would be convenient if there was a global option (e.g. in gatsby-config.json) to set the default locale used for Moment.js in GraphQL queries. Websites made for a non-English audience are harder to maintain because something like locale: "hu" shall always be added to date queries.

@pieh
Copy link
Contributor

pieh commented Feb 3, 2018

Here's where gatsby sets default locale - https://github.com/gatsbyjs/gatsby/blob/master/packages/gatsby/src/schema/infer-graphql-type.js#L150 if anyone want to try adding this feature

@sedubois
Copy link
Contributor

sedubois commented Feb 3, 2018

Ideally this should be integrated in an i18n plugin, for websites which need to support multiple locales.

@KyleAMathews
Copy link
Contributor

Due to the high volume of issues, we're closing out older ones without recent activity. Please open a new issue if you need help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants