mirror of
https://github.com/streamyfin/streamyfin.git
synced 2026-04-12 12:01:58 +01:00
fix: correct invalid BCP 47 language tag in Jellyseerr components
Fix RangeError caused by invalid locale tags (e.g., zh-CN-US) in multiple Jellyseerr components. The locale variable already contains a complete BCP 47 language tag (e.g., zh-CN), so concatenating it with region (e.g., US) creates an invalid tag. Changes: - DetailFacts.tsx: Fix 5 occurrences in date and currency formatting - JellyseerrSeasons.tsx: Fix 1 occurrence in upcoming air date - person/[personId].tsx: Fix 1 occurrence in birthday formatting Total: 3 files, 7 fixes Closes #1130 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -88,14 +88,11 @@ export default function page() {
|
||||
<Text className='opacity-50'>
|
||||
{t("jellyseerr.born")}{" "}
|
||||
{data?.details?.birthday &&
|
||||
new Date(data.details.birthday).toLocaleDateString(
|
||||
`${locale}-${region}`,
|
||||
{
|
||||
year: "numeric",
|
||||
month: "long",
|
||||
day: "numeric",
|
||||
},
|
||||
)}{" "}
|
||||
new Date(data.details.birthday).toLocaleDateString(locale, {
|
||||
year: "numeric",
|
||||
month: "long",
|
||||
day: "numeric",
|
||||
})}{" "}
|
||||
| {data?.details?.placeOfBirth}
|
||||
</Text>
|
||||
</>
|
||||
|
||||
Reference in New Issue
Block a user