Skip to content

chore: Use jpn for Japanese #34

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed

Conversation

neet
Copy link
Owner

@neet neet commented Jul 3, 2025

No description provided.

@Copilot Copilot AI review requested due to automatic review settings July 3, 2025 02:56
Copy link

vercel bot commented Jul 3, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
tunci ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 3, 2025 3:05am

Copy link
Contributor

@Copilot 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.

Pull Request Overview

Updates the Japanese locale code from ja to jpn across routing, middleware, components, API, and sitemap, and adds a redirect from /ja to /jpn.

  • Switches all occurrences of the “ja” locale identifier to “jpn” in configuration, code, and link paths
  • Updates middleware matcher, routing definitions, sitemap URLs, and redirect rules
  • Adjusts UI components and form defaults to use the new jpn code

Reviewed Changes

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

Show a summary per file
File Description
src/middleware.ts Matcher updated to include jpn instead of ja
src/i18n/routing.ts Added jpn to locales array
src/i18n.ts Exports updated to use jpn
src/components/Entry/Entry.tsx Blockquote lang attribute switched to jpn
src/components/ContentInfo/ContentInfo.tsx Language links updated to point to /jpn and rel/hreflang attributes removed
src/components/Composer/LanguageSelector.tsx Segment value changed from ja to jpn
src/components/Composer/ComposerInput.tsx Checks and lang prop updated for jpn
src/components/Composer/Composer.tsx Source/target logic updated for jpn
src/app/sitemap.ts Sitemap entries updated to /jpn
src/app/[locale]/page.tsx Default source value switched to jpn
src/app/[locale]/_server.ts Server logic now checks source === "jpn"
src/api/translate.ts Prompt logic updated to use jpn
next.config.mjs Added redirect from /ja to /jpn
Comments suppressed due to low confidence (2)

src/components/Entry/Entry.tsx:49

  • Using lang="jpn" may not be recognized by browsers and assistive technologies; consider using the standard BCP 47 two-letter code "ja" for HTML lang attributes while mapping internally to "jpn".
          <blockquote lang="jpn">{parse(translationHTML)}</blockquote>

src/components/ContentInfo/ContentInfo.tsx:30

  • Removing rel="alternate" and hrefLang attributes from language switch links may break SEO and language discovery; consider restoring those attributes on each to retain proper hreflang metadata.
                  <NextLink href="/ain-Latn">Aynu itak</NextLink>

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.

1 participant