File tree Expand file tree Collapse file tree 3 files changed +12
-12
lines changed Expand file tree Collapse file tree 3 files changed +12
-12
lines changed Original file line number Diff line number Diff line change 33 " next/babel"
44 ],
55 "plugins" : [" @lingui/babel-plugin-lingui-macro" ]
6- }
6+ }
Original file line number Diff line number Diff line change 1- const nextConfig = require ( " ./next.config" )
1+ const nextConfig = require ( ' ./next.config' )
22
33/** @type {import('@lingui/conf').LinguiConfig } */
44module . 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+ }
Original file line number Diff line number Diff line change 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) {
1515export 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+ }
You can’t perform that action at this time.
0 commit comments