Skip to content

Conversation

@payam-zahedi
Copy link
Member

No description provided.

@payam-zahedi payam-zahedi requested a review from Copilot March 2, 2025 08:56
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR Overview

This PR implements image path optimizations for member files and updates related code to support locale-specific routing and schema validation.

  • Updated image paths in member markdown files for both English and Farsi content
  • Enhanced navigation.ts to generate localized URLs using a new locale parameter
  • Refactored the config schema for the member collection to dynamically validate the image property

Reviewed Changes

File Description
src/content/member/en/abolfazlirani.md Updated image path for the member profile
src/content/member/en/payamzahedi95.md Updated image path for the member profile
src/navigation.ts Updated function signature and URL generation for locale routing
src/content/member/fa/abolfazlirani.md Updated image path for the member profile
src/content/config.ts Refactored schema definition to use dynamic image validation
src/content/member/fa/payamzahedi95.md Updated image path and minor formatting changes in profile markdown

Copilot reviewed 15 out of 15 changed files in this pull request and generated no comments.

Comments suppressed due to low confidence (1)

src/navigation.ts:38

  • The comment above still mentions passing only a translation function. Update the comment to reflect the new 'locale' parameter.
export function headerData(locale: string, translation: TranslationValues) {

@payam-zahedi payam-zahedi merged commit b8164b1 into main Mar 2, 2025
4 checks passed
@payam-zahedi payam-zahedi deleted the feat/image-opt branch March 2, 2025 09:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants