Closed megoxv closed 3 months ago
The recent changes enhance the localization and functionality of the invoice management system across multiple files. Key features include the addition of structured translation strings for both Arabic and English, improved internationalization with dynamic translation functions, and refinements in user interface elements. These updates significantly improve user interaction, making it easier for Arabic-speaking and English-speaking users to navigate invoice-related tasks seamlessly.
Files | Change Summary |
---|---|
resources/lang/ar/messages.php , resources/lang/en/messages.php |
Added comprehensive translations for invoice-related terms, enhancing localization support. |
resources/views/pages/view-invoice.blade.php |
Replaced hardcoded labels with translatable strings for better internationalization. |
src/Filament/Resources/InvoiceResource.php |
Introduced new methods for retrieving localized labels, improving form clarity and usability. |
src/Filament/Resources/InvoiceResource/Pages/InvoiceStatus.php |
Updated translation references for improved context in invoice management. |
src/Filament/Resources/InvoiceResource/Pages/ListInvoices.php |
Enhanced localization of action labels and tooltips for a better user experience. |
src/Filament/Resources/InvoiceResource/Pages/ViewInvoice.php |
Modified print action label to be translatable, allowing for dynamic localization. |
src/Filament/Resources/InvoiceResource/RelationManagers/InvoiceLogManager.php , src/Filament/Resources/InvoiceResource/RelationManagers/InvoicePaymentsManager.php |
Added static methods for localized titles and labels in log and payment management. |
src/Filament/Resources/InvoiceResource/Widgets/InvoiceStatsWidget.php |
Replaced hardcoded statistic labels with translatable strings for better adaptability. |
sequenceDiagram
participant User
participant UI
participant Controller
participant LocaleService
participant InvoiceManager
User->>UI: Request Invoice Page
UI->>Controller: Fetch Invoice Data
Controller->>InvoiceManager: Get Invoice Information
InvoiceManager->>Controller: Return Invoice Data
Controller->>LocaleService: Get Localized Strings
LocaleService->>Controller: Provide Translations
Controller->>UI: Render Invoice Page with Translations
UI->>User: Display Translated Invoice Data
In the fields of code, I've hopped with glee,
Adding translations for you and me.
With each new string, our app will shine,
Helping users, both yours and mine.
So here’s to invoices, clear and bright,
A joyful leap, with all in sight! 🐇✨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Summary by CodeRabbit
New Features
Bug Fixes
Documentation