Skip to content
This repository has been archived by the owner on Dec 30, 2024. It is now read-only.

use gatsby-plugin-react-intl instead #589

Merged
merged 1 commit into from
Sep 20, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion __tests__/community.spec.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react'
import renderer from 'react-test-renderer'
import { IntlContextProvider } from 'gatsby-plugin-intl'
import { IntlContextProvider } from 'gatsby-plugin-react-intl'
import messages from '../src/intl/en.json'
import Community from '../src/components/Community'

Expand Down
2 changes: 1 addition & 1 deletion __tests__/i18n-operation.spec.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react'
import renderer from 'react-test-renderer'
import { IntlContextProvider } from 'gatsby-plugin-intl'
import { IntlContextProvider } from 'gatsby-plugin-react-intl'
import messages from '../src/intl/en.json'
import I18nOperation from '../src/components/I18nOperation'

Expand Down
2 changes: 1 addition & 1 deletion __tests__/product.spec.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react'
import renderer from 'react-test-renderer'
import { IntlContextProvider } from 'gatsby-plugin-intl'
import { IntlContextProvider } from 'gatsby-plugin-react-intl'
import messages from '../src/intl/en.json'
import Product from '../src/components/Product'

Expand Down
2 changes: 1 addition & 1 deletion __tests__/slido.spec.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react'
import renderer from 'react-test-renderer'
import { IntlContextProvider } from 'gatsby-plugin-intl'
import { IntlContextProvider } from 'gatsby-plugin-react-intl'
import messages from '../src/intl/en.json'
import Slide from '../src/components/Slide'

Expand Down
2 changes: 1 addition & 1 deletion __tests__/work.spec.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react'
import renderer from 'react-test-renderer'
import { IntlContextProvider } from 'gatsby-plugin-intl'
import { IntlContextProvider } from 'gatsby-plugin-react-intl'
import messages from '../src/intl/en.json'
import Work from '../src/components/Work'

Expand Down
2 changes: 1 addition & 1 deletion gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ module.exports = {
},
`gatsby-plugin-typescript`,
{
resolve: `gatsby-plugin-intl`,
resolve: `gatsby-plugin-react-intl`,
options: {
path: `${__dirname}/src/intl`,
languages: [`en`, `ja`],
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"gatsby-image": "2.11.0",
"gatsby-plugin-google-adsense": "1.1.3",
"gatsby-plugin-google-analytics": "2.11.0",
"gatsby-plugin-intl": "0.3.3",
"gatsby-plugin-react-intl": "1.3.0",
"gatsby-plugin-manifest": "2.12.1",
"gatsby-plugin-react-helmet": "4.14.0",
"gatsby-plugin-react-svg": "3.0.1",
Expand Down
2 changes: 1 addition & 1 deletion src/components/Card/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { FC } from 'react'
import { useIntl } from 'gatsby-plugin-intl'
import { useIntl } from 'gatsby-plugin-react-intl'
import * as SC from './index.module.scss'
import { SiteMetadataTypes } from '../../types'
import { NekoButton } from 'nekohack-ui'
Expand Down
2 changes: 1 addition & 1 deletion src/components/Community/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { FC } from 'react'
import { useIntl } from 'gatsby-plugin-intl'
import { useIntl } from 'gatsby-plugin-react-intl'

type CommunityProps = {
data: Array<unknown>
Expand Down
2 changes: 1 addition & 1 deletion src/components/Footer/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { FC } from 'react'
import { useIntl } from 'gatsby-plugin-intl'
import { useIntl } from 'gatsby-plugin-react-intl'
import * as SC from './index.module.scss'

const Footer: FC = () => {
Expand Down
2 changes: 1 addition & 1 deletion src/components/Introduction/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { FC } from 'react'
import { useIntl } from 'gatsby-plugin-intl'
import { useIntl } from 'gatsby-plugin-react-intl'

type IntroductionProps = {
data: any
Expand Down
2 changes: 1 addition & 1 deletion src/components/Nav/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { FC } from 'react'
import { IntlContextConsumer, changeLocale } from 'gatsby-plugin-intl'
import { IntlContextConsumer, changeLocale } from 'gatsby-plugin-react-intl'
import * as SC from './index.module.scss'

const languageName: {
Expand Down
2 changes: 1 addition & 1 deletion src/components/Payment/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { useState } from 'react'
import { useIntl } from 'gatsby-plugin-intl'
import { useIntl } from 'gatsby-plugin-react-intl'
import { NekoButton } from 'nekohack-ui'
import * as SC from './index.module.scss'

Expand Down
2 changes: 1 addition & 1 deletion src/components/Product/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { FC } from 'react'
import { useIntl } from 'gatsby-plugin-intl'
import { useIntl } from 'gatsby-plugin-react-intl'

type ProductProps = {
data: Array<{
Expand Down
2 changes: 1 addition & 1 deletion src/components/Redirect/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react'
import { injectIntl } from 'gatsby-plugin-intl'
import { injectIntl } from 'gatsby-plugin-react-intl'
import SEO from '../SEO'

const Redirect = ({ intl }: any) => {
Expand Down
2 changes: 1 addition & 1 deletion src/components/Slide/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { FC } from 'react'
import { useIntl } from 'gatsby-plugin-intl'
import { useIntl } from 'gatsby-plugin-react-intl'
import dayjs from 'dayjs'

type SlideProps = {
Expand Down
2 changes: 1 addition & 1 deletion src/components/Work/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { FC } from 'react'
import { useIntl } from 'gatsby-plugin-intl'
import { useIntl } from 'gatsby-plugin-react-intl'

type WorkProps = {
data: Array<unknown>
Expand Down