mirror of
https://github.com/umami-software/umami.git
synced 2026-02-15 01:55:36 +01:00
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:
parent
80cad6ea65
commit
50edb71687
247 changed files with 1660 additions and 2194 deletions
|
|
@ -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": "Баг устгах нь мөн түүнд харъяалагдах вебүүдийг устгах болно.",
|
||||
"delete-website-warning": "Энэ вебтэй холбоотой бүх өгөгдөл устах болно.",
|
||||
"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": "{country} улсаас {os} {device} дээр {browser} хөтөч ашиглан орсон"
|
||||
"visitor-log": "<b>{country}</b> улсаас <b>{os}</b> <b>{device}</b> дээр <b>{browser}</b> хөтөч ашиглан орсон"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue