Upgrade Lingui to v5 (#9905)

This commit is contained in:
Samuel Newman
2026-02-23 20:28:03 +00:00
committed by GitHub
parent 75242b9b1f
commit 9ec06971af
493 changed files with 1298 additions and 936 deletions
+12 -3
View File
@@ -5,8 +5,9 @@ import {
type AppBskyFeedDefs,
type AppBskyGraphDefs,
} from '@atproto/api'
import {msg, Trans} from '@lingui/macro'
import {msg} from '@lingui/core/macro'
import {useLingui} from '@lingui/react'
import {Trans} from '@lingui/react/macro'
import {useQueryClient} from '@tanstack/react-query'
import * as bcp47Match from 'bcp-47-match'
@@ -350,11 +351,19 @@ export function Explore({
])
const topBorder = useMemo(
() => ({type: 'topBorder', key: 'top-border'}) as const,
() =>
({
type: 'topBorder',
key: 'top-border',
}) as const,
[],
)
const trendingTopicsModule = useMemo(
() => ({type: 'trendingTopics', key: 'trending-topics'}) as const,
() =>
({
type: 'trendingTopics',
key: 'trending-topics',
}) as const,
[],
)
const suggestedFollowsModule = useMemo(() => {