mirror of
https://github.com/umami-software/umami.git
synced 2026-02-16 10:35:35 +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": "{event} في {url}",
|
||||
"event-log": "<b>{event}</b> في <a>{url}</a>",
|
||||
"forbidden": "Forbidden",
|
||||
"go-to-settings": "الذهاب إلى الإعدادات",
|
||||
"incorrect-username-password": "اسم المستخدم او كلمة المرور غير صحيحة.",
|
||||
|
|
@ -338,6 +338,6 @@
|
|||
"unauthorized": "Unauthorized",
|
||||
"user-deleted": "تم حذف المستخدم.",
|
||||
"viewed-page": "شوهدت الصفحة",
|
||||
"visitor-log": "زائر من {country} يستخدم {browser} على {os} {device}"
|
||||
"visitor-log": "زائر من <b>{country}</b> يستخدم <b>{browser}</b> على <b>{os}</b> <b>{device}</b>"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue