Skip to content

armgit / TREK

Public Imported from GitHub
0

The most complete open-source travel planner: real-time collaboration, bookings, budgets, packing lists, journals, offline PWA, SSO and an AI-ready MCP server, with planet-wide place search and routing built in.

fix: i18n chat reply/delete titles, gate collab category settings

Gérnyi Márk1ff85464846c
diff --git a/client/src/components/Collab/CollabChat.tsx b/client/src/components/Collab/CollabChat.tsx
index df2706d31..2afa7552b 100644
--- a/client/src/components/Collab/CollabChat.tsx
+++ b/client/src/components/Collab/CollabChat.tsx
@@ -697,7 +697,7 @@ export default function CollabChat({ tripId, currentUser }: CollabChatProps) {
transition: 'opacity .1s',
...(own ? { left: -6 } : { right: -6 }),
}}>
- <button onClick={() => setReplyTo(msg)} title="Reply" style={{
+ <button onClick={() => setReplyTo(msg)} title={t('collab.chat.reply')} style={{
width: 24, height: 24, borderRadius: '50%', border: 'none',
background: 'var(--accent)', display: 'flex', alignItems: 'center', justifyContent: 'center',
cursor: 'pointer', color: 'var(--accent-text)', padding: 0,
@@ -709,7 +709,7 @@ export default function CollabChat({ tripId, currentUser }: CollabChatProps) {
<Reply size={11} />
</button>
{own && canEdit && (
- <button onClick={() => handleDelete(msg.id)} title="Delete" style={{
+ <button onClick={() => handleDelete(msg.id)} title={t('common.delete')} style={{
width: 24, height: 24, borderRadius: '50%', border: 'none',
background: 'var(--accent)', display: 'flex', alignItems: 'center', justifyContent: 'center',
cursor: 'pointer', color: 'var(--accent-text)', padding: 0,
diff --git a/client/src/i18n/translations/ar.ts b/client/src/i18n/translations/ar.ts
index 391d4489f..1974c6f96 100644
--- a/client/src/i18n/translations/ar.ts
+++ b/client/src/i18n/translations/ar.ts
@@ -1373,6 +1373,7 @@ const ar: Record<string, string | { name: string; category: string }[]> = {
'collab.chat.today': 'اليوم',
'collab.chat.yesterday': 'أمس',
'collab.chat.deletedMessage': 'حذف رسالة',
+ 'collab.chat.reply': 'رد',
'collab.chat.loadMore': 'تحميل الرسائل الأقدم',
'collab.chat.justNow': 'الآن',
'collab.chat.minutesAgo': 'منذ {n} د',
diff --git a/client/src/i18n/translations/br.ts b/client/src/i18n/translations/br.ts
index 203d618ed..5ae294323 100644
--- a/client/src/i18n/translations/br.ts
+++ b/client/src/i18n/translations/br.ts
@@ -1313,6 +1313,7 @@ const br: Record<string, string | { name: string; category: string }[]> = {
'collab.chat.today': 'Hoje',
'collab.chat.yesterday': 'Ontem',
'collab.chat.deletedMessage': 'apagou uma mensagem',
+ 'collab.chat.reply': 'Responder',
'collab.chat.loadMore': 'Carregar mensagens antigas',
'collab.chat.justNow': 'agora mesmo',
'collab.chat.minutesAgo': 'há {n} min',
diff --git a/client/src/i18n/translations/cs.ts b/client/src/i18n/translations/cs.ts
index d34d38398..a57b3b773 100644
--- a/client/src/i18n/translations/cs.ts
+++ b/client/src/i18n/translations/cs.ts
@@ -1373,6 +1373,7 @@ const cs: Record<string, string | { name: string; category: string }[]> = {
'collab.chat.today': 'Dnes',
'collab.chat.yesterday': 'Včera',
'collab.chat.deletedMessage': 'smazal zprávu',
+ 'collab.chat.reply': 'Odpovědět',
'collab.chat.loadMore': 'Načíst starší zprávy',
'collab.chat.justNow': 'právě teď',
'collab.chat.minutesAgo': 'před {n} min',
diff --git a/client/src/i18n/translations/de.ts b/client/src/i18n/translations/de.ts
index b54abd893..f998bfd82 100644
--- a/client/src/i18n/translations/de.ts
+++ b/client/src/i18n/translations/de.ts
@@ -1370,6 +1370,7 @@ const de: Record<string, string | { name: string; category: string }[]> = {
'collab.chat.today': 'Heute',
'collab.chat.yesterday': 'Gestern',
'collab.chat.deletedMessage': 'hat eine Nachricht gelöscht',
+ 'collab.chat.reply': 'Antworten',
'collab.chat.loadMore': 'Ältere Nachrichten laden',
'collab.chat.justNow': 'gerade eben',
'collab.chat.minutesAgo': 'vor {n} Min.',
diff --git a/client/src/i18n/translations/en.ts b/client/src/i18n/translations/en.ts
index 97243fc62..15aba3bc7 100644
--- a/client/src/i18n/translations/en.ts
+++ b/client/src/i18n/translations/en.ts
@@ -1366,6 +1366,7 @@ const en: Record<string, string | { name: string; category: string }[]> = {
'collab.chat.today': 'Today',
'collab.chat.yesterday': 'Yesterday',
'collab.chat.deletedMessage': 'deleted a message',
+ 'collab.chat.reply': 'Reply',
'collab.chat.loadMore': 'Load older messages',
'collab.chat.justNow': 'just now',
'collab.chat.minutesAgo': '{n}m ago',
diff --git a/client/src/i18n/translations/es.ts b/client/src/i18n/translations/es.ts
index 056f20295..48dd65a71 100644
--- a/client/src/i18n/translations/es.ts
+++ b/client/src/i18n/translations/es.ts
@@ -1323,6 +1323,7 @@ const es: Record<string, string> = {
'collab.chat.today': 'Hoy',
'collab.chat.yesterday': 'Ayer',
'collab.chat.deletedMessage': 'eliminó un mensaje',
+ 'collab.chat.reply': 'Responder',
'collab.chat.loadMore': 'Cargar mensajes anteriores',
'collab.chat.justNow': 'justo ahora',
'collab.chat.minutesAgo': 'hace {n} min',
diff --git a/client/src/i18n/translations/fr.ts b/client/src/i18n/translations/fr.ts
index 87d97cb03..3550b4ff7 100644
--- a/client/src/i18n/translations/fr.ts
+++ b/client/src/i18n/translations/fr.ts
@@ -1369,6 +1369,7 @@ const fr: Record<string, string> = {
'collab.chat.today': 'Aujourd\'hui',
'collab.chat.yesterday': 'Hier',
'collab.chat.deletedMessage': 'a supprimé un message',
+ 'collab.chat.reply': 'Répondre',
'collab.chat.loadMore': 'Charger les messages précédents',
'collab.chat.justNow': 'à l\'instant',
'collab.chat.minutesAgo': 'il y a {n} min',
diff --git a/client/src/i18n/translations/hu.ts b/client/src/i18n/translations/hu.ts
index b747da7f5..3815d7395 100644
--- a/client/src/i18n/translations/hu.ts
+++ b/client/src/i18n/translations/hu.ts
@@ -1329,6 +1329,7 @@ const hu: Record<string, string | { name: string; category: string }[]> = {
'collab.chat.today': 'Ma',
'collab.chat.yesterday': 'Tegnap',
'collab.chat.deletedMessage': 'törölt egy üzenetet',
+ 'collab.chat.reply': 'Válasz',
'collab.chat.loadMore': 'Korábbi üzenetek betöltése',
'collab.chat.justNow': 'éppen most',
'collab.chat.minutesAgo': '{n} perce',
diff --git a/client/src/i18n/translations/it.ts b/client/src/i18n/translations/it.ts
index 160d35789..530ff91e9 100644
--- a/client/src/i18n/translations/it.ts
+++ b/client/src/i18n/translations/it.ts
@@ -1368,6 +1368,7 @@ const it: Record<string, string | { name: string; category: string }[]> = {
'collab.chat.today': 'Oggi',
'collab.chat.yesterday': 'Ieri',
'collab.chat.deletedMessage': 'ha eliminato un messaggio',
+ 'collab.chat.reply': 'Rispondi',
'collab.chat.loadMore': 'Carica messaggi precedenti',
'collab.chat.justNow': 'ora',
'collab.chat.minutesAgo': '{n}m fa',
diff --git a/client/src/i18n/translations/nl.ts b/client/src/i18n/translations/nl.ts
index af09c9ca4..7f8a98554 100644
--- a/client/src/i18n/translations/nl.ts
+++ b/client/src/i18n/translations/nl.ts
@@ -1369,6 +1369,7 @@ const nl: Record<string, string> = {
'collab.chat.today': 'Vandaag',
'collab.chat.yesterday': 'Gisteren',
'collab.chat.deletedMessage': 'heeft een bericht verwijderd',
+ 'collab.chat.reply': 'Beantwoorden',
'collab.chat.loadMore': 'Oudere berichten laden',
'collab.chat.justNow': 'zojuist',
'collab.chat.minutesAgo': '{n} min. geleden',
diff --git a/client/src/i18n/translations/ru.ts b/client/src/i18n/translations/ru.ts
index 7f030dadd..cd23c2d13 100644
--- a/client/src/i18n/translations/ru.ts
+++ b/client/src/i18n/translations/ru.ts
@@ -1369,6 +1369,7 @@ const ru: Record<string, string> = {
'collab.chat.today': 'Сегодня',
'collab.chat.yesterday': 'Вчера',
'collab.chat.deletedMessage': 'удалил(а) сообщение',
+ 'collab.chat.reply': 'Ответить',
'collab.chat.loadMore': 'Загрузить старые сообщения',
'collab.chat.justNow': 'только что',
'collab.chat.minutesAgo': '{n} мин. назад',
diff --git a/client/src/i18n/translations/zh.ts b/client/src/i18n/translations/zh.ts
index 5c5d646d6..0e887df9d 100644
--- a/client/src/i18n/translations/zh.ts
+++ b/client/src/i18n/translations/zh.ts
@@ -1369,6 +1369,7 @@ const zh: Record<string, string> = {
'collab.chat.today': '今天',
'collab.chat.yesterday': '昨天',
'collab.chat.deletedMessage': '删除了一条消息',
+ 'collab.chat.reply': '回复',
'collab.chat.loadMore': '加载更早的消息',
'collab.chat.justNow': '刚刚',
'collab.chat.minutesAgo': '{n} 分钟前',