Skip to content

Commit 50bad5c

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent d05c823 commit 50bad5c

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

.babelrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
"next/babel"
44
],
55
"plugins": ["@lingui/babel-plugin-lingui-macro"]
6-
}
6+
}

lingui.config.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
const nextConfig = require("./next.config")
1+
const nextConfig = require('./next.config')
22

33
/** @type {import('@lingui/conf').LinguiConfig} */
44
module.exports = {
55
locales: nextConfig.i18n.locales,
6-
pseudoLocale: "pseudo",
6+
pseudoLocale: 'pseudo',
77
sourceLocale: nextConfig.i18n.defaultLocale,
88
fallbackLocales: {
9-
default: "en",
9+
default: 'en',
1010
},
1111
catalogs: [
1212
{
13-
path: "src/locales/{locale}",
14-
include: ["src/"],
13+
path: 'src/locales/{locale}',
14+
include: ['src/'],
1515
},
1616
],
17-
}
17+
}

src/i18n.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { i18n, Messages } from "@lingui/core"
2-
import { useRouter } from "next/router"
3-
import { useEffect } from "react"
1+
import { i18n, Messages } from '@lingui/core'
2+
import { useRouter } from 'next/router'
3+
import { useEffect } from 'react'
44

55
/**
66
* Load messages for requested locale and activate it.
@@ -15,7 +15,7 @@ export async function loadCatalog(locale: string) {
1515
export function useLinguiInit(messages: Messages) {
1616
const router = useRouter()
1717
const locale = router.locale || router.defaultLocale!
18-
const isClient = typeof window !== "undefined"
18+
const isClient = typeof window !== 'undefined'
1919

2020
if (!isClient && locale !== i18n.locale) {
2121
// there is single instance of i18n on the server
@@ -36,4 +36,4 @@ export function useLinguiInit(messages: Messages) {
3636
}, [locale])
3737

3838
return i18n
39-
}
39+
}

0 commit comments

Comments
 (0)