"use client" import * as React from "react" import { useTranslation, type Translations, } from "@/components/language-selector" import { Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarMenu, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, } from "@/styles/base-nova/ui-rtl/menubar" const translations: Translations = { en: { dir: "ltr", values: { file: "File", newTab: "New Tab", newWindow: "New Window", newIncognitoWindow: "New Incognito Window", share: "Share", emailLink: "Email link", messages: "Messages", notes: "Notes", print: "Print...", edit: "Edit", undo: "Undo", redo: "Redo", find: "Find", searchTheWeb: "Search the web", findItem: "Find...", findNext: "Find Next", findPrevious: "Find Previous", cut: "Cut", copy: "Copy", paste: "Paste", view: "View", bookmarksBar: "Bookmarks Bar", fullUrls: "Full URLs", reload: "Reload", forceReload: "Force Reload", toggleFullscreen: "Toggle Fullscreen", hideSidebar: "Hide Sidebar", profiles: "Profiles", andy: "Andy", benoit: "Benoit", luis: "Luis", editProfile: "Edit...", addProfile: "Add Profile...", }, }, ar: { dir: "rtl", values: { file: "ملف", newTab: "علامة تبويب جديدة", newWindow: "نافذة جديدة", newIncognitoWindow: "نافذة التصفح المتخفي الجديدة", share: "مشاركة", emailLink: "رابط البريد الإلكتروني", messages: "الرسائل", notes: "الملاحظات", print: "طباعة...", edit: "تعديل", undo: "تراجع", redo: "إعادة", find: "بحث", searchTheWeb: "البحث على الويب", findItem: "بحث...", findNext: "البحث التالي", findPrevious: "البحث السابق", cut: "قص", copy: "نسخ", paste: "لصق", view: "عرض", bookmarksBar: "شريط الإشارات المرجعية", fullUrls: "عناوين URL الكاملة", reload: "إعادة تحميل", forceReload: "إعادة تحميل قسري", toggleFullscreen: "تبديل وضع ملء الشاشة", hideSidebar: "إخفاء الشريط الجانبي", profiles: "الملفات الشخصية", andy: "Andy", benoit: "Benoit", luis: "Luis", editProfile: "تعديل...", addProfile: "إضافة ملف شخصي...", }, }, he: { dir: "rtl", values: { file: "קובץ", newTab: "כרטיסייה חדשה", newWindow: "חלון חדש", newIncognitoWindow: "חלון גלישה בסתר חדש", share: "שתף", emailLink: "קישור אימייל", messages: "הודעות", notes: "הערות", print: "הדפס...", edit: "ערוך", undo: "בטל", redo: "בצע שוב", find: "מצא", searchTheWeb: "חפש באינטרנט", findItem: "מצא...", findNext: "מצא הבא", findPrevious: "מצא הקודם", cut: "גזור", copy: "העתק", paste: "הדבק", view: "תצוגה", bookmarksBar: "סרגל סימניות", fullUrls: "כתובות URL מלאות", reload: "רענן", forceReload: "רענן בכוח", toggleFullscreen: "החלף מסך מלא", hideSidebar: "הסתר סרגל צד", profiles: "פרופילים", andy: "Andy", benoit: "Benoit", luis: "Luis", editProfile: "ערוך...", addProfile: "הוסף פרופיל...", }, }, } export function MenubarRtl() { const { dir, t, language } = useTranslation(translations, "ar") const [profile, setProfile] = React.useState("benoit") return ( {t.file} {t.newTab} ⌘T {t.newWindow} ⌘N {t.newIncognitoWindow} {t.share} {t.emailLink} {t.messages} {t.notes} {t.print} ⌘P {t.edit} {t.undo} ⌘Z {t.redo} ⇧⌘Z {t.find} {t.searchTheWeb} {t.findItem} {t.findNext} {t.findPrevious} {t.cut} {t.copy} {t.paste} {t.view} {t.bookmarksBar} {t.fullUrls} {t.reload} ⌘R {t.forceReload} ⇧⌘R {t.toggleFullscreen} {t.hideSidebar} {t.profiles} {t.andy} {t.benoit} {t.luis} {t.editProfile} {t.addProfile} ) }