Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

feat(nav): add Arabic translation for collapsed nav rail

Steven Enamakel74acee259b3d
diff --git a/app/src/components/layout/shell/CollapsedNavRail.tsx b/app/src/components/layout/shell/CollapsedNavRail.tsx
index a608a2ee21..5735fb9aba 100644
--- a/app/src/components/layout/shell/CollapsedNavRail.tsx
+++ b/app/src/components/layout/shell/CollapsedNavRail.tsx
@@ -3,7 +3,6 @@ import { useMemo } from 'react';
import { useLocation, useNavigate } from 'react-router-dom';
import { NAV_TABS, type NavTab } from '../../../config/navConfig';
-import { registry } from '../../../lib/commands/registry';
import { useT } from '../../../lib/i18n/I18nContext';
import { openUrl } from '../../../utils/openUrl';
import { trackEvent } from '../../../services/analytics';
diff --git a/app/src/components/layout/shell/SidebarHeader.test.tsx b/app/src/components/layout/shell/SidebarHeader.test.tsx
index ca46f79d42..0b44f71eae 100644
--- a/app/src/components/layout/shell/SidebarHeader.test.tsx
+++ b/app/src/components/layout/shell/SidebarHeader.test.tsx
@@ -19,9 +19,9 @@ vi.mock('../../../lib/i18n/I18nContext', () => ({ useT: () => ({ t: (k: string)
describe('SidebarHeader', () => {
beforeEach(() => vi.clearAllMocks());
- it('renders Keyboard Shortcuts, Search, Settings, and Collapse buttons', () => {
+ it('renders Discord, Search, Settings, and Collapse buttons', () => {
renderWithProviders(<SidebarHeader />, { initialEntries: ['/home'] });
- expect(screen.getByRole('button', { name: 'shortcuts.title' })).toBeInTheDocument();
+ expect(screen.getByRole('button', { name: 'nav.discord' })).toBeInTheDocument();
expect(
screen.getByRole('button', { name: 'shortcuts.action.commandPalette' })
).toBeInTheDocument();
@@ -33,19 +33,17 @@ describe('SidebarHeader', () => {
expect(screen.queryByRole('button', { name: 'nav.home' })).not.toBeInTheDocument();
});
- it('shortcuts button opens the keyboard-shortcuts help directory', () => {
- const runAction = vi.spyOn(registry, 'runAction').mockReturnValue(true);
+ it('Discord button opens the community invite in the browser', () => {
renderWithProviders(<SidebarHeader />, { initialEntries: ['/home'] });
- fireEvent.click(screen.getByRole('button', { name: 'shortcuts.title' }));
- expect(runAction).toHaveBeenCalledWith('meta.keyboard-shortcuts');
- runAction.mockRestore();
+ fireEvent.click(screen.getByRole('button', { name: 'nav.discord' }));
+ expect(openUrl).toHaveBeenCalledWith('https://discord.tinyhumans.ai');
});
- it('shortcuts button has correct data-analytics-id', () => {
+ it('Discord button has correct data-analytics-id', () => {
renderWithProviders(<SidebarHeader />, { initialEntries: ['/home'] });
- expect(screen.getByRole('button', { name: 'shortcuts.title' })).toHaveAttribute(
+ expect(screen.getByRole('button', { name: 'nav.discord' })).toHaveAttribute(
'data-analytics-id',
- 'sidebar-header-shortcuts'
+ 'sidebar-header-discord'
);
});
diff --git a/app/src/lib/i18n/ar.ts b/app/src/lib/i18n/ar.ts
index ac16657867..bde4595fef 100644
--- a/app/src/lib/i18n/ar.ts
+++ b/app/src/lib/i18n/ar.ts
@@ -294,6 +294,7 @@ const messages: TranslationMap = {
'assistant.faceMode.turnOn': 'عرض الوجه',
'assistant.faceMode.turnOff': 'إخفاء الوجه',
'nav.connections': 'الاتصالات',
+ 'nav.discord': 'انضم إلى Discord الخاص بنا',
'nav.memory': 'الذكاء',
'nav.alerts': 'التنبيهات',
'nav.rewards': 'المكافآت',
diff --git a/app/src/lib/i18n/bn.ts b/app/src/lib/i18n/bn.ts
index 34f3e3e1de..30775b2467 100644
--- a/app/src/lib/i18n/bn.ts
+++ b/app/src/lib/i18n/bn.ts
@@ -306,6 +306,7 @@ const messages: TranslationMap = {
'assistant.faceMode.turnOn': 'মাসকট দেখান',
'assistant.faceMode.turnOff': 'মাসকট লুকান',
'nav.connections': 'সংযোগ',
+ 'nav.discord': 'আমাদের Discord-এ যোগ দিন',
'nav.memory': 'ইন্টেলিজেন্স',
'nav.alerts': 'সতর্কতা',
'nav.rewards': 'পুরস্কার',
diff --git a/app/src/lib/i18n/de.ts b/app/src/lib/i18n/de.ts
index 4453ea62d4..3348573852 100644
--- a/app/src/lib/i18n/de.ts
+++ b/app/src/lib/i18n/de.ts
@@ -325,6 +325,7 @@ const messages: TranslationMap = {
'assistant.faceMode.turnOn': 'Maskottchen anzeigen',
'assistant.faceMode.turnOff': 'Maskottchen ausblenden',
'nav.connections': 'Verbindungen',
+ 'nav.discord': 'Unserem Discord beitreten',
'nav.memory': 'Intelligenz',
'nav.alerts': 'Benachrichtigungen',
'nav.rewards': 'Belohnungen',
diff --git a/app/src/lib/i18n/en.ts b/app/src/lib/i18n/en.ts
index 09dcc81d1d..744b4165cc 100644
--- a/app/src/lib/i18n/en.ts
+++ b/app/src/lib/i18n/en.ts
@@ -15,6 +15,7 @@ const en: TranslationMap = {
'assistant.faceMode.turnOn': 'Show mascot face',
'assistant.faceMode.turnOff': 'Hide mascot face',
'nav.connections': 'Connections',
+ 'nav.discord': 'Join our Discord',
'nav.memory': 'Intelligence',
'nav.alerts': 'Alerts',
'nav.rewards': 'Rewards',
diff --git a/app/src/lib/i18n/es.ts b/app/src/lib/i18n/es.ts
index ac47e830a6..02a6873407 100644
--- a/app/src/lib/i18n/es.ts
+++ b/app/src/lib/i18n/es.ts
@@ -314,6 +314,7 @@ const messages: TranslationMap = {
'assistant.faceMode.turnOn': 'Mostrar mascota',
'assistant.faceMode.turnOff': 'Ocultar mascota',
'nav.connections': 'Conexiones',
+ 'nav.discord': 'Únete a nuestro Discord',
'nav.memory': 'Inteligencia',
'nav.alerts': 'Alertas',
'nav.rewards': 'Recompensas',
diff --git a/app/src/lib/i18n/fr.ts b/app/src/lib/i18n/fr.ts
index a9a90f0f6c..50c27235f3 100644
--- a/app/src/lib/i18n/fr.ts
+++ b/app/src/lib/i18n/fr.ts
@@ -322,6 +322,7 @@ const messages: TranslationMap = {
'assistant.faceMode.turnOn': 'Afficher la mascotte',
'assistant.faceMode.turnOff': 'Masquer la mascotte',
'nav.connections': 'Connexions',
+ 'nav.discord': 'Rejoindre notre Discord',
'nav.memory': 'Intelligence',
'nav.alerts': 'Alertes',
'nav.rewards': 'Récompenses',
diff --git a/app/src/lib/i18n/hi.ts b/app/src/lib/i18n/hi.ts
index cece800ca5..e93c63968b 100644
--- a/app/src/lib/i18n/hi.ts
+++ b/app/src/lib/i18n/hi.ts
@@ -308,6 +308,7 @@ const messages: TranslationMap = {
'assistant.faceMode.turnOn': 'मैस्कट दिखाएं',
'assistant.faceMode.turnOff': 'मैस्कट छुपाएं',
'nav.connections': 'कनेक्शन',
+ 'nav.discord': 'हमारे Discord से जुड़ें',
'nav.memory': 'इंटेलिजेंस',
'nav.alerts': 'अलर्ट',
'nav.rewards': 'रिवॉर्ड',
diff --git a/app/src/lib/i18n/id.ts b/app/src/lib/i18n/id.ts
index 0a2e755033..505ebc2365 100644
--- a/app/src/lib/i18n/id.ts
+++ b/app/src/lib/i18n/id.ts
@@ -312,6 +312,7 @@ const messages: TranslationMap = {
'assistant.faceMode.turnOn': 'Tampilkan maskot',
'assistant.faceMode.turnOff': 'Sembunyikan maskot',
'nav.connections': 'Koneksi',
+ 'nav.discord': 'Gabung Discord kami',
'nav.memory': 'Memori',
'nav.alerts': 'Peringatan',
'nav.rewards': 'Hadiah',
diff --git a/app/src/lib/i18n/it.ts b/app/src/lib/i18n/it.ts
index 0670c3dfab..bc84d6e2e2 100644
--- a/app/src/lib/i18n/it.ts
+++ b/app/src/lib/i18n/it.ts
@@ -315,6 +315,7 @@ const messages: TranslationMap = {
'assistant.faceMode.turnOn': 'Mostra mascotte',
'assistant.faceMode.turnOff': 'Nascondi mascotte',
'nav.connections': 'Connessioni',
+ 'nav.discord': 'Unisciti al nostro Discord',
'nav.memory': 'Intelligenza',
'nav.alerts': 'Avvisi',
'nav.rewards': 'Premi',
diff --git a/app/src/lib/i18n/ko.ts b/app/src/lib/i18n/ko.ts
index 7627399281..97babc3d2a 100644
--- a/app/src/lib/i18n/ko.ts
+++ b/app/src/lib/i18n/ko.ts
@@ -302,6 +302,7 @@ const messages: TranslationMap = {
'assistant.faceMode.turnOn': '마스코트 표시',
'assistant.faceMode.turnOff': '마스코트 숨기기',
'nav.connections': '연결',
+ 'nav.discord': 'Discord 참여하기',
'nav.memory': '인텔리전스',
'nav.alerts': '알림',
'nav.rewards': '보상',
diff --git a/app/src/lib/i18n/pl.ts b/app/src/lib/i18n/pl.ts
index 933de953f1..68b165246a 100644
--- a/app/src/lib/i18n/pl.ts
+++ b/app/src/lib/i18n/pl.ts
@@ -316,6 +316,7 @@ const messages: TranslationMap = {
'assistant.faceMode.turnOn': 'Pokaż maskotka',
'assistant.faceMode.turnOff': 'Ukryj maskotka',
'nav.connections': 'Połączenia',
+ 'nav.discord': 'Dołącz do naszego Discorda',
'nav.memory': 'Inteligencja',
'nav.alerts': 'Alerty',
'nav.rewards': 'Nagrody',
diff --git a/app/src/lib/i18n/pt.ts b/app/src/lib/i18n/pt.ts
index 67c0108a72..f986550a28 100644
--- a/app/src/lib/i18n/pt.ts
+++ b/app/src/lib/i18n/pt.ts
@@ -310,6 +310,7 @@ const messages: TranslationMap = {
'assistant.faceMode.turnOn': 'Mostrar mascote',
'assistant.faceMode.turnOff': 'Ocultar mascote',
'nav.connections': 'Conexões',
+ 'nav.discord': 'Entrar no nosso Discord',
'nav.memory': 'Inteligência',
'nav.alerts': 'Alertas',
'nav.rewards': 'Recompensas',
diff --git a/app/src/lib/i18n/ru.ts b/app/src/lib/i18n/ru.ts
index 1f535d91ff..d45b586911 100644
--- a/app/src/lib/i18n/ru.ts
+++ b/app/src/lib/i18n/ru.ts
@@ -312,6 +312,7 @@ const messages: TranslationMap = {
'assistant.faceMode.turnOn': 'Показать маскота',
'assistant.faceMode.turnOff': 'Скрыть маскота',
'nav.connections': 'Подключения',
+ 'nav.discord': 'Присоединиться к нашему Discord',
'nav.memory': 'Интеллект',
'nav.alerts': 'Оповещения',
'nav.rewards': 'Награды',
diff --git a/app/src/lib/i18n/zh-CN.ts b/app/src/lib/i18n/zh-CN.ts
index 427c274880..7d76bbc893 100644
--- a/app/src/lib/i18n/zh-CN.ts
+++ b/app/src/lib/i18n/zh-CN.ts
@@ -279,6 +279,7 @@ const messages: TranslationMap = {
'assistant.faceMode.turnOn': '显示形象',
'assistant.faceMode.turnOff': '隐藏形象',
'nav.connections': '连接',
+ 'nav.discord': '加入我们的 Discord',
'nav.memory': '记忆',
'nav.alerts': '通知',
'nav.rewards': '奖励',