i18nによる日本語、英語の多言語対応 - コードレビューフィードバック #1990
Draft
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
対応Issue
resolve #0
概要
next-i18nextを使用した日本語・英語の多言語対応実装に対するコードレビューを実施。全体的な実装パターンは良好だが、以下の重要な問題を発見:
validate.tsのバリデーションメッセージがi18n未対応(日英を\nで連結)getStaticPropsが欠落実装詳細
レビューで確認した実装
✅ 良好な実装
next-i18nextの基本設定(config、HOC、getStaticProps)useXxxTexts)による翻訳テキスト取得の統一LanguageSwitcherコンポーネントの適切な配置labelKeyベースのリストデータ構造への変更現状(NG):
問題点:
推奨修正:
約50箇所の修正が必要。
test_pr.tsxとtest_venuemap.tsxにgetStaticPropsが欠落。翻訳が動作しない。追加が必要:
統計
画面スクリーンショット等
N/A(コードレビューのみ)
テスト項目
validate.tsのバリデーションメッセージを翻訳キーベースに修正getStaticPropsを追加備考
改善提案(優先度低)
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.