Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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/<code>/*.php`; start from the French ones.
3. Register the locale in `config/app.php` under `available_locales`.
Expand Down
7 changes: 4 additions & 3 deletions THEMING.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 <rule>` on the line above.

Expand Down Expand Up @@ -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.
Expand Down
26 changes: 26 additions & 0 deletions app-modules/Api/lang/ar.json
Original file line number Diff line number Diff line change
@@ -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"
}
26 changes: 26 additions & 0 deletions app-modules/Api/lang/es.json
Original file line number Diff line number Diff line change
@@ -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"
}
20 changes: 20 additions & 0 deletions app-modules/Audit/lang/ar.json
Original file line number Diff line number Diff line change
@@ -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": "أحد المسؤولين"
}
20 changes: 20 additions & 0 deletions app-modules/Audit/lang/es.json
Original file line number Diff line number Diff line change
@@ -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"
}
28 changes: 28 additions & 0 deletions app-modules/Catalog/lang/ar.json
Original file line number Diff line number Diff line change
@@ -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": "الكتالوج"
}
28 changes: 28 additions & 0 deletions app-modules/Catalog/lang/es.json
Original file line number Diff line number Diff line change
@@ -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"
}
21 changes: 21 additions & 0 deletions app-modules/Dashboard/lang/ar.json
Original file line number Diff line number Diff line change
@@ -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"
}
21 changes: 21 additions & 0 deletions app-modules/Dashboard/lang/es.json
Original file line number Diff line number Diff line change
@@ -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"
}
18 changes: 18 additions & 0 deletions app-modules/Roles/lang/ar.json
Original file line number Diff line number Diff line change
@@ -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.": "حدّث اسم الدور وصلاحياته."
}
18 changes: 18 additions & 0 deletions app-modules/Roles/lang/es.json
Original file line number Diff line number Diff line change
@@ -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."
}
44 changes: 44 additions & 0 deletions app-modules/Settings/lang/ar.json
Original file line number Diff line number Diff line change
@@ -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": "تعديل إعدادات النشاط التجاري"
}
Loading
Loading