Simplify i18n: remove old react-intl artifacts, rename formatMessage to t, replace FormattedMessage with t.rich().

- Rewrite messages.ts to plain string key maps (remove MessageDescriptor)
- Rewrite useMessages hook to expose t from useTranslations() directly
- Rename formatMessage → t across 193 consumer files
- Replace custom FormattedMessage component with next-intl t.rich()
- Update 52 language files to use rich text tags (<b>, <a>)
- Remove all direct imports from @/components/messages in favor of useMessages()

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Mike Cao 2026-02-07 10:10:21 -08:00
parent 80cad6ea65
commit 50edb71687
247 changed files with 1660 additions and 2194 deletions

View file

@ -298,13 +298,13 @@
"bad-request": "Bad request",
"collected-data": "収集されたデータ",
"confirm-delete": "{target}を削除してもよろしいですか?",
"confirm-leave": "{target}から離脱してもよろしいですか?",
"confirm-remove": "{target}を削除してもよろしいですか?",
"confirm-leave": "<b>{target}</b>から離脱してもよろしいですか?",
"confirm-remove": "<b>{target}</b>を削除してもよろしいですか?",
"confirm-reset": "{target}をリセットしてもよろしいですか?",
"delete-team-warning": "チームを削除すると、そのチームが管理しているWebサイトもすべて削除されます。",
"delete-website-warning": "Webサイトのデータがすべて削除されます。",
"error": "未知のエラーが発生しました。",
"event-log": "{url}の{event}",
"event-log": "<a>{url}</a>の<b>{event}</b>",
"forbidden": "Forbidden",
"go-to-settings": "設定に移動する",
"incorrect-username-password": "ユーザー名またはパスワードが間違っています。",
@ -338,6 +338,6 @@
"unauthorized": "Unauthorized",
"user-deleted": "ユーザーが削除されました。",
"viewed-page": "閲覧されたページ",
"visitor-log": "{os}({device})で{browser}を使用している{country}からの訪問者"
"visitor-log": "<b>{os}</b>(<b>{device}</b>)で<b>{browser}</b>を使用している<b>{country}</b>からの訪問者"
}
}