
@thomas-danger
- Member Since
- May 6, 2024
- Lessons Completed
- 82
- Comments Contributed
- 2
- Hours Watched
- 9.92
Recent Activity
Here's what @thomas-danger has been up to this past year
-
Anniversary Thanks for being an Acocasts member for 1 year
-
Replied to Hello Thomas Have you had any methods that have worked for you...
Hello Silvus,
I cannot share my work because it's a project for my job, but here is my process:
I pass the i18n instance via Inertia's shared props.
In my controller, I call a service to retrieve the translation file I need, based on the file name.
I share the filtered translations with the page via
Inertia.share()
.In the frontend (React), I store the translations in a context and recreate a function that mimics the
t
method, as Tom advised.
It needs some optimization, but for now, it's working.
-
Replied to Hey Thomas! The i18n module looks tightly coupled to the AdonisJS...
Hey Tom,
Thanks for the answer !
I will try both methods, yours and the one in the github issue.
-
Started discussion Inertia and i18n
-
Completed lesson Creating An Admin Layout
-
Completed lesson Component Tags, State, and Props
-
Completed lesson Making A Reusable Movie Card Component
-
Completed lesson Validating Query String Filter Values
-
Completed lesson Joining SQL Tables To Order By A Related Column
-
Completed lesson How To Apply A Dynamic Sort Filter To Your Query
-
Completed lesson Filtering Our List by Movie Status
-
Completed lesson Filtering A Query By Pattern Likeness
-
Completed lesson Creating A Movie List Page
-
Completed lesson Protecting Routes with Auth, Guest, and Admin Middleware
-
Completed lesson Remembering A User's Authenticated Session
-
Completed lesson Logging In An Existing User
-
Completed lesson Logging Out An Authenticated User
-
Completed lesson Checking For and Populating an Authenticated User
-
Completed lesson Authenticating A Newly Registered User
-
Completed lesson The Flow of Middleware
-
Completed lesson How To Create A Custom VineJS Validation Rule
-
Completed lesson Creating A Login Form and Validator
-
Completed lesson Creating An EdgeJS Form Input Component
-
Completed lesson Reusing Old Form Values After A Validation Error
-
Completed lesson Displaying Validation Errors and Validating from our Request
-
Completed lesson Validating Form Data with VineJS
-
Completed lesson Easy SVG Icons with Edge Iconify
-
Completed lesson Accepting Form Data
-
Completed lesson How To Query, Sort, and Filter by Pivot Table Data
-
Completed lesson How To Create Factory Relationships from a Pool of Data
-
Completed lesson A Deep Dive Into Relationship CRUD with Models
-
Completed lesson Many-To-Many Model Factory Relationships
-
Completed lesson Defining Many-To-Many Relationships and Pivot Columns
-
Completed lesson Updating Our URL & Populating Filter Field Values
-
Completed lesson Posting & Swapping Filtered Content with HTMX
-
Completed lesson Defining Our AdonisJS Filter Form Handler
-
Completed lesson Creating Our Filter Query with AdonisJS
-
Completed lesson Installing HTMX & Project Overview
-
Completed lesson Using Eager and Lazy Loading to Load A Movie's Writer and Director