diff --git a/README.md b/README.md index 39e6f19..434b7b6 100644 --- a/README.md +++ b/README.md @@ -448,7 +448,7 @@ After a change, check light and dark, each preset, `rtl`, and the `topbar` layou - missing keys, empty lines and dropped `:placeholders`, across all locales. A key passed as a variable (`t(orderStatuses[status].label)`) is not checked: add those strings to the catalogue yourself. -- **Languages:** English and French ship. To add a locale: +- **Languages:** English, French, Spanish and Arabic ship. Arabic (like any right-to-left language) switches the layout to right to left unless the user picked a direction. To add a locale: 1. Copy every `en.json`. 2. Add `lang//*.php`; start from the French ones. 3. Register the locale in `config/app.php` under `available_locales`. diff --git a/THEMING.md b/THEMING.md index 0dd0110..a774fd0 100644 --- a/THEMING.md +++ b/THEMING.md @@ -15,7 +15,7 @@ How the admin panel re-skins and re-shapes itself. Governed by over `resources/js/{layouts,components,pages,hooks}` and every `app-modules/*/resources/js` (color rules also cover `resources/js/lib` and the `app.tsx`/`ssr.tsx` entry points; the vendored shadcn components in -`resources/js/components/ui` get the color rules only). Structural sizes come from tokens too: +`resources/js/components/ui` are covered too). Structural sizes come from tokens too: `--header-height` and `--content-max-width` (boxed layout). A genuinely-directional exception is silenced with `// theme-lint-allow-next-line ` on the line above. @@ -67,10 +67,11 @@ prop) — enumerated options only, no free-form layout: | `sidebar_collapsible` | `offcanvas` · `icon` · `none` | | `content_width` | `fluid` · `boxed` | | `header` | `sticky` · `static` | -| `direction` | `ltr` · `rtl` | +| `direction` | `ltr` · `rtl` (unset, it follows the locale: Arabic is `rtl`) | `AdminLayout` is the **single interpreter** of this config (sidebar variants -via the shadcn Sidebar primitive as-is; the topbar variant composed from +via the shadcn Sidebar primitive, whose `side` is logical: `sidebar-left` is +the reading start, so the right in `rtl`; the topbar variant composed from shadcn primitives; Radix `DirectionProvider` wired from `direction`). No page, component, or module may branch on layout config — modules render into the content region and are layout-agnostic. diff --git a/app-modules/Api/lang/ar.json b/app-modules/Api/lang/ar.json new file mode 100644 index 0000000..88f48e6 --- /dev/null +++ b/app-modules/Api/lang/ar.json @@ -0,0 +1,26 @@ +{ + "API tokens": "رموز API", + "Copy your new token now. You won't be able to see it again.": "انسخ رمزك الجديد الآن، فلن تتمكن من رؤيته مرة أخرى.", + "New API token": "رمز API جديد", + "Copy token": "نسخ الرمز", + "Create an API token": "إنشاء رمز API", + "Send it as a Bearer token to /api/v1. It can only do what the permissions you tick allow, and never more than you can.": "أرسله كرمز Bearer إلى /api/v1. لا يمكنه سوى ما تسمح به الصلاحيات التي تحددها، ولا يتجاوز أبدًا ما يمكنك أنت فعله.", + "e.g. Reporting script": "مثال: سكربت التقارير", + "Expires": "تاريخ الانتهاء", + "In :days days": "خلال :days يوم", + "Clear all": "إلغاء تحديد الكل", + "Select all": "تحديد الكل", + "Create token": "إنشاء الرمز", + "Your tokens": "رموزك", + "Revoke a token you no longer use, or one that may have leaked.": "ألغِ أي رمز لم تعد تستخدمه أو ربما تسرّب.", + "You have no API tokens.": "ليس لديك رموز API.", + "expires :date": "ينتهي في :date", + "never expires": "لا ينتهي أبدًا", + ":count permission|:count permissions": ":count صلاحية|:count صلاحية|صلاحيتان|:count صلاحيات|:count صلاحية|:count صلاحية", + "Revoke token": "إلغاء الرمز", + "Anything using :name will stop working.": "سيتوقف كل ما يستخدم :name عن العمل.", + "Token revoked.": "أُلغي الرمز.", + "api-token-created": "إنشاء رمز API", + "api-token-revoked": "إلغاء رمز API", + "Revoke the token :name": "إلغاء الرمز :name" +} diff --git a/app-modules/Api/lang/es.json b/app-modules/Api/lang/es.json new file mode 100644 index 0000000..527cf99 --- /dev/null +++ b/app-modules/Api/lang/es.json @@ -0,0 +1,26 @@ +{ + "API tokens": "Tokens de API", + "Copy your new token now. You won't be able to see it again.": "Copia tu nuevo token ahora. No podrás volver a verlo.", + "New API token": "Nuevo token de API", + "Copy token": "Copiar token", + "Create an API token": "Crear un token de API", + "Send it as a Bearer token to /api/v1. It can only do what the permissions you tick allow, and never more than you can.": "Envíalo como token Bearer a /api/v1. Solo puede hacer lo que permiten los permisos que marques, y nunca más de lo que puedes hacer tú.", + "e.g. Reporting script": "p. ej., Script de reportes", + "Expires": "Vencimiento", + "In :days days": "En :days días", + "Clear all": "Desmarcar todo", + "Select all": "Marcar todo", + "Create token": "Crear token", + "Your tokens": "Tus tokens", + "Revoke a token you no longer use, or one that may have leaked.": "Revoca un token que ya no uses o que pueda haberse filtrado.", + "You have no API tokens.": "No tienes tokens de API.", + "expires :date": "vence el :date", + "never expires": "no vence nunca", + ":count permission|:count permissions": ":count permiso|:count permisos", + "Revoke token": "Revocar token", + "Anything using :name will stop working.": "Todo lo que use :name dejará de funcionar.", + "Token revoked.": "Token revocado.", + "api-token-created": "Token de API creado", + "api-token-revoked": "Token de API revocado", + "Revoke the token :name": "Revocar el token :name" +} diff --git a/app-modules/Audit/lang/ar.json b/app-modules/Audit/lang/ar.json new file mode 100644 index 0000000..01e9abb --- /dev/null +++ b/app-modules/Audit/lang/ar.json @@ -0,0 +1,20 @@ +{ + ":count field|:count fields": ":count حقل|:count حقل|حقلان|:count حقول|:count حقلًا|:count حقل", + "Audit log": "سجل التدقيق", + "Causer": "المنفّذ", + "Changes": "التغييرات", + "Date": "التاريخ", + "Event": "الحدث", + "Log": "السجل", + "No activity found.": "لم يُعثر على أي نشاط.", + "Search audit log...": "البحث في سجل التدقيق…", + "Subject": "العنصر", + "Recent activity": "النشاط الأخير", + "Changes to your account": "التغييرات على حسابك", + "No one has changed your account.": "لم يغيّر أحد حسابك.", + ":name created your account": "أنشأ :name حسابك", + ":name updated your account": "حدّث :name حسابك", + ":name signed in as you": "سجّل :name الدخول بهويتك", + ":name changed your account": "غيّر :name حسابك", + "An administrator": "أحد المسؤولين" +} diff --git a/app-modules/Audit/lang/es.json b/app-modules/Audit/lang/es.json new file mode 100644 index 0000000..ea5cd25 --- /dev/null +++ b/app-modules/Audit/lang/es.json @@ -0,0 +1,20 @@ +{ + ":count field|:count fields": ":count campo|:count campos", + "Audit log": "Registro de auditoría", + "Causer": "Autor", + "Changes": "Cambios", + "Date": "Fecha", + "Event": "Evento", + "Log": "Registro", + "No activity found.": "No se encontró actividad.", + "Search audit log...": "Buscar en el registro…", + "Subject": "Objeto", + "Recent activity": "Actividad reciente", + "Changes to your account": "Cambios en tu cuenta", + "No one has changed your account.": "Nadie ha modificado tu cuenta.", + ":name created your account": ":name creó tu cuenta", + ":name updated your account": ":name actualizó tu cuenta", + ":name signed in as you": ":name inició sesión como tú", + ":name changed your account": ":name modificó tu cuenta", + "An administrator": "Un administrador" +} diff --git a/app-modules/Catalog/lang/ar.json b/app-modules/Catalog/lang/ar.json new file mode 100644 index 0000000..01656d3 --- /dev/null +++ b/app-modules/Catalog/lang/ar.json @@ -0,0 +1,28 @@ +{ + "SKU": "رمز المنتج", + "Price": "السعر", + "Published": "منشور", + "Draft": "مسودة", + "Products": "المنتجات", + "Search products...": "البحث عن منتجات…", + "Create product": "إنشاء منتج", + "No products found.": "لم يُعثر على منتجات.", + "Delete product": "حذف المنتج", + "this product": "هذا المنتج", + "Add a new product to the catalog.": "أضف منتجًا جديدًا إلى الكتالوج.", + "Product name": "اسم المنتج", + "e.g. WIDGET-001": "مثال: WIDGET-001", + "Price (in cents)": "السعر (بالسنتات)", + "Optional product description": "وصف المنتج (اختياري)", + "Edit product": "تعديل المنتج", + "Update the product details.": "حدّث تفاصيل المنتج.", + "Product created.": "أُنشئ المنتج.", + "Product updated.": "حُدّث المنتج.", + "Product deleted.": "حُذف المنتج.", + "Product published.": "نُشر المنتج.", + "Delete selected products": "حذف المنتجات المحددة", + "This will permanently delete :count product and cannot be undone.|This will permanently delete :count products and cannot be undone.": "سيؤدي هذا إلى حذف :count منتج نهائيًا، ولا يمكن التراجع عن ذلك.|سيؤدي هذا إلى حذف :count منتج نهائيًا، ولا يمكن التراجع عن ذلك.|سيؤدي هذا إلى حذف منتجين نهائيًا، ولا يمكن التراجع عن ذلك.|سيؤدي هذا إلى حذف :count منتجات نهائيًا، ولا يمكن التراجع عن ذلك.|سيؤدي هذا إلى حذف :count منتجًا نهائيًا، ولا يمكن التراجع عن ذلك.|سيؤدي هذا إلى حذف :count منتج نهائيًا، ولا يمكن التراجع عن ذلك.", + ":count product deleted.|:count products deleted.": "حُذف :count منتج.|حُذف :count منتج.|حُذف منتجان.|حُذفت :count منتجات.|حُذف :count منتجًا.|حُذف :count منتج.", + "published": "نشر", + "Catalog": "الكتالوج" +} diff --git a/app-modules/Catalog/lang/es.json b/app-modules/Catalog/lang/es.json new file mode 100644 index 0000000..8178da4 --- /dev/null +++ b/app-modules/Catalog/lang/es.json @@ -0,0 +1,28 @@ +{ + "SKU": "SKU", + "Price": "Precio", + "Published": "Publicado", + "Draft": "Borrador", + "Products": "Productos", + "Search products...": "Buscar productos…", + "Create product": "Crear producto", + "No products found.": "No se encontraron productos.", + "Delete product": "Eliminar producto", + "this product": "este producto", + "Add a new product to the catalog.": "Agrega un nuevo producto al catálogo.", + "Product name": "Nombre del producto", + "e.g. WIDGET-001": "p. ej., WIDGET-001", + "Price (in cents)": "Precio (en centavos)", + "Optional product description": "Descripción del producto (opcional)", + "Edit product": "Editar producto", + "Update the product details.": "Modifica los datos del producto.", + "Product created.": "Producto creado.", + "Product updated.": "Producto actualizado.", + "Product deleted.": "Producto eliminado.", + "Product published.": "Producto publicado.", + "Delete selected products": "Eliminar los productos seleccionados", + "This will permanently delete :count product and cannot be undone.|This will permanently delete :count products and cannot be undone.": "Esto eliminará :count producto de forma permanente y no se puede deshacer.|Esto eliminará :count productos de forma permanente y no se puede deshacer.", + ":count product deleted.|:count products deleted.": ":count producto eliminado.|:count productos eliminados.", + "published": "Publicado", + "Catalog": "Catálogo" +} diff --git a/app-modules/Dashboard/lang/ar.json b/app-modules/Dashboard/lang/ar.json new file mode 100644 index 0000000..28d7c42 --- /dev/null +++ b/app-modules/Dashboard/lang/ar.json @@ -0,0 +1,21 @@ +{ + "Dashboard": "لوحة التحكم", + "No widgets available.": "لا توجد أدوات متاحة.", + "Home": "الرئيسية", + "Welcome, :name": "مرحبًا، :name", + "Here is where your account stands.": "إليك وضع حسابك الحالي.", + "Nothing here yet.": "لا يوجد شيء هنا بعد.", + "Waiting for access": "في انتظار الوصول", + "Your account is set up, but an administrator hasn't given it any access yet. There's nothing you need to do.": "حسابك جاهز، لكن لم يمنحه أي مسؤول صلاحيات وصول بعد. لا يلزمك فعل أي شيء.", + "If they ask, your account email is :email.": "إذا سُئلت، فالبريد الإلكتروني لحسابك هو :email.", + "Your account": "حسابك", + "Sign-in security": "أمان تسجيل الدخول", + "On": "مفعّل", + "Off": "معطّل", + "Manage": "إدارة", + "Set up": "إعداد", + ":count passkey|:count passkeys": ":count مفتاح مرور|:count مفتاح مرور|مفتاحا مرور|:count مفاتيح مرور|:count مفتاح مرور|:count مفتاح مرور", + "None yet": "لا يوجد بعد", + "Add": "إضافة", + "Member since :date": "عضو منذ :date" +} diff --git a/app-modules/Dashboard/lang/es.json b/app-modules/Dashboard/lang/es.json new file mode 100644 index 0000000..8439785 --- /dev/null +++ b/app-modules/Dashboard/lang/es.json @@ -0,0 +1,21 @@ +{ + "Dashboard": "Panel", + "No widgets available.": "No hay widgets disponibles.", + "Home": "Inicio", + "Welcome, :name": "Hola, :name", + "Here is where your account stands.": "Este es el estado de tu cuenta.", + "Nothing here yet.": "Aún no hay nada aquí.", + "Waiting for access": "Esperando acceso", + "Your account is set up, but an administrator hasn't given it any access yet. There's nothing you need to do.": "Tu cuenta está lista, pero un administrador todavía no le ha dado acceso. No tienes que hacer nada.", + "If they ask, your account email is :email.": "Si te lo piden, el correo electrónico de tu cuenta es :email.", + "Your account": "Tu cuenta", + "Sign-in security": "Seguridad del inicio de sesión", + "On": "Activada", + "Off": "Desactivada", + "Manage": "Administrar", + "Set up": "Configurar", + ":count passkey|:count passkeys": ":count llave de acceso|:count llaves de acceso", + "None yet": "Ninguna todavía", + "Add": "Agregar", + "Member since :date": "Miembro desde el :date" +} diff --git a/app-modules/Roles/lang/ar.json b/app-modules/Roles/lang/ar.json new file mode 100644 index 0000000..7ddefe9 --- /dev/null +++ b/app-modules/Roles/lang/ar.json @@ -0,0 +1,18 @@ +{ + "Add a new role and choose its permissions.": "أضف دورًا جديدًا واختر صلاحياته.", + "Create role": "إنشاء دور", + "Delete role": "حذف الدور", + "Edit role": "تعديل الدور", + "No permissions available.": "لا توجد صلاحيات متاحة.", + "No roles found.": "لم يُعثر على أدوار.", + "Role created.": "أُنشئ الدور.", + "Role deleted.": "حُذف الدور.", + "Role name": "اسم الدور", + "Role updated.": "حُدّث الدور.", + "Search roles...": "البحث عن أدوار…", + "Select all :prefix permissions": "تحديد كل صلاحيات :prefix", + "System role names cannot be changed.": "لا يمكن تغيير أسماء أدوار النظام.", + "System roles cannot be renamed.": "لا يمكن إعادة تسمية أدوار النظام.", + "this role": "هذا الدور", + "Update the role's name and permissions.": "حدّث اسم الدور وصلاحياته." +} diff --git a/app-modules/Roles/lang/es.json b/app-modules/Roles/lang/es.json new file mode 100644 index 0000000..af1a1fc --- /dev/null +++ b/app-modules/Roles/lang/es.json @@ -0,0 +1,18 @@ +{ + "Add a new role and choose its permissions.": "Agrega un nuevo rol y elige sus permisos.", + "Create role": "Crear rol", + "Delete role": "Eliminar rol", + "Edit role": "Editar rol", + "No permissions available.": "No hay permisos disponibles.", + "No roles found.": "No se encontraron roles.", + "Role created.": "Rol creado.", + "Role deleted.": "Rol eliminado.", + "Role name": "Nombre del rol", + "Role updated.": "Rol actualizado.", + "Search roles...": "Buscar roles…", + "Select all :prefix permissions": "Marcar todos los permisos de :prefix", + "System role names cannot be changed.": "El nombre de un rol del sistema no se puede cambiar.", + "System roles cannot be renamed.": "Los roles del sistema no se pueden renombrar.", + "this role": "este rol", + "Update the role's name and permissions.": "Modifica el nombre y los permisos del rol." +} diff --git a/app-modules/Settings/lang/ar.json b/app-modules/Settings/lang/ar.json new file mode 100644 index 0000000..394ef17 --- /dev/null +++ b/app-modules/Settings/lang/ar.json @@ -0,0 +1,44 @@ +{ + "General settings": "الإعدادات العامة", + "Logo": "الشعار", + "Shown in the menu, on the sign-in pages and on error pages instead of the built-in mark.": "يظهر في القائمة وصفحات تسجيل الدخول وصفحات الخطأ بدلًا من الشعار المدمج.", + "Settings that apply to the whole app.": "إعدادات تنطبق على التطبيق بأكمله.", + "Support email": "بريد الدعم", + "Shown on error pages so people know who to ask. Leave empty to hide it.": "يظهر في صفحات الخطأ ليعرف الناس بمن يتواصلون. اتركه فارغًا لإخفائه.", + "Allow sign-ups": "السماح بالتسجيل", + "When off, only administrators can create accounts.": "عند التعطيل، يقتصر إنشاء الحسابات على المسؤولين.", + "Logo updated.": "حُدّث الشعار.", + "Logo removed.": "أُزيل الشعار.", + "Announcement": "الإعلان", + "Showing": "معروض", + "A notice at the top of every page, sign-in pages included, until it ends or you remove it. Each person can dismiss it.": "تنبيه أعلى كل صفحة، بما فيها صفحات تسجيل الدخول، حتى ينتهي أو تزيله. يمكن لكل شخص إخفاؤه.", + "Message": "الرسالة", + "e.g. Planned maintenance on Sunday from 2:00 to 4:00.": "مثال: صيانة مجدولة يوم الأحد من 2:00 إلى 4:00.", + "Level": "المستوى", + "Information": "معلومات", + "Ends (optional)": "ينتهي في (اختياري)", + "Announcement published.": "نُشر الإعلان.", + "Announcement removed.": "أُزيل الإعلان.", + "support@example.com": "support@example.com", + "announcement-removed": "إزالة الإعلان", + "announcement-updated": "تحديث الإعلان", + "general-updated": "تعديل الإعدادات العامة", + "logo-removed": "إزالة الشعار", + "logo-updated": "تغيير الشعار", + "Business settings": "إعدادات النشاط التجاري", + "How the business works. Everyone reads dates in their own language and time zone; amounts, percentages and distances read the same for everyone.": "طريقة عمل النشاط التجاري. يقرأ كل شخص التواريخ بلغته ومنطقته الزمنية، أما المبالغ والنسب المئوية والمسافات فتظهر بالشكل نفسه للجميع.", + "Time zone": "المنطقة الزمنية", + "The business clock: business days, opening hours and reports follow it.": "ساعة النشاط التجاري: تتبعها أيام العمل وساعات الدوام والتقارير.", + "Regional format": "التنسيق الإقليمي", + "A language and region code, such as en-US or fr-FR: it decides the decimal and thousands separators and where the currency symbol goes.": "رمز لغة ومنطقة، مثل en-US أو fr-FR: يحدد الفاصل العشري وفاصل الآلاف وموضع رمز العملة.", + "Used for amounts that have no currency of their own.": "تُستخدم للمبالغ التي ليست لها عملة خاصة.", + "Search currencies...": "البحث عن عملة…", + "Distance unit": "وحدة المسافة", + "Preview": "معاينة", + "How figures will read once saved.": "كيف ستظهر الأرقام بعد الحفظ.", + "Amount": "المبلغ", + "Percentage": "النسبة المئوية", + "Distance": "المسافة", + "Business": "النشاط التجاري", + "business-updated": "تعديل إعدادات النشاط التجاري" +} diff --git a/app-modules/Settings/lang/es.json b/app-modules/Settings/lang/es.json new file mode 100644 index 0000000..72ab309 --- /dev/null +++ b/app-modules/Settings/lang/es.json @@ -0,0 +1,44 @@ +{ + "General settings": "Configuración general", + "Logo": "Logotipo", + "Shown in the menu, on the sign-in pages and on error pages instead of the built-in mark.": "Se muestra en el menú, en las páginas de inicio de sesión y en las páginas de error en lugar del logotipo predeterminado.", + "Settings that apply to the whole app.": "Configuración que se aplica a toda la aplicación.", + "Support email": "Correo electrónico de soporte", + "Shown on error pages so people know who to ask. Leave empty to hide it.": "Se muestra en las páginas de error para que se sepa a quién contactar. Déjalo vacío para ocultarlo.", + "Allow sign-ups": "Permitir registros", + "When off, only administrators can create accounts.": "Si está desactivado, solo los administradores pueden crear cuentas.", + "Logo updated.": "Logotipo actualizado.", + "Logo removed.": "Logotipo eliminado.", + "Announcement": "Anuncio", + "Showing": "Visible", + "A notice at the top of every page, sign-in pages included, until it ends or you remove it. Each person can dismiss it.": "Un aviso en la parte superior de cada página, incluidas las de inicio de sesión, hasta que termine o lo quites. Cada persona puede cerrarlo.", + "Message": "Mensaje", + "e.g. Planned maintenance on Sunday from 2:00 to 4:00.": "p. ej., Mantenimiento programado el domingo de 2:00 a 4:00.", + "Level": "Nivel", + "Information": "Información", + "Ends (optional)": "Finaliza (opcional)", + "Announcement published.": "Anuncio publicado.", + "Announcement removed.": "Anuncio eliminado.", + "support@example.com": "soporte@ejemplo.com", + "announcement-removed": "Anuncio eliminado", + "announcement-updated": "Anuncio actualizado", + "general-updated": "Configuración general modificada", + "logo-removed": "Logotipo eliminado", + "logo-updated": "Logotipo modificado", + "Business settings": "Configuración del negocio", + "How the business works. Everyone reads dates in their own language and time zone; amounts, percentages and distances read the same for everyone.": "Cómo funciona el negocio. Cada persona ve las fechas en su propio idioma y zona horaria; los importes, porcentajes y distancias se muestran igual para todos.", + "Time zone": "Zona horaria", + "The business clock: business days, opening hours and reports follow it.": "El reloj del negocio: los días hábiles, el horario de atención y los reportes se rigen por él.", + "Regional format": "Formato regional", + "A language and region code, such as en-US or fr-FR: it decides the decimal and thousands separators and where the currency symbol goes.": "Un código de idioma y región, como en-US o fr-FR: define los separadores decimales y de miles, y la posición del símbolo de moneda.", + "Used for amounts that have no currency of their own.": "Se usa para los importes que no tienen moneda propia.", + "Search currencies...": "Buscar monedas…", + "Distance unit": "Unidad de distancia", + "Preview": "Vista previa", + "How figures will read once saved.": "Cómo se verán las cifras una vez guardadas.", + "Amount": "Importe", + "Percentage": "Porcentaje", + "Distance": "Distancia", + "Business": "Negocio", + "business-updated": "Configuración del negocio modificada" +} diff --git a/app-modules/Shop/lang/ar.json b/app-modules/Shop/lang/ar.json new file mode 100644 index 0000000..81eeea7 --- /dev/null +++ b/app-modules/Shop/lang/ar.json @@ -0,0 +1,50 @@ +{ + "Your orders": "طلباتك", + "You haven't placed any orders yet.": "لم تقدّم أي طلبات بعد.", + ":count more order|:count more orders": ":count طلب آخر|:count طلب آخر|طلبان آخران|:count طلبات أخرى|:count طلبًا آخر|:count طلب آخر", + "Order": "الطلب", + "Customer": "العميل", + "Total": "الإجمالي", + "Placed": "تاريخ الطلب", + "Customer email": "البريد الإلكتروني للعميل", + "Total (in cents)": "الإجمالي (بالسنتات)", + "Orders": "الطلبات", + "Search by number or email...": "البحث بالرقم أو البريد الإلكتروني…", + "Create order": "إنشاء طلب", + "No orders found.": "لم يُعثر على طلبات.", + "Delete order": "حذف الطلب", + "this order": "هذا الطلب", + "Cancel order": "إلغاء الطلب", + "Cancel :number? Cancelled orders cannot be reopened.": "إلغاء :number؟ لا يمكن إعادة فتح الطلبات الملغاة.", + "Keep order": "الإبقاء على الطلب", + "Place a pending order for a customer.": "أنشئ طلبًا قيد الانتظار لأحد العملاء.", + "Edit :number": "تعديل :number", + "Pending orders can be changed until they are paid.": "يمكن تعديل الطلبات قيد الانتظار إلى أن تُدفع.", + "Order created.": "أُنشئ الطلب.", + "Order updated.": "حُدّث الطلب.", + "Order deleted.": "حُذف الطلب.", + "Order :number marked as :status.": "عُلّم الطلب :number بأنه :status.", + "Pending": "قيد الانتظار", + "Paid": "مدفوع", + "Shipped": "تم الشحن", + "Cancelled": "ملغى", + "Mark as paid": "تعليم كمدفوع", + "Mark as shipped": "تعليم كمشحون", + "paid": "مدفوع", + "shipped": "مشحون", + "cancelled": "ملغى", + "Shop settings": "إعدادات المتجر", + "Defaults for new orders.": "القيم الافتراضية للطلبات الجديدة.", + "Default currency": "العملة الافتراضية", + "Shop": "المتجر", + "Order :number is now :status": "الطلب :number الآن :status", + "We received your payment.": "استلمنا دفعتك.", + "Your order is on its way.": "طلبك في الطريق إليك.", + "Your order was cancelled. Contact us if this is unexpected.": "أُلغي طلبك. تواصل معنا إذا لم يكن ذلك متوقعًا.", + "View your orders": "عرض طلباتك", + "Delete selected orders": "حذف الطلبات المحددة", + "This will permanently delete :count order and cannot be undone.|This will permanently delete :count orders and cannot be undone.": "سيؤدي هذا إلى حذف :count طلب نهائيًا، ولا يمكن التراجع عن ذلك.|سيؤدي هذا إلى حذف :count طلب نهائيًا، ولا يمكن التراجع عن ذلك.|سيؤدي هذا إلى حذف طلبين نهائيًا، ولا يمكن التراجع عن ذلك.|سيؤدي هذا إلى حذف :count طلبات نهائيًا، ولا يمكن التراجع عن ذلك.|سيؤدي هذا إلى حذف :count طلبًا نهائيًا، ولا يمكن التراجع عن ذلك.|سيؤدي هذا إلى حذف :count طلب نهائيًا، ولا يمكن التراجع عن ذلك.", + ":count order deleted.|:count orders deleted.": "حُذف :count طلب.|حُذف :count طلب.|حُذف طلبان.|حُذفت :count طلبات.|حُذف :count طلبًا.|حُذف :count طلب.", + "settings-updated": "تعديل إعدادات المتجر", + "status-changed": "تغيير الحالة" +} diff --git a/app-modules/Shop/lang/es.json b/app-modules/Shop/lang/es.json new file mode 100644 index 0000000..73f680d --- /dev/null +++ b/app-modules/Shop/lang/es.json @@ -0,0 +1,50 @@ +{ + "Your orders": "Tus pedidos", + "You haven't placed any orders yet.": "Aún no has hecho ningún pedido.", + ":count more order|:count more orders": ":count pedido más|:count pedidos más", + "Order": "Pedido", + "Customer": "Cliente", + "Total": "Total", + "Placed": "Realizado", + "Customer email": "Correo electrónico del cliente", + "Total (in cents)": "Total (en centavos)", + "Orders": "Pedidos", + "Search by number or email...": "Buscar por número o correo electrónico…", + "Create order": "Crear pedido", + "No orders found.": "No se encontraron pedidos.", + "Delete order": "Eliminar pedido", + "this order": "este pedido", + "Cancel order": "Cancelar pedido", + "Cancel :number? Cancelled orders cannot be reopened.": "¿Cancelar :number? Los pedidos cancelados no se pueden reabrir.", + "Keep order": "Conservar pedido", + "Place a pending order for a customer.": "Crea un pedido pendiente para un cliente.", + "Edit :number": "Editar :number", + "Pending orders can be changed until they are paid.": "Los pedidos pendientes se pueden modificar hasta que se paguen.", + "Order created.": "Pedido creado.", + "Order updated.": "Pedido actualizado.", + "Order deleted.": "Pedido eliminado.", + "Order :number marked as :status.": "Pedido :number marcado como :status.", + "Pending": "Pendiente", + "Paid": "Pagado", + "Shipped": "Enviado", + "Cancelled": "Cancelado", + "Mark as paid": "Marcar como pagado", + "Mark as shipped": "Marcar como enviado", + "paid": "pagado", + "shipped": "enviado", + "cancelled": "cancelado", + "Shop settings": "Configuración de la tienda", + "Defaults for new orders.": "Valores predeterminados de los pedidos nuevos.", + "Default currency": "Moneda predeterminada", + "Shop": "Tienda", + "Order :number is now :status": "El pedido :number ahora está :status", + "We received your payment.": "Recibimos tu pago.", + "Your order is on its way.": "Tu pedido va en camino.", + "Your order was cancelled. Contact us if this is unexpected.": "Tu pedido se canceló. Contáctanos si no lo esperabas.", + "View your orders": "Ver tus pedidos", + "Delete selected orders": "Eliminar los pedidos seleccionados", + "This will permanently delete :count order and cannot be undone.|This will permanently delete :count orders and cannot be undone.": "Esto eliminará :count pedido de forma permanente y no se puede deshacer.|Esto eliminará :count pedidos de forma permanente y no se puede deshacer.", + ":count order deleted.|:count orders deleted.": ":count pedido eliminado.|:count pedidos eliminados.", + "settings-updated": "Configuración de la tienda modificada", + "status-changed": "Estado modificado" +} diff --git a/app-modules/System/lang/ar.json b/app-modules/System/lang/ar.json new file mode 100644 index 0000000..d47d696 --- /dev/null +++ b/app-modules/System/lang/ar.json @@ -0,0 +1,5 @@ +{ + "Horizon": "Horizon", + "Logs": "السجلات", + "Pulse": "Pulse" +} diff --git a/app-modules/System/lang/es.json b/app-modules/System/lang/es.json new file mode 100644 index 0000000..9b21b80 --- /dev/null +++ b/app-modules/System/lang/es.json @@ -0,0 +1,5 @@ +{ + "Horizon": "Horizon", + "Logs": "Registros", + "Pulse": "Pulse" +} diff --git a/app-modules/Users/lang/ar.json b/app-modules/Users/lang/ar.json new file mode 100644 index 0000000..b28c0dd --- /dev/null +++ b/app-modules/Users/lang/ar.json @@ -0,0 +1,66 @@ +{ + ":count new user|:count new users": ":count مستخدم جديد|:count مستخدم جديد|مستخدمان جديدان|:count مستخدمين جدد|:count مستخدمًا جديدًا|:count مستخدم جديد", + "Add a new user and assign their roles.": "أضف مستخدمًا جديدًا وعيّن أدواره.", + "Create user": "إنشاء مستخدم", + "Delete user": "حذف المستخدم", + "Edit user": "تعديل المستخدم", + "Export": "تصدير", + "Impersonate": "انتحال الهوية", + "Latest sign-ups": "أحدث التسجيلات", + "New users over the last 14 days": "المستخدمون الجدد خلال آخر 14 يومًا", + "No roles available.": "لا توجد أدوار متاحة.", + "No users found.": "لم يُعثر على مستخدمين.", + "No users yet.": "لا يوجد مستخدمون بعد.", + "Now impersonating :name.": "أنت الآن تنتحل هوية :name.", + "Recent users": "المستخدمون الأخيرون", + "Search users...": "البحث عن مستخدمين…", + "this user": "هذا المستخدم", + "Total users": "إجمالي المستخدمين", + "Unable to impersonate :name.": "تعذّر انتحال هوية :name.", + "Update the user's details and roles. Changing the email address resets its verification.": "حدّث بيانات المستخدم وأدواره. يؤدي تغيير عنوان البريد الإلكتروني إلى إعادة تعيين حالة التحقق منه.", + "User created.": "أُنشئ المستخدم.", + "User deleted.": "حُذف المستخدم.", + "User updated.": "حُدّث المستخدم.", + "You cannot remove your own admin role.": "لا يمكنك إزالة دور المسؤول الخاص بك.", + "You are invited to :app": "أنت مدعو إلى :app", + "You have been invited to join :app.": "تمت دعوتك للانضمام إلى :app.", + ":name invited you to join :app.": "دعاك :name للانضمام إلى :app.", + "Accept invitation": "قبول الدعوة", + "This invitation expires on :date.": "تنتهي صلاحية هذه الدعوة في :date.", + ":name accepted your invitation": "قبل :name دعوتك", + "View user": "عرض المستخدم", + "This person already has an account or a pending invitation.": "لدى هذا الشخص حساب بالفعل أو دعوة قيد الانتظار.", + "This invitation is no longer valid.": "لم تعد هذه الدعوة صالحة.", + "An account with this email already exists. Sign in instead.": "يوجد حساب بهذا البريد الإلكتروني بالفعل. سجّل الدخول بدلًا من ذلك.", + "Invitation sent.": "أُرسلت الدعوة.", + "Invitation revoked.": "أُلغيت الدعوة.", + "Invitation sent again to :email.": "أُعيد إرسال الدعوة إلى :email.", + "Welcome to :app!": "مرحبًا بك في :app!", + "This invitation was already used.": "استُخدمت هذه الدعوة بالفعل.", + "This invitation has expired. Ask the person who invited you to send a new one.": "انتهت صلاحية هذه الدعوة. اطلب من الشخص الذي دعاك إرسال دعوة جديدة.", + "An account with this email already exists.": "يوجد حساب بهذا البريد الإلكتروني بالفعل.", + "Invitation unavailable": "الدعوة غير متاحة", + "Accept your invitation": "اقبل دعوتك", + "Choose your name and a password to finish.": "اختر اسمك وكلمة مرور لإكمال التسجيل.", + "Invitations": "الدعوات", + "Invite someone": "دعوة شخص", + "They get an email with a link to create their account. Links work for :days days, even when sign-ups are closed.": "يتلقى الشخص رسالة بريد إلكتروني تحتوي على رابط لإنشاء حسابه. تظل الروابط صالحة لمدة :days يوم، حتى عند إغلاق التسجيل.", + "Send invitation": "إرسال الدعوة", + "Pending invitations": "الدعوات قيد الانتظار", + "No pending invitations.": "لا توجد دعوات قيد الانتظار.", + "Invited by :name · expires :date": "دعاه :name · تنتهي في :date", + "Expires :date": "تنتهي في :date", + "Resend": "إعادة الإرسال", + "Revoke invitation": "إلغاء الدعوة", + "The link sent to :email will stop working.": "سيتوقف الرابط المرسل إلى :email عن العمل.", + "Delete selected users": "حذف المستخدمين المحددين", + "This will permanently delete :count user and cannot be undone.|This will permanently delete :count users and cannot be undone.": "سيؤدي هذا إلى حذف :count مستخدم نهائيًا، ولا يمكن التراجع عن ذلك.|سيؤدي هذا إلى حذف :count مستخدم نهائيًا، ولا يمكن التراجع عن ذلك.|سيؤدي هذا إلى حذف مستخدمَين نهائيًا، ولا يمكن التراجع عن ذلك.|سيؤدي هذا إلى حذف :count مستخدمين نهائيًا، ولا يمكن التراجع عن ذلك.|سيؤدي هذا إلى حذف :count مستخدمًا نهائيًا، ولا يمكن التراجع عن ذلك.|سيؤدي هذا إلى حذف :count مستخدم نهائيًا، ولا يمكن التراجع عن ذلك.", + ":count user deleted.|:count users deleted.": "حُذف :count مستخدم.|حُذف :count مستخدم.|حُذف مستخدمان.|حُذف :count مستخدمين.|حُذف :count مستخدمًا.|حُذف :count مستخدم.", + "exported": "تصدير", + "impersonated": "انتحال الهوية", + "invitation-resent": "إعادة إرسال الدعوة", + "invitation-revoked": "إلغاء الدعوة", + "invited": "دعوة", + "Resend the invitation to :email": "إعادة إرسال الدعوة إلى :email", + "Revoke the invitation to :email": "إلغاء الدعوة الموجهة إلى :email" +} diff --git a/app-modules/Users/lang/es.json b/app-modules/Users/lang/es.json new file mode 100644 index 0000000..adece8f --- /dev/null +++ b/app-modules/Users/lang/es.json @@ -0,0 +1,66 @@ +{ + ":count new user|:count new users": ":count usuario nuevo|:count usuarios nuevos", + "Add a new user and assign their roles.": "Agrega un nuevo usuario y asígnale sus roles.", + "Create user": "Crear usuario", + "Delete user": "Eliminar usuario", + "Edit user": "Editar usuario", + "Export": "Exportar", + "Impersonate": "Suplantar", + "Latest sign-ups": "Registros más recientes", + "New users over the last 14 days": "Usuarios nuevos en los últimos 14 días", + "No roles available.": "No hay roles disponibles.", + "No users found.": "No se encontraron usuarios.", + "No users yet.": "Aún no hay usuarios.", + "Now impersonating :name.": "Ahora estás suplantando a :name.", + "Recent users": "Usuarios recientes", + "Search users...": "Buscar usuarios…", + "this user": "este usuario", + "Total users": "Usuarios en total", + "Unable to impersonate :name.": "No se puede suplantar a :name.", + "Update the user's details and roles. Changing the email address resets its verification.": "Modifica los datos y los roles del usuario. Cambiar la dirección de correo electrónico anula su verificación.", + "User created.": "Usuario creado.", + "User deleted.": "Usuario eliminado.", + "User updated.": "Usuario actualizado.", + "You cannot remove your own admin role.": "No puedes quitarte tu propio rol de administrador.", + "You are invited to :app": "Te invitaron a :app", + "You have been invited to join :app.": "Te invitaron a unirte a :app.", + ":name invited you to join :app.": ":name te invitó a unirte a :app.", + "Accept invitation": "Aceptar invitación", + "This invitation expires on :date.": "Esta invitación vence el :date.", + ":name accepted your invitation": ":name aceptó tu invitación", + "View user": "Ver usuario", + "This person already has an account or a pending invitation.": "Esta persona ya tiene una cuenta o una invitación pendiente.", + "This invitation is no longer valid.": "Esta invitación ya no es válida.", + "An account with this email already exists. Sign in instead.": "Ya existe una cuenta con este correo electrónico. Inicia sesión.", + "Invitation sent.": "Invitación enviada.", + "Invitation revoked.": "Invitación revocada.", + "Invitation sent again to :email.": "Invitación reenviada a :email.", + "Welcome to :app!": "¡Te damos la bienvenida a :app!", + "This invitation was already used.": "Esta invitación ya se usó.", + "This invitation has expired. Ask the person who invited you to send a new one.": "Esta invitación venció. Pídele a la persona que te invitó que te envíe una nueva.", + "An account with this email already exists.": "Ya existe una cuenta con este correo electrónico.", + "Invitation unavailable": "Invitación no disponible", + "Accept your invitation": "Acepta tu invitación", + "Choose your name and a password to finish.": "Elige tu nombre y una contraseña para terminar.", + "Invitations": "Invitaciones", + "Invite someone": "Invitar a alguien", + "They get an email with a link to create their account. Links work for :days days, even when sign-ups are closed.": "La persona recibe un correo con un enlace para crear su cuenta. Los enlaces son válidos durante :days días, incluso si los registros están cerrados.", + "Send invitation": "Enviar invitación", + "Pending invitations": "Invitaciones pendientes", + "No pending invitations.": "No hay invitaciones pendientes.", + "Invited by :name · expires :date": "Invitado por :name · vence el :date", + "Expires :date": "Vence el :date", + "Resend": "Reenviar", + "Revoke invitation": "Revocar invitación", + "The link sent to :email will stop working.": "El enlace enviado a :email dejará de funcionar.", + "Delete selected users": "Eliminar los usuarios seleccionados", + "This will permanently delete :count user and cannot be undone.|This will permanently delete :count users and cannot be undone.": "Esto eliminará :count usuario de forma permanente y no se puede deshacer.|Esto eliminará :count usuarios de forma permanente y no se puede deshacer.", + ":count user deleted.|:count users deleted.": ":count usuario eliminado.|:count usuarios eliminados.", + "exported": "Exportado", + "impersonated": "Suplantación de usuario", + "invitation-resent": "Invitación reenviada", + "invitation-revoked": "Invitación revocada", + "invited": "Invitado", + "Resend the invitation to :email": "Reenviar la invitación a :email", + "Revoke the invitation to :email": "Revocar la invitación de :email" +} diff --git a/app/Actions/ResolveUserPreferences.php b/app/Actions/ResolveUserPreferences.php index 4ffb2ed..0a668c0 100644 --- a/app/Actions/ResolveUserPreferences.php +++ b/app/Actions/ResolveUserPreferences.php @@ -54,7 +54,8 @@ * Resolve the effective appearance, theme preset, layout config, and * locale for the current request. Database preferences are the source of * truth for authenticated users; cookies cover guests; invalid or missing - * values fall back to the defaults. + * values fall back to the defaults. Unless a direction was chosen, it + * follows the locale (Arabic reads right to left). * * @return array{appearance: Appearance, theme: ThemePreset, layout: LayoutConfigData, locale: string, timezone: string|null} */ @@ -64,6 +65,10 @@ public function __invoke(Request $request): array $user = $request->user(); $user = $user instanceof User ? $user : null; + $locale = $this->validLocale($user?->locale) + ?? $this->validLocale($this->cookieValue($request, 'locale')) + ?? Config::string('app.locale'); + return [ 'appearance' => $user->appearance ?? Appearance::tryFrom($this->cookieValue($request, 'appearance')) @@ -73,12 +78,11 @@ public function __invoke(Request $request): array ?? ThemePreset::Default, 'layout' => LayoutConfigData::from([ ...self::DEFAULT_LAYOUT, + 'direction' => Direction::forLocale($locale)->value, ...$this->validLayoutOptions($this->cookieLayout($request)), ...$this->validLayoutOptions($user->layout ?? []), ]), - 'locale' => $this->validLocale($user?->locale) - ?? $this->validLocale($this->cookieValue($request, 'locale')) - ?? Config::string('app.locale'), + 'locale' => $locale, // Only signed-in users choose one; null means "the browser's". 'timezone' => $user?->timezone, ]; diff --git a/app/Enums/Direction.php b/app/Enums/Direction.php index b6b911b..5228b40 100644 --- a/app/Enums/Direction.php +++ b/app/Enums/Direction.php @@ -8,4 +8,22 @@ enum Direction: string { case Ltr = 'ltr'; case Rtl = 'rtl'; + + /** + * The languages written right to left, by ISO 639-1 code. + * + * @var list + */ + private const array RTL_LANGUAGES = ['ar', 'dv', 'fa', 'he', 'ku', 'ps', 'ur', 'yi']; + + /** + * The direction a locale (`ar`, `ar_EG`, `ar-MA`) reads in, from its + * language subtag. + */ + public static function forLocale(string $locale): self + { + $language = mb_strtolower(strtok($locale, '_-') ?: $locale); + + return in_array($language, self::RTL_LANGUAGES, true) ? self::Rtl : self::Ltr; + } } diff --git a/config/app.php b/config/app.php index 2531e13..26fa461 100644 --- a/config/app.php +++ b/config/app.php @@ -98,6 +98,8 @@ 'available_locales' => [ 'en' => 'English', 'fr' => 'Français', + 'es' => 'Español', + 'ar' => 'العربية', ], 'fallback_locale' => env('APP_FALLBACK_LOCALE', 'en'), diff --git a/lang/ar.json b/lang/ar.json new file mode 100644 index 0000000..b852efc --- /dev/null +++ b/lang/ar.json @@ -0,0 +1,326 @@ +{ + "2FA recovery codes": "رموز استرداد 2FA", + "A new verification link has been sent to the email address you provided during registration.": "أُرسل رابط تحقق جديد إلى عنوان البريد الإلكتروني الذي قدمته عند التسجيل.", + "A new verification link has been sent to your email address.": "أُرسل رابط تحقق جديد إلى عنوان بريدك الإلكتروني.", + "A reset link will be sent if the account exists.": "سيُرسل رابط إعادة التعيين إذا كان الحساب موجودًا.", + "Actions": "الإجراءات", + "Add passkey": "إضافة مفتاح مرور", + "Added :date": "أُضيف في :date", + "Already have an account?": "لديك حساب بالفعل؟", + "Appearance": "المظهر", + "Appearance settings": "إعدادات المظهر", + "Are you sure you want to delete your account?": "هل تريد حذف حسابك بالتأكيد؟", + "Authentication code": "رمز المصادقة", + "Back": "رجوع", + "Cancel": "إلغاء", + "Clear filters": "مسح عوامل التصفية", + "Click here to resend the verification email.": "انقر هنا لإعادة إرسال رسالة التحقق.", + "Close": "إغلاق", + "Command palette": "لوحة الأوامر", + "Confirm": "تأكيد", + "Confirm password": "تأكيد كلمة المرور", + "Confirm your password": "أكّد كلمة المرور", + "Continue": "متابعة", + "Continue setup": "متابعة الإعداد", + "Create": "إنشاء", + "Create account": "إنشاء الحساب", + "Create an account": "إنشاء حساب", + "Create your account": "أنشئ حسابك", + "Created": "تاريخ الإنشاء", + "Current password": "كلمة المرور الحالية", + "Dark": "داكن", + "Default": "افتراضي", + "Delete": "حذف", + "Delete account": "حذف الحساب", + "Delete passkey": "حذف مفتاح المرور", + "Delete passkey :name": "حذف مفتاح المرور :name", + "Delete your account and all of its resources": "احذف حسابك وجميع موارده", + "Description": "الوصف", + "Disable 2FA": "تعطيل 2FA", + "Display settings": "إعدادات العرض", + "e.g. Work laptop": "مثال: حاسوب العمل", + "Each recovery code can be used once to access your account and will be removed after use.": "يمكن استخدام كل رمز استرداد مرة واحدة للوصول إلى حسابك، ثم يُزال بعد استخدامه.", + "Edit": "تعديل", + "Edit :name": "تعديل :name", + "Email": "البريد الإلكتروني", + "Email address": "عنوان البريد الإلكتروني", + "Email password reset link": "إرسال رابط إعادة تعيين كلمة المرور", + "Email verification": "التحقق من البريد الإلكتروني", + "email@example.com": "email@example.com", + "Ember": "جمر", + "Enable 2FA": "تفعيل 2FA", + "Enable two-factor authentication": "تفعيل المصادقة الثنائية", + "Ensure your account is using a long, random password to stay secure": "استخدم كلمة مرور طويلة وعشوائية للحفاظ على أمان حسابك", + "Enter recovery code": "أدخل رمز الاسترداد", + "Enter the 6-digit code from your authenticator app": "أدخل الرمز المكوّن من 6 أرقام من تطبيق المصادقة", + "Enter the authentication code provided by your authenticator application.": "أدخل رمز المصادقة الذي يعرضه تطبيق المصادقة.", + "Enter your email to receive a password reset link": "أدخل بريدك الإلكتروني لتلقي رابط إعادة تعيين كلمة المرور", + "Forgot password": "نسيت كلمة المرور", + "Forgot password?": "نسيت كلمة المرور؟", + "Full name": "الاسم الكامل", + "General": "عام", + "Go to first page": "الانتقال إلى الصفحة الأولى", + "Go to last page": "الانتقال إلى الصفحة الأخيرة", + "Go to next page": "الانتقال إلى الصفحة التالية", + "Go to previous page": "الانتقال إلى الصفحة السابقة", + "Hide password": "إخفاء كلمة المرور", + "Hide recovery codes": "إخفاء رموز الاسترداد", + "High contrast": "تباين عالٍ", + "If you need more, click :action above.": "إذا احتجت إلى المزيد، فانقر على :action أعلاه.", + "It takes a minute. An admin grants your access afterwards.": "لن يستغرق الأمر سوى دقيقة. بعدها يمنحك أحد المسؤولين صلاحيات الوصول.", + "Language": "اللغة", + "Last used :date": "آخر استخدام في :date", + "Leave — back to :name": "مغادرة — العودة إلى :name", + "Light": "فاتح", + "Loading recovery codes": "جارٍ تحميل رموز الاسترداد", + "log in": "تسجيل الدخول", + "Log in": "تسجيل الدخول", + "Log in to continue to your workspace.": "سجّل الدخول للمتابعة إلى مساحة عملك.", + "Log out": "تسجيل الخروج", + "login using a recovery code": "تسجيل الدخول باستخدام رمز استرداد", + "login using an authentication code": "تسجيل الدخول باستخدام رمز مصادقة", + "Manage your profile and account settings": "أدر ملفك الشخصي وإعدادات حسابك", + "Manage your two-factor authentication settings": "أدر إعدادات المصادقة الثنائية", + "Management": "الإدارة", + "Modules plug into one shell": "وحدات تتصل بهيكل واحد", + "Name": "الاسم", + "Navigation": "التنقل", + "Navigation menu": "قائمة التنقل", + "Never used": "لم يُستخدم قط", + "New password": "كلمة المرور الجديدة", + "New to :name?": "جديد على :name؟", + "No results": "لا توجد نتائج", + "No results found.": "لم يُعثر على نتائج.", + "No results.": "لا توجد نتائج.", + "Once your account is deleted, all of its resources and data will also be permanently deleted. Please enter your password to confirm you would like to permanently delete your account.": "بمجرد حذف حسابك، ستُحذف أيضًا جميع موارده وبياناته نهائيًا. أدخل كلمة المرور لتأكيد رغبتك في حذف حسابك نهائيًا.", + "Open menu": "فتح القائمة", + "Open navigation": "فتح التنقل", + "or": "أو", + "or you can": "أو يمكنك", + "or, enter the code manually": "أو أدخل الرمز يدويًا", + "Or, return to": "أو عُد إلى", + "Page :page of :total": "الصفحة :page من :total", + "Passkey name": "اسم مفتاح المرور", + "Passkeys": "مفاتيح المرور", + "Passkeys replace your password and one-time codes during login. Your device verifies your identity with a fingerprint, face, or PIN and never shares that data with us.": "تحل مفاتيح المرور محل كلمة المرور والرموز المؤقتة عند تسجيل الدخول. يتحقق جهازك من هويتك ببصمة الإصبع أو الوجه أو رمز PIN، ولا يشارك هذه البيانات معنا أبدًا.", + "Password": "كلمة المرور", + "Password settings": "إعدادات كلمة المرور", + "Password updated.": "حُدّثت كلمة المرور.", + "Permissions, never guesswork": "صلاحيات واضحة، بلا تخمين", + "Please confirm access to your account by entering one of your emergency recovery codes.": "أكّد الوصول إلى حسابك بإدخال أحد رموز الاسترداد الاحتياطية.", + "Please enter your new password below": "أدخل كلمة المرور الجديدة أدناه", + "Please proceed with caution, this cannot be undone.": "تابع بحذر، فلا يمكن التراجع عن هذا الإجراء.", + "Please verify your email address by clicking on the link we just emailed to you.": "تحقق من عنوان بريدك الإلكتروني بالنقر على الرابط الذي أرسلناه إليك للتو.", + "Preferences": "التفضيلات", + "Profile": "الملف الشخصي", + "Profile information": "معلومات الملف الشخصي", + "Profile settings": "إعدادات الملف الشخصي", + "Profile updated.": "حُدّث الملف الشخصي.", + "Recovery code": "رمز الاسترداد", + "Recovery codes": "رموز الاسترداد", + "Recovery codes let you regain access if you lose your 2FA device. Store them in a secure password manager.": "تتيح لك رموز الاسترداد استعادة الوصول إذا فقدت جهاز 2FA. احفظها في مدير كلمات مرور آمن.", + "Regenerate codes": "إعادة إنشاء الرموز", + "Register": "التسجيل", + "Remember me": "تذكرني", + "Resend verification email": "إعادة إرسال رسالة التحقق", + "Reset": "إعادة تعيين", + "Reset password": "إعادة تعيين كلمة المرور", + "Role": "الدور", + "Roles": "الأدوار", + "Rows per page": "صفوف في كل صفحة", + "Save": "حفظ", + "Save changes": "حفظ التغييرات", + "Save password": "حفظ كلمة المرور", + "Search": "بحث", + "Search...": "بحث…", + "Settings": "الإعدادات", + "Show password": "إظهار كلمة المرور", + "Showing :from to :to of :total": "عرض :from إلى :to من أصل :total", + "Sidebar end": "الشريط الجانبي في النهاية", + "Sidebar start": "الشريط الجانبي في البداية", + "Sign in securely with your device's screen lock or a hardware key": "سجّل الدخول بأمان باستخدام قفل شاشة جهازك أو مفتاح أمان مادي", + "Sign in with a passkey": "تسجيل الدخول بمفتاح مرور", + "Something went wrong.": "حدث خطأ ما.", + "System": "النظام", + "The open hall for your operations.": "الردهة المفتوحة لعملياتك.", + "Theme": "السمة", + "Themes and layouts for every team": "سمات وتخطيطات لكل فريق", + "This browser does not support passkeys.": "لا يدعم هذا المتصفح مفاتيح المرور.", + "This is a secure area of the application. Please confirm your password before continuing.": "هذه منطقة محمية من التطبيق. أكّد كلمة المرور قبل المتابعة.", + "this passkey": "مفتاح المرور هذا", + "This will permanently delete :name and cannot be undone.": "سيؤدي هذا إلى حذف :name نهائيًا، ولا يمكن التراجع عن ذلك.", + "This will permanently delete :name and it can no longer be used to sign in.": "سيؤدي هذا إلى حذف :name نهائيًا، ولن يمكن استخدامه لتسجيل الدخول بعد ذلك.", + "To finish enabling two-factor authentication, scan the QR code or enter the setup key in your authenticator app": "لإكمال تفعيل المصادقة الثنائية، امسح رمز QR أو أدخل مفتاح الإعداد في تطبيق المصادقة", + "Toggle sidebar": "إظهار/إخفاء الشريط الجانبي", + "Toggle sidebar collapse": "طي/توسيع الشريط الجانبي", + "Topbar": "الشريط العلوي", + "Two-factor authentication": "المصادقة الثنائية", + "Two-factor authentication enabled": "فُعّلت المصادقة الثنائية", + "Two-factor authentication is now enabled. Scan the QR code or enter the setup key in your authenticator app.": "فُعّلت المصادقة الثنائية. امسح رمز QR أو أدخل مفتاح الإعداد في تطبيق المصادقة.", + "Update password": "تحديث كلمة المرور", + "Update your account's appearance settings": "حدّث إعدادات مظهر حسابك", + "Update your name and email address": "حدّث اسمك وعنوان بريدك الإلكتروني", + "Users": "المستخدمون", + "Verified": "تم التحقق", + "Verify authentication code": "التحقق من رمز المصادقة", + "Verify email": "التحقق من البريد الإلكتروني", + "View recovery codes": "عرض رموز الاسترداد", + "Warning": "تحذير", + "Welcome": "مرحبًا", + "Welcome back": "مرحبًا بعودتك", + "When you enable two-factor authentication, you will be prompted for a secure pin during login. This pin can be retrieved from a TOTP-supported application on your phone.": "عند تفعيل المصادقة الثنائية، سيُطلب منك رمز آمن عند تسجيل الدخول. يمكنك الحصول على هذا الرمز من تطبيق يدعم TOTP على هاتفك.", + "You will be prompted for a secure, random pin during login, which you can retrieve from the TOTP-supported application on your phone.": "سيُطلب منك رمز آمن وعشوائي عند تسجيل الدخول، ويمكنك الحصول عليه من التطبيق الداعم لـ TOTP على هاتفك.", + "Your email address is unverified.": "لم يتم التحقق من عنوان بريدك الإلكتروني.", + "Setup key": "مفتاح الإعداد", + "Copy setup key": "نسخ مفتاح الإعداد", + "Impersonating :name — acting as this user.": "تنتحل هوية :name — أنت تتصرف بصفته.", + "Main navigation": "التنقل الرئيسي", + "Confirm your password to change your email address.": "أكّد كلمة المرور لتغيير عنوان بريدك الإلكتروني.", + "Status": "الحالة", + "Currency": "العملة", + "You cannot grant the :role role.": "لا يمكنك منح الدور :role.", + "You cannot grant the :permission permission.": "لا يمكنك منح الصلاحية :permission.", + "pending": "قيد الانتظار", + "You don’t have access to this page": "ليس لديك صلاحية الوصول إلى هذه الصفحة", + "Your account isn’t allowed to open it. If you think it should be, ask an administrator.": "لا يُسمح لحسابك بفتحها. إذا كنت تعتقد أنه يجب السماح له، فتواصل مع أحد المسؤولين.", + "Page not found": "الصفحة غير موجودة", + "The page you’re looking for doesn’t exist or has moved.": "الصفحة التي تبحث عنها غير موجودة أو نُقلت.", + "Too many requests": "طلبات كثيرة جدًا", + "Please wait a moment before trying again.": "انتظر لحظة قبل المحاولة مرة أخرى.", + "Something went wrong": "حدث خطأ ما", + "An error on our side stopped this page from loading. Please try again shortly.": "منع خطأ من جهتنا تحميل هذه الصفحة. حاول مرة أخرى بعد قليل.", + "Down for maintenance": "متوقف للصيانة", + "We’re making improvements and will be back soon.": "نجري بعض التحسينات وسنعود قريبًا.", + "Try again": "إعادة المحاولة", + "Go back": "رجوع", + "Go to home": "الانتقال إلى الرئيسية", + "The page expired. Please try again.": "انتهت صلاحية الصفحة. حاول مرة أخرى.", + "Automatic (this browser)": "تلقائي (هذا المتصفح)", + "Search timezones...": "البحث عن منطقة زمنية…", + "No timezone found.": "لم يُعثر على منطقة زمنية.", + "Language and region": "اللغة والمنطقة", + "Choose the language and the timezone dates are shown in": "اختر اللغة والمنطقة الزمنية لعرض التواريخ", + "Timezone": "المنطقة الزمنية", + "Photo": "الصورة", + "Profile photo": "صورة الملف الشخصي", + "Change": "تغيير", + "Upload": "رفع", + "Remove": "إزالة", + "Photo updated.": "حُدّثت الصورة.", + "Photo removed.": "أُزيلت الصورة.", + "Need help? Contact": "تحتاج إلى مساعدة؟ تواصل مع", + "Open": "فتح", + "All notifications marked as read.": "عُلّمت جميع الإشعارات كمقروءة.", + "Notification settings saved.": "حُفظت إعدادات الإشعارات.", + "Notifications": "الإشعارات", + "Mark all as read": "تعليم الكل كمقروء", + "You're all caught up.": "لا جديد لديك.", + "View all notifications": "عرض جميع الإشعارات", + "No notifications yet.": "لا توجد إشعارات بعد.", + "Email settings": "إعدادات البريد الإلكتروني", + "Notification settings": "إعدادات الإشعارات", + "Notifications always appear under the bell. Choose whether they reach your inbox too.": "تظهر الإشعارات دائمًا تحت أيقونة الجرس. اختر ما إذا كانت ستصل إلى بريدك الوارد أيضًا.", + "Email me my notifications": "أرسل إشعاراتي إلى بريدي الإلكتروني", + "Security emails (password resets, sign-in codes) are always sent.": "تُرسل رسائل الأمان (إعادة تعيين كلمة المرور، رموز تسجيل الدخول) دائمًا.", + "Search records, pages and preferences": "البحث في السجلات والصفحات والتفضيلات", + "Search records, pages and preferences...": "البحث في السجلات والصفحات والتفضيلات…", + "Search is unavailable right now.": "البحث غير متاح حاليًا.", + "Sessions": "الجلسات", + ":browser on :platform": ":browser على :platform", + "Unknown device": "جهاز غير معروف", + "Browser sessions": "جلسات المتصفح", + "Where you are signed in. If you see a device you don’t recognize, sign out of your other sessions and change your password.": "الأماكن التي سجّلت الدخول منها. إذا رأيت جهازًا لا تعرفه، فسجّل الخروج من جلساتك الأخرى وغيّر كلمة المرور.", + "Last active :date": "آخر نشاط في :date", + "This device": "هذا الجهاز", + "Sign out other sessions": "تسجيل الخروج من الجلسات الأخرى", + "Enter your password to sign out of every other browser and device, including ones that chose “Remember me”.": "أدخل كلمة المرور لتسجيل الخروج من جميع المتصفحات والأجهزة الأخرى، بما فيها التي اختارت «تذكرني».", + "Signed out of your other sessions.": "سُجّل الخروج من جلساتك الأخرى.", + "All rights reserved.": "جميع الحقوق محفوظة.", + "Hello!": "مرحبًا!", + "Regards,": "مع التحية،", + "Whoops!": "عذرًا!", + "If you're having trouble clicking the \":actionText\" button, copy and paste the URL below\ninto your web browser:": "إذا واجهت مشكلة في النقر على زر «:actionText»، فانسخ الرابط أدناه\nوالصقه في متصفحك:", + "If you did not create an account, no further action is required.": "إذا لم تنشئ حسابًا، فلا داعي لاتخاذ أي إجراء.", + "If you did not request a password reset, no further action is required.": "إذا لم تطلب إعادة تعيين كلمة المرور، فلا داعي لاتخاذ أي إجراء.", + "Please click the button below to verify your email address.": "انقر على الزر أدناه للتحقق من عنوان بريدك الإلكتروني.", + "Reset Password": "إعادة تعيين كلمة المرور", + "Reset your password": "أعد تعيين كلمة المرور", + "This password reset link will expire in :count minutes.": "ستنتهي صلاحية رابط إعادة تعيين كلمة المرور خلال :count دقيقة.", + "Verify Email Address": "التحقق من عنوان البريد الإلكتروني", + "Verify your email address": "تحقق من عنوان بريدك الإلكتروني", + "You are receiving this email because we received a password reset request for your account.": "تتلقى هذه الرسالة لأننا تلقينا طلبًا لإعادة تعيين كلمة مرور حسابك.", + "Dismiss announcement": "إخفاء الإعلان", + "Select all rows": "تحديد كل الصفوف", + "Select row": "تحديد الصف", + "Clear selection": "إلغاء التحديد", + "Delete selected": "حذف المحدد", + ":count could not be deleted.|:count could not be deleted.": "تعذّر حذف :count عنصر.|تعذّر حذف :count عنصر.|تعذّر حذف عنصرين.|تعذّر حذف :count عناصر.|تعذّر حذف :count عنصرًا.|تعذّر حذف :count عنصر.", + "Stopped impersonating :name.": "توقفت عن انتحال هوية :name.", + "You are the only administrator. Give someone else the role before deleting your account.": "أنت المسؤول الوحيد. امنح هذا الدور لشخص آخر قبل حذف حسابك.", + "That can’t be done any more: something changed in the meantime. Check and try again.": "لم يعد ذلك ممكنًا: تغيّر شيء ما في هذه الأثناء. تحقق وحاول مرة أخرى.", + ":count selected|:count selected": "تم تحديد :count عنصر|تم تحديد :count عنصر|تم تحديد عنصرين|تم تحديد :count عناصر|تم تحديد :count عنصرًا|تم تحديد :count عنصر", + "Notifications (:count unread)|Notifications (:count unread)": "الإشعارات (غير المقروءة: :count)|الإشعارات (غير المقروءة: :count)|الإشعارات (غير المقروءة: :count)|الإشعارات (غير المقروءة: :count)|الإشعارات (غير المقروءة: :count)|الإشعارات (غير المقروءة: :count)", + ":count unread|:count unread": "غير المقروءة: :count|غير المقروءة: :count|غير المقروءة: :count|غير المقروءة: :count|غير المقروءة: :count|غير المقروءة: :count", + "Failed to fetch QR code": "تعذّر تحميل رمز QR", + "Failed to fetch a setup key": "تعذّر تحميل مفتاح الإعداد", + "Failed to fetch recovery codes": "تعذّر تحميل رموز الاسترداد", + "Permissions": "الصلاحيات", + "Publish": "نشر", + "Revoke": "إلغاء", + "Settings saved.": "حُفظت الإعدادات.", + "Could not copy to the clipboard. Select the text and copy it instead.": "تعذّر النسخ إلى الحافظة. حدد النص وانسخه بنفسك.", + "created": "إنشاء", + "updated": "تعديل", + "deleted": "حذف", + "account-deleted": "حذف الحساب", + "avatar-removed": "إزالة الصورة", + "avatar-updated": "تغيير الصورة", + "impersonation-left": "إنهاء انتحال الهوية", + "other-sessions-signed-out": "تسجيل الخروج من الجلسات الأخرى", + "+:count more|+:count more": "+:count أخرى|+:count أخرى|+:count أخرى|+:count أخرى|+:count أخرى|+:count أخرى", + "Not verified": "لم يتم التحقق", + "Terms of Service": "شروط الخدمة", + "Privacy Policy": "سياسة الخصوصية", + "Cookie Policy": "سياسة ملفات تعريف الارتباط", + "Analytics": "التحليلات", + "Marketing": "التسويق", + "Count visits and see how the app is used, so we can improve it.": "إحصاء الزيارات ومعرفة كيفية استخدام التطبيق، حتى نتمكن من تحسينه.", + "Personalised advertising and sharing data with advertising partners.": "إعلانات مخصصة ومشاركة البيانات مع شركاء الإعلان.", + "Your privacy choices are saved.": "حُفظت خيارات الخصوصية الخاصة بك.", + "Thank you. You’re all set.": "شكرًا لك. كل شيء جاهز.", + "I accept the Terms of Service and the Privacy Policy": "أوافق على شروط الخدمة وسياسة الخصوصية", + "Strictly necessary": "ضرورية للغاية", + "Keep you signed in, protect forms and remember your display choices. Always on.": "تُبقيك مسجّل الدخول، وتحمي النماذج، وتتذكر خيارات العرض. مفعّلة دائمًا.", + "Off: your browser sends a Global Privacy Control signal.": "معطّلة: يرسل متصفحك إشارة Global Privacy Control.", + "Save my choices": "حفظ خياراتي", + "Your privacy choices": "خيارات الخصوصية الخاصة بك", + "Legal": "الشؤون القانونية", + "Your privacy": "خصوصيتك", + "We use essential cookies to make this app work. With your consent, we would also use optional cookies to understand how it is used and for marketing. You can change your mind at any time.": "نستخدم ملفات تعريف الارتباط الأساسية لتشغيل هذا التطبيق. وبموافقتك، سنستخدم أيضًا ملفات اختيارية لفهم كيفية استخدامه ولأغراض التسويق. يمكنك تغيير رأيك في أي وقت.", + "Your browser’s Global Privacy Control signal is on, so we won’t sell or share your personal information.": "إشارة Global Privacy Control مفعّلة في متصفحك، لذا لن نبيع معلوماتك الشخصية أو نشاركها.", + "Customize": "تخصيص", + "Reject all": "رفض الكل", + "Accept all": "قبول الكل", + "Cookie settings": "إعدادات ملفات تعريف الارتباط", + "Choose which optional cookies we may use. Strictly necessary cookies are always on.": "اختر ملفات تعريف الارتباط الاختيارية التي يمكننا استخدامها. الملفات الضرورية للغاية مفعّلة دائمًا.", + "Back to the app": "العودة إلى التطبيق", + "Privacy": "الخصوصية", + "Download your data": "تنزيل بياناتك", + "A copy of everything we hold about you: your account, sessions, notifications, cookie choices and activity, as a JSON file.": "نسخة من كل ما نحتفظ به عنك: حسابك وجلساتك وإشعاراتك وخيارات ملفات تعريف الارتباط ونشاطك، في ملف JSON.", + "Download my data": "تنزيل بياناتي", + "Choose which optional cookies we may use in this browser.": "اختر ملفات تعريف الارتباط الاختيارية التي يمكننا استخدامها في هذا المتصفح.", + "Legal documents": "المستندات القانونية", + "You accepted the Terms of Service on :date.": "وافقت على شروط الخدمة في :date.", + "Before you continue": "قبل المتابعة", + "We’ve updated our terms": "حدّثنا شروطنا", + "Please read and accept our terms to use the app.": "يُرجى قراءة شروطنا والموافقة عليها لاستخدام التطبيق.", + "Please read and accept the new version to keep using the app.": "يُرجى قراءة النسخة الجديدة والموافقة عليها لمواصلة استخدام التطبيق.", + "Don’t agree? You can still download your data or delete your account.": "لا توافق؟ لا يزال بإمكانك تنزيل بياناتك أو حذف حسابك.", + "Privacy settings": "إعدادات الخصوصية", + "terms-accepted": "الموافقة على الشروط", + "personal-data-exported": "تصدير البيانات الشخصية", + "personal-data-erased": "محو البيانات الشخصية", + "retention-pruned": "حذف البيانات منتهية الصلاحية", + "Kilometres": "كيلومترات", + "Miles": "أميال" +} diff --git a/lang/ar/auth.php b/lang/ar/auth.php new file mode 100644 index 0000000..5eda76f --- /dev/null +++ b/lang/ar/auth.php @@ -0,0 +1,9 @@ + 'بيانات الاعتماد هذه لا تطابق أي حساب.', + 'password' => 'كلمة المرور غير صحيحة.', + 'throttle' => 'محاولات تسجيل دخول كثيرة جدًا. حاول مرة أخرى بعد :seconds ثانية.', +]; diff --git a/lang/ar/pagination.php b/lang/ar/pagination.php new file mode 100644 index 0000000..122dea0 --- /dev/null +++ b/lang/ar/pagination.php @@ -0,0 +1,8 @@ + '« السابق', + 'next' => 'التالي »', +]; diff --git a/lang/ar/passwords.php b/lang/ar/passwords.php new file mode 100644 index 0000000..5d8d3e7 --- /dev/null +++ b/lang/ar/passwords.php @@ -0,0 +1,11 @@ + 'أُعيد تعيين كلمة المرور.', + 'sent' => 'أرسلنا إليك رابط إعادة تعيين كلمة المرور عبر البريد الإلكتروني.', + 'throttled' => 'انتظر قليلًا قبل المحاولة مرة أخرى.', + 'token' => 'رمز إعادة تعيين كلمة المرور هذا غير صالح.', + 'user' => 'لا يوجد مستخدم بعنوان البريد الإلكتروني هذا.', +]; diff --git a/lang/ar/validation.php b/lang/ar/validation.php new file mode 100644 index 0000000..3eab7d7 --- /dev/null +++ b/lang/ar/validation.php @@ -0,0 +1,189 @@ + 'يجب قبول الحقل :attribute.', + 'accepted_if' => 'يجب قبول الحقل :attribute عندما تكون قيمة :other هي :value.', + 'active_url' => 'يجب أن يكون الحقل :attribute رابط URL صالحًا.', + 'after' => 'يجب أن يكون الحقل :attribute تاريخًا لاحقًا لـ :date.', + 'after_or_equal' => 'يجب أن يكون الحقل :attribute تاريخًا لاحقًا لـ :date أو مساويًا له.', + 'alpha' => 'يجب ألا يحتوي الحقل :attribute إلا على حروف.', + 'alpha_dash' => 'يجب ألا يحتوي الحقل :attribute إلا على حروف وأرقام وشرطات وشرطات سفلية.', + 'alpha_num' => 'يجب ألا يحتوي الحقل :attribute إلا على حروف وأرقام.', + 'any_of' => 'الحقل :attribute غير صالح.', + 'array' => 'يجب أن يكون الحقل :attribute مصفوفة.', + 'array_keys' => 'يجب ألا يحتوي الحقل :attribute إلا على المفاتيح التالية: :values.', + 'ascii' => 'يجب ألا يحتوي الحقل :attribute إلا على حروف وأرقام ورموز أحادية البايت.', + 'base64' => 'يجب أن يكون الحقل :attribute سلسلة Base64 صالحة.', + 'before' => 'يجب أن يكون الحقل :attribute تاريخًا سابقًا لـ :date.', + 'before_or_equal' => 'يجب أن يكون الحقل :attribute تاريخًا سابقًا لـ :date أو مساويًا له.', + 'between' => [ + 'array' => 'يجب أن يحتوي الحقل :attribute على عدد عناصر بين :min و:max.', + 'file' => 'يجب أن يكون حجم الحقل :attribute بين :min و:max كيلوبايت.', + 'numeric' => 'يجب أن تكون قيمة الحقل :attribute بين :min و:max.', + 'string' => 'يجب أن يكون طول الحقل :attribute بين :min و:max حرفًا.', + ], + 'boolean' => 'يجب أن تكون قيمة الحقل :attribute صحيحة أو خاطئة.', + 'can' => 'يحتوي الحقل :attribute على قيمة غير مصرح بها.', + 'confirmed' => 'تأكيد الحقل :attribute غير مطابق.', + 'contains' => 'الحقل :attribute ينقصه قيمة مطلوبة.', + 'current_password' => 'كلمة المرور غير صحيحة.', + 'date' => 'يجب أن يكون الحقل :attribute تاريخًا صالحًا.', + 'date_equals' => 'يجب أن يكون الحقل :attribute تاريخًا مساويًا لـ :date.', + 'date_format' => 'يجب أن يطابق الحقل :attribute التنسيق :format.', + 'decimal' => 'يجب أن يحتوي الحقل :attribute على :decimal منازل عشرية.', + 'declined' => 'يجب رفض الحقل :attribute.', + 'declined_if' => 'يجب رفض الحقل :attribute عندما تكون قيمة :other هي :value.', + 'different' => 'يجب أن يختلف الحقلان :attribute و:other.', + 'digits' => 'يجب أن يتكون الحقل :attribute من :digits أرقام.', + 'digits_between' => 'يجب أن يتكون الحقل :attribute من عدد أرقام بين :min و:max.', + 'dimensions' => 'أبعاد الصورة :attribute غير صالحة.', + 'distinct' => 'يحتوي الحقل :attribute على قيمة مكررة.', + 'doesnt_contain' => 'يجب ألا يحتوي الحقل :attribute على أي من القيم التالية: :values.', + 'doesnt_end_with' => 'يجب ألا ينتهي الحقل :attribute بأي من القيم التالية: :values.', + 'doesnt_start_with' => 'يجب ألا يبدأ الحقل :attribute بأي من القيم التالية: :values.', + 'email' => 'يجب أن يكون الحقل :attribute عنوان بريد إلكتروني صالحًا.', + 'encoding' => 'يجب أن يكون الحقل :attribute مرمّزًا بـ :encoding.', + 'ends_with' => 'يجب أن ينتهي الحقل :attribute بإحدى القيم التالية: :values.', + 'enum' => 'القيمة المحددة لـ :attribute غير صالحة.', + 'exists' => 'القيمة المحددة لـ :attribute غير صالحة.', + 'extensions' => 'يجب أن يكون للحقل :attribute أحد الامتدادات التالية: :values.', + 'file' => 'يجب أن يكون الحقل :attribute ملفًا.', + 'filled' => 'يجب أن يحتوي الحقل :attribute على قيمة.', + 'gt' => [ + 'array' => 'يجب أن يحتوي الحقل :attribute على أكثر من :value عناصر.', + 'file' => 'يجب أن يكون حجم الحقل :attribute أكبر من :value كيلوبايت.', + 'numeric' => 'يجب أن تكون قيمة الحقل :attribute أكبر من :value.', + 'string' => 'يجب أن يكون طول الحقل :attribute أكثر من :value حرفًا.', + ], + 'gte' => [ + 'array' => 'يجب أن يحتوي الحقل :attribute على :value عناصر على الأقل.', + 'file' => 'يجب أن يكون حجم الحقل :attribute :value كيلوبايت على الأقل.', + 'numeric' => 'يجب أن تكون قيمة الحقل :attribute أكبر من :value أو مساوية لها.', + 'string' => 'يجب أن يكون طول الحقل :attribute :value حرفًا على الأقل.', + ], + 'hex_color' => 'يجب أن يكون الحقل :attribute لونًا سداسي عشري صالحًا.', + 'image' => 'يجب أن يكون الحقل :attribute صورة.', + 'in' => 'القيمة المحددة لـ :attribute غير صالحة.', + 'in_array' => 'يجب أن يكون الحقل :attribute موجودًا في :other.', + 'in_array_keys' => 'يجب أن يحتوي الحقل :attribute على مفتاح واحد على الأقل من المفاتيح التالية: :values.', + 'integer' => 'يجب أن يكون الحقل :attribute عددًا صحيحًا.', + 'ip' => 'يجب أن يكون الحقل :attribute عنوان IP صالحًا.', + 'ipv4' => 'يجب أن يكون الحقل :attribute عنوان IPv4 صالحًا.', + 'ipv6' => 'يجب أن يكون الحقل :attribute عنوان IPv6 صالحًا.', + 'json' => 'يجب أن يكون الحقل :attribute سلسلة JSON صالحة.', + 'list' => 'يجب أن يكون الحقل :attribute قائمة.', + 'lowercase' => 'يجب أن يكون الحقل :attribute بأحرف صغيرة.', + 'lt' => [ + 'array' => 'يجب أن يحتوي الحقل :attribute على أقل من :value عناصر.', + 'file' => 'يجب أن يكون حجم الحقل :attribute أقل من :value كيلوبايت.', + 'numeric' => 'يجب أن تكون قيمة الحقل :attribute أقل من :value.', + 'string' => 'يجب أن يكون طول الحقل :attribute أقل من :value حرفًا.', + ], + 'lte' => [ + 'array' => 'يجب ألا يحتوي الحقل :attribute على أكثر من :value عناصر.', + 'file' => 'يجب ألا يتجاوز حجم الحقل :attribute :value كيلوبايت.', + 'numeric' => 'يجب أن تكون قيمة الحقل :attribute أقل من :value أو مساوية لها.', + 'string' => 'يجب ألا يتجاوز طول الحقل :attribute :value حرفًا.', + ], + 'mac_address' => 'يجب أن يكون الحقل :attribute عنوان MAC صالحًا.', + 'max' => [ + 'array' => 'يجب ألا يحتوي الحقل :attribute على أكثر من :max عناصر.', + 'file' => 'يجب ألا يتجاوز حجم الحقل :attribute :max كيلوبايت.', + 'numeric' => 'يجب ألا تتجاوز قيمة الحقل :attribute :max.', + 'string' => 'يجب ألا يتجاوز طول الحقل :attribute :max حرفًا.', + ], + 'max_digits' => 'يجب ألا يحتوي الحقل :attribute على أكثر من :max أرقام.', + 'mimes' => 'يجب أن يكون الحقل :attribute ملفًا من النوع: :values.', + 'mimetypes' => 'يجب أن يكون الحقل :attribute ملفًا من النوع: :values.', + 'min' => [ + 'array' => 'يجب أن يحتوي الحقل :attribute على :min عناصر على الأقل.', + 'file' => 'يجب أن يكون حجم الحقل :attribute :min كيلوبايت على الأقل.', + 'numeric' => 'يجب أن تكون قيمة الحقل :attribute :min على الأقل.', + 'string' => 'يجب أن يكون طول الحقل :attribute :min حرفًا على الأقل.', + ], + 'min_digits' => 'يجب أن يحتوي الحقل :attribute على :min أرقام على الأقل.', + 'missing' => 'يجب أن يكون الحقل :attribute غير موجود.', + 'missing_if' => 'يجب أن يكون الحقل :attribute غير موجود عندما تكون قيمة :other هي :value.', + 'missing_unless' => 'يجب أن يكون الحقل :attribute غير موجود ما لم تكن قيمة :other هي :value.', + 'missing_with' => 'يجب أن يكون الحقل :attribute غير موجود عند وجود :values.', + 'missing_with_all' => 'يجب أن يكون الحقل :attribute غير موجود عند وجود :values.', + 'multiple_of' => 'يجب أن تكون قيمة الحقل :attribute من مضاعفات :value.', + 'not_in' => 'القيمة المحددة لـ :attribute غير صالحة.', + 'not_regex' => 'تنسيق الحقل :attribute غير صالح.', + 'numeric' => 'يجب أن يكون الحقل :attribute رقمًا.', + 'password' => [ + 'letters' => 'يجب أن يحتوي الحقل :attribute على حرف واحد على الأقل.', + 'mixed' => 'يجب أن يحتوي الحقل :attribute على حرف كبير وحرف صغير على الأقل.', + 'numbers' => 'يجب أن يحتوي الحقل :attribute على رقم واحد على الأقل.', + 'symbols' => 'يجب أن يحتوي الحقل :attribute على رمز واحد على الأقل.', + 'uncompromised' => 'ظهرت قيمة :attribute هذه في تسريب بيانات. يُرجى اختيار قيمة أخرى.', + ], + 'present' => 'يجب أن يكون الحقل :attribute موجودًا.', + 'present_if' => 'يجب أن يكون الحقل :attribute موجودًا عندما تكون قيمة :other هي :value.', + 'present_unless' => 'يجب أن يكون الحقل :attribute موجودًا ما لم تكن قيمة :other هي :value.', + 'present_with' => 'يجب أن يكون الحقل :attribute موجودًا عند وجود :values.', + 'present_with_all' => 'يجب أن يكون الحقل :attribute موجودًا عند وجود :values.', + 'prohibited' => 'الحقل :attribute محظور.', + 'prohibited_if' => 'الحقل :attribute محظور عندما تكون قيمة :other هي :value.', + 'prohibited_if_accepted' => 'الحقل :attribute محظور عند قبول :other.', + 'prohibited_if_declined' => 'الحقل :attribute محظور عند رفض :other.', + 'prohibited_unless' => 'الحقل :attribute محظور ما لم تكن قيمة :other ضمن :values.', + 'prohibits' => 'الحقل :attribute يمنع وجود :other.', + 'regex' => 'تنسيق الحقل :attribute غير صالح.', + 'required' => 'الحقل :attribute مطلوب.', + 'required_array_keys' => 'يجب أن يحتوي الحقل :attribute على مدخلات لـ: :values.', + 'required_if' => 'الحقل :attribute مطلوب عندما تكون قيمة :other هي :value.', + 'required_if_accepted' => 'الحقل :attribute مطلوب عند قبول :other.', + 'required_if_declined' => 'الحقل :attribute مطلوب عند رفض :other.', + 'required_unless' => 'الحقل :attribute مطلوب ما لم تكن قيمة :other ضمن :values.', + 'required_with' => 'الحقل :attribute مطلوب عند وجود :values.', + 'required_with_all' => 'الحقل :attribute مطلوب عند وجود :values.', + 'required_without' => 'الحقل :attribute مطلوب عند عدم وجود :values.', + 'required_without_all' => 'الحقل :attribute مطلوب عند عدم وجود أي من :values.', + 'same' => 'يجب أن يطابق الحقل :attribute الحقل :other.', + 'size' => [ + 'array' => 'يجب أن يحتوي الحقل :attribute على :size عناصر.', + 'file' => 'يجب أن يكون حجم الحقل :attribute :size كيلوبايت.', + 'numeric' => 'يجب أن تكون قيمة الحقل :attribute :size.', + 'string' => 'يجب أن يكون طول الحقل :attribute :size حرفًا.', + ], + 'starts_with' => 'يجب أن يبدأ الحقل :attribute بإحدى القيم التالية: :values.', + 'string' => 'يجب أن يكون الحقل :attribute نصًا.', + 'timezone' => 'يجب أن يكون الحقل :attribute منطقة زمنية صالحة.', + 'unique' => 'قيمة الحقل :attribute مستخدمة بالفعل.', + 'uploaded' => 'فشل رفع الحقل :attribute.', + 'uppercase' => 'يجب أن يكون الحقل :attribute بأحرف كبيرة.', + 'url' => 'يجب أن يكون الحقل :attribute رابط URL صالحًا.', + 'ulid' => 'يجب أن يكون الحقل :attribute معرّف ULID صالحًا.', + 'uuid' => 'يجب أن يكون الحقل :attribute معرّف UUID صالحًا.', + + 'custom' => [], + + /* + * Field names as people read them. A module adds its own fields' + * names in its FormRequest's attributes() (with __()). + */ + 'attributes' => [ + 'name' => 'الاسم', + 'email' => 'البريد الإلكتروني', + 'password' => 'كلمة المرور', + 'password_confirmation' => 'تأكيد كلمة المرور', + 'current_password' => 'كلمة المرور الحالية', + 'code' => 'الرمز', + 'recovery_code' => 'رمز الاسترداد', + 'roles' => 'الأدوار', + 'locale' => 'اللغة', + 'timezone' => 'المنطقة الزمنية', + 'avatar' => 'الصورة', + 'logo' => 'الشعار', + 'support_email' => 'بريد الدعم', + 'notify_by_email' => 'الإشعارات عبر البريد الإلكتروني', + 'abilities' => 'الصلاحيات', + 'expires_in_days' => 'مدة الصلاحية', + 'q' => 'البحث', + 'description' => 'الوصف', + 'currency' => 'العملة', + ], +]; diff --git a/lang/es.json b/lang/es.json new file mode 100644 index 0000000..141f90b --- /dev/null +++ b/lang/es.json @@ -0,0 +1,326 @@ +{ + "2FA recovery codes": "Códigos de recuperación de 2FA", + "A new verification link has been sent to the email address you provided during registration.": "Se envió un nuevo enlace de verificación a la dirección de correo electrónico que indicaste al registrarte.", + "A new verification link has been sent to your email address.": "Se envió un nuevo enlace de verificación a tu dirección de correo electrónico.", + "A reset link will be sent if the account exists.": "Si la cuenta existe, se enviará un enlace para restablecer la contraseña.", + "Actions": "Acciones", + "Add passkey": "Agregar llave de acceso", + "Added :date": "Agregada el :date", + "Already have an account?": "¿Ya tienes una cuenta?", + "Appearance": "Apariencia", + "Appearance settings": "Configuración de apariencia", + "Are you sure you want to delete your account?": "¿Seguro que quieres eliminar tu cuenta?", + "Authentication code": "Código de autenticación", + "Back": "Volver", + "Cancel": "Cancelar", + "Clear filters": "Borrar filtros", + "Click here to resend the verification email.": "Haz clic aquí para reenviar el correo de verificación.", + "Close": "Cerrar", + "Command palette": "Paleta de comandos", + "Confirm": "Confirmar", + "Confirm password": "Confirmar contraseña", + "Confirm your password": "Confirma tu contraseña", + "Continue": "Continuar", + "Continue setup": "Continuar la configuración", + "Create": "Crear", + "Create account": "Crear cuenta", + "Create an account": "Crear una cuenta", + "Create your account": "Crea tu cuenta", + "Created": "Creado", + "Current password": "Contraseña actual", + "Dark": "Oscuro", + "Default": "Predeterminado", + "Delete": "Eliminar", + "Delete account": "Eliminar cuenta", + "Delete passkey": "Eliminar llave de acceso", + "Delete passkey :name": "Eliminar la llave de acceso :name", + "Delete your account and all of its resources": "Elimina tu cuenta y todos sus recursos", + "Description": "Descripción", + "Disable 2FA": "Desactivar 2FA", + "Display settings": "Configuración de visualización", + "e.g. Work laptop": "p. ej., Laptop del trabajo", + "Each recovery code can be used once to access your account and will be removed after use.": "Cada código de recuperación sirve una sola vez para acceder a tu cuenta y se elimina después de usarlo.", + "Edit": "Editar", + "Edit :name": "Editar :name", + "Email": "Correo electrónico", + "Email address": "Dirección de correo electrónico", + "Email password reset link": "Enviar enlace de restablecimiento", + "Email verification": "Verificación del correo electrónico", + "email@example.com": "correo@ejemplo.com", + "Ember": "Brasa", + "Enable 2FA": "Activar 2FA", + "Enable two-factor authentication": "Activar la autenticación de dos factores", + "Ensure your account is using a long, random password to stay secure": "Usa una contraseña larga y aleatoria para mantener tu cuenta segura", + "Enter recovery code": "Ingresa un código de recuperación", + "Enter the 6-digit code from your authenticator app": "Ingresa el código de 6 dígitos de tu aplicación de autenticación", + "Enter the authentication code provided by your authenticator application.": "Ingresa el código que te proporciona tu aplicación de autenticación.", + "Enter your email to receive a password reset link": "Ingresa tu correo electrónico para recibir un enlace de restablecimiento", + "Forgot password": "Contraseña olvidada", + "Forgot password?": "¿Olvidaste tu contraseña?", + "Full name": "Nombre completo", + "General": "General", + "Go to first page": "Ir a la primera página", + "Go to last page": "Ir a la última página", + "Go to next page": "Ir a la página siguiente", + "Go to previous page": "Ir a la página anterior", + "Hide password": "Ocultar contraseña", + "Hide recovery codes": "Ocultar códigos de recuperación", + "High contrast": "Alto contraste", + "If you need more, click :action above.": "Si necesitas más, haz clic en :action arriba.", + "It takes a minute. An admin grants your access afterwards.": "Solo toma un minuto. Después, un administrador te dará acceso.", + "Language": "Idioma", + "Last used :date": "Último uso el :date", + "Leave — back to :name": "Salir — volver a :name", + "Light": "Claro", + "Loading recovery codes": "Cargando códigos de recuperación", + "log in": "iniciar sesión", + "Log in": "Iniciar sesión", + "Log in to continue to your workspace.": "Inicia sesión para continuar a tu espacio de trabajo.", + "Log out": "Cerrar sesión", + "login using a recovery code": "iniciar sesión con un código de recuperación", + "login using an authentication code": "iniciar sesión con un código de autenticación", + "Manage your profile and account settings": "Administra tu perfil y la configuración de tu cuenta", + "Manage your two-factor authentication settings": "Administra la configuración de la autenticación de dos factores", + "Management": "Administración", + "Modules plug into one shell": "Módulos que se conectan a una misma base", + "Name": "Nombre", + "Navigation": "Navegación", + "Navigation menu": "Menú de navegación", + "Never used": "Nunca usada", + "New password": "Nueva contraseña", + "New to :name?": "¿Eres nuevo en :name?", + "No results": "Sin resultados", + "No results found.": "No se encontraron resultados.", + "No results.": "Sin resultados.", + "Once your account is deleted, all of its resources and data will also be permanently deleted. Please enter your password to confirm you would like to permanently delete your account.": "Al eliminar tu cuenta, también se eliminarán de forma permanente todos sus recursos y datos. Ingresa tu contraseña para confirmar que quieres eliminar tu cuenta de forma permanente.", + "Open menu": "Abrir menú", + "Open navigation": "Abrir navegación", + "or": "o", + "or you can": "o puedes", + "or, enter the code manually": "o ingresa el código manualmente", + "Or, return to": "O vuelve a", + "Page :page of :total": "Página :page de :total", + "Passkey name": "Nombre de la llave de acceso", + "Passkeys": "Llaves de acceso", + "Passkeys replace your password and one-time codes during login. Your device verifies your identity with a fingerprint, face, or PIN and never shares that data with us.": "Las llaves de acceso reemplazan tu contraseña y los códigos de un solo uso al iniciar sesión. Tu dispositivo verifica tu identidad con tu huella, tu rostro o un PIN y nunca comparte esos datos con nosotros.", + "Password": "Contraseña", + "Password settings": "Configuración de la contraseña", + "Password updated.": "Contraseña actualizada.", + "Permissions, never guesswork": "Permisos, nunca suposiciones", + "Please confirm access to your account by entering one of your emergency recovery codes.": "Confirma el acceso a tu cuenta ingresando uno de tus códigos de recuperación de emergencia.", + "Please enter your new password below": "Ingresa tu nueva contraseña a continuación", + "Please proceed with caution, this cannot be undone.": "Procede con cuidado: esta acción no se puede deshacer.", + "Please verify your email address by clicking on the link we just emailed to you.": "Verifica tu dirección de correo electrónico haciendo clic en el enlace que acabamos de enviarte.", + "Preferences": "Preferencias", + "Profile": "Perfil", + "Profile information": "Información del perfil", + "Profile settings": "Configuración del perfil", + "Profile updated.": "Perfil actualizado.", + "Recovery code": "Código de recuperación", + "Recovery codes": "Códigos de recuperación", + "Recovery codes let you regain access if you lose your 2FA device. Store them in a secure password manager.": "Los códigos de recuperación te permiten recuperar el acceso si pierdes tu dispositivo de 2FA. Guárdalos en un gestor de contraseñas seguro.", + "Regenerate codes": "Regenerar códigos", + "Register": "Registrarse", + "Remember me": "Recordarme", + "Resend verification email": "Reenviar correo de verificación", + "Reset": "Restablecer", + "Reset password": "Restablecer contraseña", + "Role": "Rol", + "Roles": "Roles", + "Rows per page": "Filas por página", + "Save": "Guardar", + "Save changes": "Guardar cambios", + "Save password": "Guardar contraseña", + "Search": "Buscar", + "Search...": "Buscar…", + "Settings": "Configuración", + "Show password": "Mostrar contraseña", + "Showing :from to :to of :total": "Mostrando :from a :to de :total", + "Sidebar end": "Barra lateral al final", + "Sidebar start": "Barra lateral al inicio", + "Sign in securely with your device's screen lock or a hardware key": "Inicia sesión de forma segura con el bloqueo de pantalla de tu dispositivo o una llave física", + "Sign in with a passkey": "Iniciar sesión con una llave de acceso", + "Something went wrong.": "Algo salió mal.", + "System": "Sistema", + "The open hall for your operations.": "El espacio abierto para tus operaciones.", + "Theme": "Tema", + "Themes and layouts for every team": "Temas y diseños para cada equipo", + "This browser does not support passkeys.": "Este navegador no admite llaves de acceso.", + "This is a secure area of the application. Please confirm your password before continuing.": "Esta es un área segura de la aplicación. Confirma tu contraseña para continuar.", + "this passkey": "esta llave de acceso", + "This will permanently delete :name and cannot be undone.": "Esto eliminará :name de forma permanente y no se puede deshacer.", + "This will permanently delete :name and it can no longer be used to sign in.": "Esto eliminará :name de forma permanente y ya no podrá usarse para iniciar sesión.", + "To finish enabling two-factor authentication, scan the QR code or enter the setup key in your authenticator app": "Para terminar de activar la autenticación de dos factores, escanea el código QR o ingresa la clave de configuración en tu aplicación de autenticación", + "Toggle sidebar": "Mostrar u ocultar la barra lateral", + "Toggle sidebar collapse": "Contraer o expandir la barra lateral", + "Topbar": "Barra superior", + "Two-factor authentication": "Autenticación de dos factores", + "Two-factor authentication enabled": "Autenticación de dos factores activada", + "Two-factor authentication is now enabled. Scan the QR code or enter the setup key in your authenticator app.": "La autenticación de dos factores ya está activada. Escanea el código QR o ingresa la clave de configuración en tu aplicación de autenticación.", + "Update password": "Cambiar contraseña", + "Update your account's appearance settings": "Cambia la apariencia de tu cuenta", + "Update your name and email address": "Cambia tu nombre y tu dirección de correo electrónico", + "Users": "Usuarios", + "Verified": "Verificado", + "Verify authentication code": "Verificar código de autenticación", + "Verify email": "Verificar correo electrónico", + "View recovery codes": "Ver códigos de recuperación", + "Warning": "Advertencia", + "Welcome": "Te damos la bienvenida", + "Welcome back": "Qué bueno verte de nuevo", + "When you enable two-factor authentication, you will be prompted for a secure pin during login. This pin can be retrieved from a TOTP-supported application on your phone.": "Cuando actives la autenticación de dos factores, se te pedirá un código seguro al iniciar sesión. Puedes obtenerlo en una aplicación compatible con TOTP en tu teléfono.", + "You will be prompted for a secure, random pin during login, which you can retrieve from the TOTP-supported application on your phone.": "Se te pedirá un código seguro y aleatorio al iniciar sesión, que puedes obtener en la aplicación compatible con TOTP de tu teléfono.", + "Your email address is unverified.": "Tu dirección de correo electrónico no está verificada.", + "Setup key": "Clave de configuración", + "Copy setup key": "Copiar clave de configuración", + "Impersonating :name — acting as this user.": "Suplantando a :name — estás actuando como este usuario.", + "Main navigation": "Navegación principal", + "Confirm your password to change your email address.": "Confirma tu contraseña para cambiar tu dirección de correo electrónico.", + "Status": "Estado", + "Currency": "Moneda", + "You cannot grant the :role role.": "No puedes asignar el rol :role.", + "You cannot grant the :permission permission.": "No puedes asignar el permiso :permission.", + "pending": "pendiente", + "You don’t have access to this page": "No tienes acceso a esta página", + "Your account isn’t allowed to open it. If you think it should be, ask an administrator.": "Tu cuenta no tiene permiso para abrirla. Si crees que debería tenerlo, pídeselo a un administrador.", + "Page not found": "Página no encontrada", + "The page you’re looking for doesn’t exist or has moved.": "La página que buscas no existe o se movió.", + "Too many requests": "Demasiadas solicitudes", + "Please wait a moment before trying again.": "Espera un momento antes de volver a intentarlo.", + "Something went wrong": "Algo salió mal", + "An error on our side stopped this page from loading. Please try again shortly.": "Un error de nuestra parte impidió que se cargara esta página. Vuelve a intentarlo en un momento.", + "Down for maintenance": "En mantenimiento", + "We’re making improvements and will be back soon.": "Estamos haciendo mejoras y volveremos pronto.", + "Try again": "Volver a intentar", + "Go back": "Volver", + "Go to home": "Ir al inicio", + "The page expired. Please try again.": "La página expiró. Vuelve a intentarlo.", + "Automatic (this browser)": "Automática (este navegador)", + "Search timezones...": "Buscar zonas horarias…", + "No timezone found.": "No se encontró ninguna zona horaria.", + "Language and region": "Idioma y región", + "Choose the language and the timezone dates are shown in": "Elige el idioma y la zona horaria en que se muestran las fechas", + "Timezone": "Zona horaria", + "Photo": "Foto", + "Profile photo": "Foto de perfil", + "Change": "Cambiar", + "Upload": "Subir", + "Remove": "Quitar", + "Photo updated.": "Foto actualizada.", + "Photo removed.": "Foto eliminada.", + "Need help? Contact": "¿Necesitas ayuda? Escribe a", + "Open": "Abrir", + "All notifications marked as read.": "Todas las notificaciones se marcaron como leídas.", + "Notification settings saved.": "Configuración de notificaciones guardada.", + "Notifications": "Notificaciones", + "Mark all as read": "Marcar todo como leído", + "You're all caught up.": "Estás al día.", + "View all notifications": "Ver todas las notificaciones", + "No notifications yet.": "Aún no hay notificaciones.", + "Email settings": "Configuración de correo electrónico", + "Notification settings": "Configuración de notificaciones", + "Notifications always appear under the bell. Choose whether they reach your inbox too.": "Las notificaciones siempre aparecen en la campana. Elige si también quieres recibirlas en tu bandeja de entrada.", + "Email me my notifications": "Enviarme mis notificaciones por correo electrónico", + "Security emails (password resets, sign-in codes) are always sent.": "Los correos de seguridad (restablecimiento de contraseña, códigos de inicio de sesión) se envían siempre.", + "Search records, pages and preferences": "Buscar registros, páginas y preferencias", + "Search records, pages and preferences...": "Buscar registros, páginas y preferencias…", + "Search is unavailable right now.": "La búsqueda no está disponible en este momento.", + "Sessions": "Sesiones", + ":browser on :platform": ":browser en :platform", + "Unknown device": "Dispositivo desconocido", + "Browser sessions": "Sesiones del navegador", + "Where you are signed in. If you see a device you don’t recognize, sign out of your other sessions and change your password.": "Dónde tienes la sesión iniciada. Si ves un dispositivo que no reconoces, cierra tus otras sesiones y cambia tu contraseña.", + "Last active :date": "Última actividad el :date", + "This device": "Este dispositivo", + "Sign out other sessions": "Cerrar las otras sesiones", + "Enter your password to sign out of every other browser and device, including ones that chose “Remember me”.": "Ingresa tu contraseña para cerrar la sesión en todos los demás navegadores y dispositivos, incluidos los que eligieron «Recordarme».", + "Signed out of your other sessions.": "Se cerraron tus otras sesiones.", + "All rights reserved.": "Todos los derechos reservados.", + "Hello!": "¡Hola!", + "Regards,": "Saludos,", + "Whoops!": "¡Ups!", + "If you're having trouble clicking the \":actionText\" button, copy and paste the URL below\ninto your web browser:": "Si tienes problemas para hacer clic en el botón «:actionText», copia y pega la siguiente URL\nen tu navegador web:", + "If you did not create an account, no further action is required.": "Si no creaste una cuenta, no tienes que hacer nada más.", + "If you did not request a password reset, no further action is required.": "Si no solicitaste restablecer tu contraseña, no tienes que hacer nada más.", + "Please click the button below to verify your email address.": "Haz clic en el botón de abajo para verificar tu dirección de correo electrónico.", + "Reset Password": "Restablecer contraseña", + "Reset your password": "Restablece tu contraseña", + "This password reset link will expire in :count minutes.": "Este enlace para restablecer la contraseña vencerá en :count minutos.", + "Verify Email Address": "Verificar dirección de correo electrónico", + "Verify your email address": "Verifica tu dirección de correo electrónico", + "You are receiving this email because we received a password reset request for your account.": "Recibes este correo porque recibimos una solicitud para restablecer la contraseña de tu cuenta.", + "Dismiss announcement": "Cerrar anuncio", + "Select all rows": "Seleccionar todas las filas", + "Select row": "Seleccionar fila", + "Clear selection": "Borrar selección", + "Delete selected": "Eliminar selección", + ":count could not be deleted.|:count could not be deleted.": "No se pudo eliminar :count.|No se pudieron eliminar :count.", + "Stopped impersonating :name.": "Dejaste de suplantar a :name.", + "You are the only administrator. Give someone else the role before deleting your account.": "Eres el único administrador. Asigna el rol a otra persona antes de eliminar tu cuenta.", + "That can’t be done any more: something changed in the meantime. Check and try again.": "Ya no se puede hacer: algo cambió mientras tanto. Revisa y vuelve a intentarlo.", + ":count selected|:count selected": ":count seleccionado|:count seleccionados", + "Notifications (:count unread)|Notifications (:count unread)": "Notificaciones (:count sin leer)|Notificaciones (:count sin leer)", + ":count unread|:count unread": ":count sin leer|:count sin leer", + "Failed to fetch QR code": "No se pudo cargar el código QR", + "Failed to fetch a setup key": "No se pudo cargar la clave de configuración", + "Failed to fetch recovery codes": "No se pudieron cargar los códigos de recuperación", + "Permissions": "Permisos", + "Publish": "Publicar", + "Revoke": "Revocar", + "Settings saved.": "Configuración guardada.", + "Could not copy to the clipboard. Select the text and copy it instead.": "No se pudo copiar al portapapeles. Selecciona el texto y cópialo manualmente.", + "created": "Creado", + "updated": "Modificado", + "deleted": "Eliminado", + "account-deleted": "Cuenta eliminada", + "avatar-removed": "Foto eliminada", + "avatar-updated": "Foto modificada", + "impersonation-left": "Fin de la suplantación de usuario", + "other-sessions-signed-out": "Cierre de las otras sesiones", + "+:count more|+:count more": "+:count más|+:count más", + "Not verified": "No verificado", + "Terms of Service": "Términos del servicio", + "Privacy Policy": "Política de privacidad", + "Cookie Policy": "Política de cookies", + "Analytics": "Analítica", + "Marketing": "Marketing", + "Count visits and see how the app is used, so we can improve it.": "Contar las visitas y ver cómo se usa la aplicación para poder mejorarla.", + "Personalised advertising and sharing data with advertising partners.": "Publicidad personalizada e intercambio de datos con socios publicitarios.", + "Your privacy choices are saved.": "Se guardaron tus preferencias de privacidad.", + "Thank you. You’re all set.": "Gracias. Todo listo.", + "I accept the Terms of Service and the Privacy Policy": "Acepto los Términos del servicio y la Política de privacidad", + "Strictly necessary": "Estrictamente necesarias", + "Keep you signed in, protect forms and remember your display choices. Always on.": "Mantienen tu sesión iniciada, protegen los formularios y recuerdan tus preferencias de visualización. Siempre activas.", + "Off: your browser sends a Global Privacy Control signal.": "Desactivado: tu navegador envía una señal de Global Privacy Control.", + "Save my choices": "Guardar mis preferencias", + "Your privacy choices": "Tus preferencias de privacidad", + "Legal": "Aviso legal", + "Your privacy": "Tu privacidad", + "We use essential cookies to make this app work. With your consent, we would also use optional cookies to understand how it is used and for marketing. You can change your mind at any time.": "Usamos cookies esenciales para que esta aplicación funcione. Con tu consentimiento, también usaríamos cookies opcionales para entender cómo se usa y con fines de marketing. Puedes cambiar de opinión en cualquier momento.", + "Your browser’s Global Privacy Control signal is on, so we won’t sell or share your personal information.": "La señal de Global Privacy Control de tu navegador está activada, así que no venderemos ni compartiremos tu información personal.", + "Customize": "Personalizar", + "Reject all": "Rechazar todo", + "Accept all": "Aceptar todo", + "Cookie settings": "Configuración de cookies", + "Choose which optional cookies we may use. Strictly necessary cookies are always on.": "Elige qué cookies opcionales podemos usar. Las cookies estrictamente necesarias siempre están activas.", + "Back to the app": "Volver a la aplicación", + "Privacy": "Privacidad", + "Download your data": "Descargar tus datos", + "A copy of everything we hold about you: your account, sessions, notifications, cookie choices and activity, as a JSON file.": "Una copia de todo lo que tenemos sobre ti: tu cuenta, sesiones, notificaciones, preferencias de cookies y actividad, en un archivo JSON.", + "Download my data": "Descargar mis datos", + "Choose which optional cookies we may use in this browser.": "Elige qué cookies opcionales podemos usar en este navegador.", + "Legal documents": "Documentos legales", + "You accepted the Terms of Service on :date.": "Aceptaste los Términos del servicio el :date.", + "Before you continue": "Antes de continuar", + "We’ve updated our terms": "Actualizamos nuestros términos", + "Please read and accept our terms to use the app.": "Lee y acepta nuestros términos para usar la aplicación.", + "Please read and accept the new version to keep using the app.": "Lee y acepta la nueva versión para seguir usando la aplicación.", + "Don’t agree? You can still download your data or delete your account.": "¿No estás de acuerdo? Aún puedes descargar tus datos o eliminar tu cuenta.", + "Privacy settings": "Configuración de privacidad", + "terms-accepted": "Términos aceptados", + "personal-data-exported": "Datos personales exportados", + "personal-data-erased": "Datos personales borrados", + "retention-pruned": "Datos vencidos eliminados", + "Kilometres": "Kilómetros", + "Miles": "Millas" +} diff --git a/lang/es/auth.php b/lang/es/auth.php new file mode 100644 index 0000000..d0b2e8f --- /dev/null +++ b/lang/es/auth.php @@ -0,0 +1,9 @@ + 'Estas credenciales no coinciden con ninguna cuenta.', + 'password' => 'La contraseña es incorrecta.', + 'throttle' => 'Demasiados intentos de inicio de sesión. Vuelve a intentarlo en :seconds segundos.', +]; diff --git a/lang/es/pagination.php b/lang/es/pagination.php new file mode 100644 index 0000000..9cba696 --- /dev/null +++ b/lang/es/pagination.php @@ -0,0 +1,8 @@ + '« Anterior', + 'next' => 'Siguiente »', +]; diff --git a/lang/es/passwords.php b/lang/es/passwords.php new file mode 100644 index 0000000..f55385f --- /dev/null +++ b/lang/es/passwords.php @@ -0,0 +1,11 @@ + 'Tu contraseña se restableció.', + 'sent' => 'Te enviamos por correo electrónico el enlace para restablecer tu contraseña.', + 'throttled' => 'Espera antes de volver a intentarlo.', + 'token' => 'Este token para restablecer la contraseña no es válido.', + 'user' => 'Ningún usuario tiene esta dirección de correo electrónico.', +]; diff --git a/lang/es/validation.php b/lang/es/validation.php new file mode 100644 index 0000000..3da9a9d --- /dev/null +++ b/lang/es/validation.php @@ -0,0 +1,189 @@ + 'El campo :attribute debe ser aceptado.', + 'accepted_if' => 'El campo :attribute debe ser aceptado cuando :other es :value.', + 'active_url' => 'El campo :attribute debe ser una URL válida.', + 'after' => 'El campo :attribute debe ser una fecha posterior a :date.', + 'after_or_equal' => 'El campo :attribute debe ser una fecha posterior o igual a :date.', + 'alpha' => 'El campo :attribute solo debe contener letras.', + 'alpha_dash' => 'El campo :attribute solo debe contener letras, números, guiones y guiones bajos.', + 'alpha_num' => 'El campo :attribute solo debe contener letras y números.', + 'any_of' => 'El campo :attribute no es válido.', + 'array' => 'El campo :attribute debe ser un arreglo.', + 'array_keys' => 'El campo :attribute solo debe contener las siguientes claves: :values.', + 'ascii' => 'El campo :attribute solo debe contener caracteres alfanuméricos y símbolos de un solo byte.', + 'base64' => 'El campo :attribute debe ser una cadena Base64 válida.', + 'before' => 'El campo :attribute debe ser una fecha anterior a :date.', + 'before_or_equal' => 'El campo :attribute debe ser una fecha anterior o igual a :date.', + 'between' => [ + 'array' => 'El campo :attribute debe tener entre :min y :max elementos.', + 'file' => 'El campo :attribute debe pesar entre :min y :max kilobytes.', + 'numeric' => 'El campo :attribute debe estar entre :min y :max.', + 'string' => 'El campo :attribute debe tener entre :min y :max caracteres.', + ], + 'boolean' => 'El campo :attribute debe ser verdadero o falso.', + 'can' => 'El campo :attribute contiene un valor no autorizado.', + 'confirmed' => 'La confirmación del campo :attribute no coincide.', + 'contains' => 'Falta un valor obligatorio en el campo :attribute.', + 'current_password' => 'La contraseña es incorrecta.', + 'date' => 'El campo :attribute debe ser una fecha válida.', + 'date_equals' => 'El campo :attribute debe ser una fecha igual a :date.', + 'date_format' => 'El campo :attribute debe tener el formato :format.', + 'decimal' => 'El campo :attribute debe tener :decimal decimales.', + 'declined' => 'El campo :attribute debe ser rechazado.', + 'declined_if' => 'El campo :attribute debe ser rechazado cuando :other es :value.', + 'different' => 'Los campos :attribute y :other deben ser diferentes.', + 'digits' => 'El campo :attribute debe tener :digits dígitos.', + 'digits_between' => 'El campo :attribute debe tener entre :min y :max dígitos.', + 'dimensions' => 'Las dimensiones de la imagen :attribute no son válidas.', + 'distinct' => 'El campo :attribute tiene un valor duplicado.', + 'doesnt_contain' => 'El campo :attribute no debe contener ninguno de los siguientes valores: :values.', + 'doesnt_end_with' => 'El campo :attribute no debe terminar con ninguno de los siguientes valores: :values.', + 'doesnt_start_with' => 'El campo :attribute no debe empezar con ninguno de los siguientes valores: :values.', + 'email' => 'El campo :attribute debe ser una dirección de correo electrónico válida.', + 'encoding' => 'El campo :attribute debe estar codificado en :encoding.', + 'ends_with' => 'El campo :attribute debe terminar con uno de los siguientes valores: :values.', + 'enum' => 'El valor seleccionado para :attribute no es válido.', + 'exists' => 'El valor seleccionado para :attribute no es válido.', + 'extensions' => 'El campo :attribute debe tener una de las siguientes extensiones: :values.', + 'file' => 'El campo :attribute debe ser un archivo.', + 'filled' => 'El campo :attribute debe tener un valor.', + 'gt' => [ + 'array' => 'El campo :attribute debe tener más de :value elementos.', + 'file' => 'El campo :attribute debe pesar más de :value kilobytes.', + 'numeric' => 'El campo :attribute debe ser mayor que :value.', + 'string' => 'El campo :attribute debe tener más de :value caracteres.', + ], + 'gte' => [ + 'array' => 'El campo :attribute debe tener al menos :value elementos.', + 'file' => 'El campo :attribute debe pesar al menos :value kilobytes.', + 'numeric' => 'El campo :attribute debe ser mayor o igual que :value.', + 'string' => 'El campo :attribute debe tener al menos :value caracteres.', + ], + 'hex_color' => 'El campo :attribute debe ser un color hexadecimal válido.', + 'image' => 'El campo :attribute debe ser una imagen.', + 'in' => 'El valor seleccionado para :attribute no es válido.', + 'in_array' => 'El campo :attribute debe existir en :other.', + 'in_array_keys' => 'El campo :attribute debe contener al menos una de las siguientes claves: :values.', + 'integer' => 'El campo :attribute debe ser un número entero.', + 'ip' => 'El campo :attribute debe ser una dirección IP válida.', + 'ipv4' => 'El campo :attribute debe ser una dirección IPv4 válida.', + 'ipv6' => 'El campo :attribute debe ser una dirección IPv6 válida.', + 'json' => 'El campo :attribute debe ser una cadena JSON válida.', + 'list' => 'El campo :attribute debe ser una lista.', + 'lowercase' => 'El campo :attribute debe estar en minúsculas.', + 'lt' => [ + 'array' => 'El campo :attribute debe tener menos de :value elementos.', + 'file' => 'El campo :attribute debe pesar menos de :value kilobytes.', + 'numeric' => 'El campo :attribute debe ser menor que :value.', + 'string' => 'El campo :attribute debe tener menos de :value caracteres.', + ], + 'lte' => [ + 'array' => 'El campo :attribute no debe tener más de :value elementos.', + 'file' => 'El campo :attribute debe pesar como máximo :value kilobytes.', + 'numeric' => 'El campo :attribute debe ser menor o igual que :value.', + 'string' => 'El campo :attribute debe tener como máximo :value caracteres.', + ], + 'mac_address' => 'El campo :attribute debe ser una dirección MAC válida.', + 'max' => [ + 'array' => 'El campo :attribute no debe tener más de :max elementos.', + 'file' => 'El campo :attribute no debe pesar más de :max kilobytes.', + 'numeric' => 'El campo :attribute no debe ser mayor que :max.', + 'string' => 'El campo :attribute no debe superar los :max caracteres.', + ], + 'max_digits' => 'El campo :attribute no debe tener más de :max dígitos.', + 'mimes' => 'El campo :attribute debe ser un archivo de tipo: :values.', + 'mimetypes' => 'El campo :attribute debe ser un archivo de tipo: :values.', + 'min' => [ + 'array' => 'El campo :attribute debe tener al menos :min elementos.', + 'file' => 'El campo :attribute debe pesar al menos :min kilobytes.', + 'numeric' => 'El campo :attribute debe ser al menos :min.', + 'string' => 'El campo :attribute debe tener al menos :min caracteres.', + ], + 'min_digits' => 'El campo :attribute debe tener al menos :min dígitos.', + 'missing' => 'El campo :attribute no debe estar presente.', + 'missing_if' => 'El campo :attribute no debe estar presente cuando :other es :value.', + 'missing_unless' => 'El campo :attribute no debe estar presente a menos que :other sea :value.', + 'missing_with' => 'El campo :attribute no debe estar presente cuando :values está presente.', + 'missing_with_all' => 'El campo :attribute no debe estar presente cuando :values están presentes.', + 'multiple_of' => 'El campo :attribute debe ser múltiplo de :value.', + 'not_in' => 'El valor seleccionado para :attribute no es válido.', + 'not_regex' => 'El formato del campo :attribute no es válido.', + 'numeric' => 'El campo :attribute debe ser un número.', + 'password' => [ + 'letters' => 'El campo :attribute debe contener al menos una letra.', + 'mixed' => 'El campo :attribute debe contener al menos una mayúscula y una minúscula.', + 'numbers' => 'El campo :attribute debe contener al menos un número.', + 'symbols' => 'El campo :attribute debe contener al menos un símbolo.', + 'uncompromised' => 'El valor de :attribute apareció en una filtración de datos. Elige otro.', + ], + 'present' => 'El campo :attribute debe estar presente.', + 'present_if' => 'El campo :attribute debe estar presente cuando :other es :value.', + 'present_unless' => 'El campo :attribute debe estar presente a menos que :other sea :value.', + 'present_with' => 'El campo :attribute debe estar presente cuando :values está presente.', + 'present_with_all' => 'El campo :attribute debe estar presente cuando :values están presentes.', + 'prohibited' => 'El campo :attribute no está permitido.', + 'prohibited_if' => 'El campo :attribute no está permitido cuando :other es :value.', + 'prohibited_if_accepted' => 'El campo :attribute no está permitido cuando :other es aceptado.', + 'prohibited_if_declined' => 'El campo :attribute no está permitido cuando :other es rechazado.', + 'prohibited_unless' => 'El campo :attribute no está permitido a menos que :other esté en :values.', + 'prohibits' => 'El campo :attribute impide que :other esté presente.', + 'regex' => 'El formato del campo :attribute no es válido.', + 'required' => 'El campo :attribute es obligatorio.', + 'required_array_keys' => 'El campo :attribute debe contener entradas para: :values.', + 'required_if' => 'El campo :attribute es obligatorio cuando :other es :value.', + 'required_if_accepted' => 'El campo :attribute es obligatorio cuando :other es aceptado.', + 'required_if_declined' => 'El campo :attribute es obligatorio cuando :other es rechazado.', + 'required_unless' => 'El campo :attribute es obligatorio a menos que :other esté en :values.', + 'required_with' => 'El campo :attribute es obligatorio cuando :values está presente.', + 'required_with_all' => 'El campo :attribute es obligatorio cuando :values están presentes.', + 'required_without' => 'El campo :attribute es obligatorio cuando :values no está presente.', + 'required_without_all' => 'El campo :attribute es obligatorio cuando ninguno de :values está presente.', + 'same' => 'El campo :attribute debe coincidir con :other.', + 'size' => [ + 'array' => 'El campo :attribute debe contener :size elementos.', + 'file' => 'El campo :attribute debe pesar :size kilobytes.', + 'numeric' => 'El campo :attribute debe ser :size.', + 'string' => 'El campo :attribute debe tener :size caracteres.', + ], + 'starts_with' => 'El campo :attribute debe empezar con uno de los siguientes valores: :values.', + 'string' => 'El campo :attribute debe ser una cadena de texto.', + 'timezone' => 'El campo :attribute debe ser una zona horaria válida.', + 'unique' => 'El valor del campo :attribute ya está en uso.', + 'uploaded' => 'No se pudo subir el campo :attribute.', + 'uppercase' => 'El campo :attribute debe estar en mayúsculas.', + 'url' => 'El campo :attribute debe ser una URL válida.', + 'ulid' => 'El campo :attribute debe ser un ULID válido.', + 'uuid' => 'El campo :attribute debe ser un UUID válido.', + + 'custom' => [], + + /* + * Field names as people read them. A module adds its own fields' + * names in its FormRequest's attributes() (with __()). + */ + 'attributes' => [ + 'name' => 'nombre', + 'email' => 'correo electrónico', + 'password' => 'contraseña', + 'password_confirmation' => 'confirmación de la contraseña', + 'current_password' => 'contraseña actual', + 'code' => 'código', + 'recovery_code' => 'código de recuperación', + 'roles' => 'roles', + 'locale' => 'idioma', + 'timezone' => 'zona horaria', + 'avatar' => 'foto', + 'logo' => 'logotipo', + 'support_email' => 'correo electrónico de soporte', + 'notify_by_email' => 'notificaciones por correo electrónico', + 'abilities' => 'permisos', + 'expires_in_days' => 'vencimiento', + 'q' => 'búsqueda', + 'description' => 'descripción', + 'currency' => 'moneda', + ], +]; diff --git a/resources/js/components/admin/admin-command-palette.tsx b/resources/js/components/admin/admin-command-palette.tsx index 24ede0e..7d40aaa 100644 --- a/resources/js/components/admin/admin-command-palette.tsx +++ b/resources/js/components/admin/admin-command-palette.tsx @@ -219,7 +219,7 @@ export function AdminCommandPalette({ updateLayout({ nav_placement: option.value }); }} > - + {t('Navigation')}: {t(option.label)} diff --git a/resources/js/components/admin/admin-sidebar.tsx b/resources/js/components/admin/admin-sidebar.tsx index b679191..c5179fd 100644 --- a/resources/js/components/admin/admin-sidebar.tsx +++ b/resources/js/components/admin/admin-sidebar.tsx @@ -62,7 +62,10 @@ export function AdminSidebar({ > {t('Search')} - + {shortcutLabel} diff --git a/resources/js/components/admin/admin-topbar.tsx b/resources/js/components/admin/admin-topbar.tsx index a2841ab..7d9b3b7 100644 --- a/resources/js/components/admin/admin-topbar.tsx +++ b/resources/js/components/admin/admin-topbar.tsx @@ -247,7 +247,10 @@ export function AdminTopbar({ > {t('Search')} - + {shortcutLabel} diff --git a/resources/js/components/admin/theme-settings-menu.tsx b/resources/js/components/admin/theme-settings-menu.tsx index 1c4288e..bd7c42b 100644 --- a/resources/js/components/admin/theme-settings-menu.tsx +++ b/resources/js/components/admin/theme-settings-menu.tsx @@ -85,7 +85,7 @@ export function ThemeSettingsMenu() { updateLayout({ nav_placement: option.value }) } > - + {t(option.label)} ))} diff --git a/resources/js/components/ui/alert-dialog.tsx b/resources/js/components/ui/alert-dialog.tsx index d3073ab..6f0c6b9 100644 --- a/resources/js/components/ui/alert-dialog.tsx +++ b/resources/js/components/ui/alert-dialog.tsx @@ -58,6 +58,8 @@ function AlertDialogContent({ data-slot="alert-dialog-content" data-size={size} className={cn( + // Centred (offset half-way, then pulled back by half): the same both ways. + // theme-lint-allow-next-line physical-direction "group/alert-dialog-content fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border bg-background p-6 shadow-lg duration-200 data-[size=sm]:max-w-xs data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[size=default]:sm:max-w-lg", className )} @@ -75,7 +77,7 @@ function AlertDialogHeader({
svg]:size-3.5", className)} {...props} > - {children ?? } + {children ?? } ) } diff --git a/resources/js/components/ui/command.tsx b/resources/js/components/ui/command.tsx index 3b4902f..e8d57d9 100644 --- a/resources/js/components/ui/command.tsx +++ b/resources/js/components/ui/command.tsx @@ -158,7 +158,7 @@ function CommandShortcut({ {children} - + Close @@ -74,7 +76,7 @@ function DialogHeader({ className, ...props }: React.ComponentProps<"div">) { return (
) diff --git a/resources/js/components/ui/dropdown-menu.tsx b/resources/js/components/ui/dropdown-menu.tsx index 86cb1b1..288f612 100644 --- a/resources/js/components/ui/dropdown-menu.tsx +++ b/resources/js/components/ui/dropdown-menu.tsx @@ -72,7 +72,7 @@ function DropdownMenuItem({ data-inset={inset} data-variant={variant} className={cn( - "focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive-foreground data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/40 data-[variant=destructive]:focus:text-destructive-foreground data-[variant=destructive]:*:[svg]:!text-destructive-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", + "focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive-foreground data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/40 data-[variant=destructive]:focus:text-destructive-foreground data-[variant=destructive]:*:[svg]:!text-destructive-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:ps-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", className )} {...props} @@ -90,13 +90,13 @@ function DropdownMenuCheckboxItem({ - + @@ -126,12 +126,12 @@ function DropdownMenuRadioItem({ - + @@ -153,7 +153,7 @@ function DropdownMenuLabel({ data-slot="dropdown-menu-label" data-inset={inset} className={cn( - "px-2 py-1.5 text-sm font-medium data-[inset]:pl-8", + "px-2 py-1.5 text-sm font-medium data-[inset]:ps-8", className )} {...props} @@ -182,7 +182,7 @@ function DropdownMenuShortcut({ {children} - + ) } diff --git a/resources/js/components/ui/input-otp.tsx b/resources/js/components/ui/input-otp.tsx index 195f3e9..e234584 100644 --- a/resources/js/components/ui/input-otp.tsx +++ b/resources/js/components/ui/input-otp.tsx @@ -11,7 +11,8 @@ const InputOTP = React.forwardRef< diff --git a/resources/js/components/ui/sheet.tsx b/resources/js/components/ui/sheet.tsx index daf9059..b83a5e3 100644 --- a/resources/js/components/ui/sheet.tsx +++ b/resources/js/components/ui/sheet.tsx @@ -58,8 +58,12 @@ function SheetContent({ className={cn( "bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500", side === "right" && + // `side` is physical: callers pick it from the reading direction. + // theme-lint-allow-next-line physical-direction "data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm", side === "left" && + // `side` is physical: callers pick it from the reading direction. + // theme-lint-allow-next-line physical-direction "data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm", side === "top" && "data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b", @@ -70,7 +74,7 @@ function SheetContent({ {...props} > {children} - + Close diff --git a/resources/js/components/ui/sidebar.tsx b/resources/js/components/ui/sidebar.tsx index c28aa2e..371b70e 100644 --- a/resources/js/components/ui/sidebar.tsx +++ b/resources/js/components/ui/sidebar.tsx @@ -1,3 +1,4 @@ +import { useDirection } from "@radix-ui/react-direction" import { Slot } from "@radix-ui/react-slot" import type { VariantProps} from "class-variance-authority"; import { cva } from "class-variance-authority" @@ -160,13 +161,16 @@ function Sidebar({ collapsible?: "offcanvas" | "icon" | "none" }) { const { isMobile, state, openMobile, setOpenMobile } = useSidebar() + // `side` is logical (left = the reading start); the sheet takes a physical one. + const isRtl = useDirection() === "rtl" if (collapsible === "none") { return (
{children}
@@ -203,7 +207,7 @@ function Sidebar({ return (