hensei-web/components/about/updates/ContentUpdate2024/index.tsx
Justin Edmund 3d67622353
Fix i18n migration to next-intl (#430)
## Summary
- Fixed translation key format compatibility with next-intl
- Fixed pluralization format from i18next to next-intl format
- Fixed dynamic translation key error handling
- Updated server components to match API response structure
- Fixed useSearchParams import location

## Changes
- Changed pluralization from `{{count}} items` to `{count} items` format
- Added proper error handling for missing translation keys
- Fixed import paths for next-intl hooks
- Fixed PartyPageClient trying to set non-existent appState.parties

## Test plan
- [x] Verified translations render correctly
- [x] Tested pluralization works with different counts
- [x] Confirmed no console errors about missing translations
- [x] Tested party page functionality

🤖 Generated with [Claude Code](https://claude.ai/code)

---------

Co-authored-by: Claude <noreply@anthropic.com>
2025-09-03 16:25:59 -07:00

269 lines
6.6 KiB
TypeScript

import React from 'react'
import { useTranslations } from 'next-intl'
import ContentUpdate from '~components/about/ContentUpdate'
const ContentUpdate2024 = () => {
const updates = useTranslations('updates')
return (
<>
<ContentUpdate
version="2024-05U1"
dateString="2024/05/02"
event="events.content"
newItems={{
weapon: [
'1040026100',
'1040317400',
'1040423100',
'1040119500',
'1040618800',
'1040916300',
],
}}
transcendedItems={{
summon: ['2040034000', '2040046000'],
}}
numNotes={4}
/>
<ContentUpdate
version="2024-04L"
dateString="2024/04/30"
event="events.legfest"
newItems={{
character: ['3040529000', '3040530000'],
weapon: ['1040219200', '1040119400', '1040618700', '1030109000'],
}}
/>
<ContentUpdate
version="2024-04U2"
dateString="2024/04/21"
event="events.content"
newItems={{
character: ['3040525000'],
}}
uncappedItems={{
weapon: ['1040313200'],
}}
/>
<ContentUpdate
version="2024-04F"
dateString="2024/04/15"
event="events.flash"
newItems={{
character: ['3040523000', '3040524000'],
weapon: ['1040119300', '1040423000'],
}}
/>
<ContentUpdate
version="2024-04U1"
dateString="2024/04/07"
event="events.content"
newItems={{
character: ['3040522000'],
weapon: ['1040618600'],
}}
/>
<ContentUpdate
version="2024-03L"
dateString="2024/03/31"
event="events.legfest"
newItems={{
character: ['3040520000', '3040521000'],
weapon: ['1040026000', '1040422900', '1040422800', '1030704700'],
}}
/>
<ContentUpdate
version="2024-03U3"
dateString="2024/03/25"
event="events.content"
transcendedItems={{
summon: ['2040020000', '2040047000'],
}}
newItems={{
weapon: [
'1040119200',
'1040516800',
'1040713400',
'1040219100',
'1040516900',
'1040916200',
],
}}
numNotes={3}
/>
<ContentUpdate
version="2024-03F"
dateString="2024/03/19"
event="events.flash"
newItems={{
weapon: ['1040317200', '1040422600', '1040422700'],
character: ['3040517000', '3040518000', '3040519000'],
}}
/>
<ContentUpdate
version="2024-03U2"
dateString="2024/03/15"
event="events.content"
newItems={{
weapon: ['1040713300'],
character: ['3040516000'],
}}
uncappedItems={{
weapon: ['1040614500'],
}}
/>
<ContentUpdate
version="2024-03U"
dateString="2024/03/10"
event="events.content"
transcendedItems={{
summon: [
'2040094000',
'2040100000',
'2040098000',
'2040084000',
'2040090000',
'2040080000',
],
}}
uncappedItems={{
weapon: [
'1040516200',
'1040915300',
'1040116500',
'1040815800',
'1040710900',
'1040024700',
'1040712600',
'1040116100',
'1040712300',
'1040806000',
'1040515900',
'1040616800',
],
}}
awakenedItems={[
'1040906400',
'1040708700',
'1040212700',
'1040910000',
'1040014300',
'1040207000',
]}
/>
<ContentUpdate
version="2024-02L"
dateString="2024/02/29"
event="events.legfest"
newItems={{
character: ['3040515000', '3040513000', '3040514000'],
weapon: [
'1040025900',
'1040618500',
'1040119100',
'1040025800',
'1030010200',
],
}}
/>
<ContentUpdate
version="2024-02U"
dateString="2024/02/20"
event="events.content"
newItems={{
weapon: ['1040618400'],
}}
raidItems={['dark-rapture-zero']}
numNotes={3}
/>
<ContentUpdate
version="2024-02F"
dateString="2024/02/14"
event="events.flash"
newItems={{
character: ['3040512000', '3040511000'],
weapon: ['1040713200', '1040816400'],
}}
/>
<ContentUpdate
version="2024-01U"
dateString="2024/02/06"
event="events.uncap"
uncappedItems={{
character: ['3040190000'],
}}
/>
<ContentUpdate
version="2024-01L"
dateString="2024/01/31"
event="events.legfest"
newItems={{
character: ['3040509000', '3040510000'],
weapon: ['1040025700', '1040422500', '1040317100', '1030406600'],
}}
numNotes={1}
/>
<ContentUpdate
version="2024-01U3"
dateString="2024/01/18"
event="events.content"
newItems={{
character: ['3040506000'],
}}
uncappedItems={{
character: ['3040313000'],
}}
/>
<ContentUpdate
version="2024-01F"
dateString="2024/01/15"
event="events.flash"
newItems={{
character: ['3040508000', '3040507000'],
weapon: ['1040422400', '1040219000'],
}}
transcendedItems={{
weapon: [
'1040212600',
'1040212500',
'1040310700',
'1040310600',
'1040415100',
'1040415000',
'1040809500',
'1040809400',
'1040911100',
'1040911000',
'1040017100',
'1040017000',
],
}}
/>
<ContentUpdate
version="2024-01U2"
dateString="2024/01/12"
event="events.content"
newItems={{
character: ['3040504000', '3040505000'],
weapon: ['1040618300'],
summon: ['2040426000'],
}}
/>
<ContentUpdate
version="2024-01U"
dateString="2024/01/05"
event="events.content"
newItems={{
weapon: ['1040025400', '1040816300'],
}}
uncappedItems={{
character: ['3040167000', '3040166000'],
}}
numNotes={2}
/>
</>
)
}
export default ContentUpdate2024