Questions tagged [gatsby-plugin-intl]

11 questions
3
votes
1 answer

Netlify Deploy Fails

Does anyone know why I'm getting the following error : Verify run directory 10:47:31 PM: ​ 10:47:31 PM: ┌─────────────────────────────┐ 10:47:31 PM: │ Netlify Build │ 10:47:31 PM: └─────────────────────────────┘ 10:47:31 PM: ​ 10:47:31…
2
votes
1 answer

Local images: Editing gatsby schema to convert a local path to a file

I'm using gatsby and I need to display multiple images for a given entity. Image paths are stored on a MySQL table and I'm fetching them just fine. My query looks like this: { mysqlSet(entity_id: {eq: "10270"}) { name images { url …
Chux
  • 1,196
  • 1
  • 9
  • 24
2
votes
1 answer

Adjust slug / routing using gatsby-plugin-intl

I am trying to add multi-language to this gatsbyjs template using the gatsby-plugin-intl. Field level translation: Each field marked by translatable will have a translation and you have a single content item for all translations. Multi-tree…
musicformellons
  • 12,283
  • 4
  • 51
  • 86
1
vote
1 answer

Gatsby page didn't render SSR correctly - Cannot read property 'split' of undefined

I want to make a bilingual form on my website and followed this tutorial. I'm not sure what is undefined here, although I think it has something to do with gatsby-plugin-intl (I thought maybe it's because I don't have a json file for my non-English…
1
vote
0 answers

Gatsby. Gatsby-plugin-intl and framer motion AnimatePresence problem

I need to create multilanguage site and I need to use framer motion to use animations and page transitions. I've used the most popular gatsby plugin for multilanguage functionality gatsby-plugin-intl. To implement page transitions I've used method…
John Smith
  • 1,204
  • 3
  • 22
  • 42
1
vote
1 answer

Gatsby language localization Mdx files with gatsby-plugin-intl

I am trying to localize pages with gatsby-plugin-intl. No problem for .js files as I described below but how should I make it for .mdx files? import React from "react" import { FormattedMessage, injectIntl, navigate } from…
Er.Se
  • 461
  • 3
  • 11
1
vote
0 answers

fetch data during build in gatsby-node.js and retrieve the data during run-time and render it through graqhql

Can someone help how can i do that?. That is the code which i get the data by fetching it, how can i export it to another file and make a query for that and render it in UI? That is the Code: …
Ahura
  • 21
  • 3
1
vote
1 answer

injectIntl causing error after adding gatsby-plugin-layout

In order to translate my site I'm injecting intl like this in my layout.js file: import React from "react"; import { injectIntl } from "gatsby-plugin-intl"; const Layout = ({intl}) => ( {intl.formatMessage({id: "history_text"})} ); export…
Cold_Class
  • 3,214
  • 4
  • 39
  • 82
0
votes
1 answer

How to prevent gatsby-plugin-intl from localize static folder assets' urls

I'm creating a multi-language Gatsby site using gatsby-plugin-intl and routing worked fine, but it introduced some issues with files in static folder. In my gatsby-config.js file I got { resolve: `gatsby-plugin-intl`, options: { …
Massick
  • 41
  • 1
  • 6
0
votes
1 answer

Cannot use gatsby-plugin-intl for single page site

I'm using Gatsby and I want build a single page site, so without create pages. For achieve this I edited gatsby-node.js with the following code: exports.onCreatePage = async ({ page, actions }) => { const { createPage } = actions if (page.path…
sfarzoso
  • 1,356
  • 2
  • 24
  • 65
0
votes
1 answer

How to make a multi languages static site using gatsby-plugin-intl and gatsby markdown?

I am trying to create a static site using gatsby which support two languages, my wish is all the content would be handle by markdown files. I started with the plugin-gatsby-intl using this https://www.gatsbyjs.org/packages/gatsby-plugin-intl/ -work…
helpper
  • 2,058
  • 4
  • 13
  • 32