@thomas-danger
- Member Since
- May 6, 2024
- Lessons Completed
- 82
- Comments Contributed
- 2
- Hours Watched
- 9.91
Recent Activity
Here's what @thomas-danger has been up to this past 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
-
Completed lesson Listing and Counting a Writer's Movies
-
Completed lesson Seeding Movies with One to Many Model Factory Relationships
-
Completed lesson Defining One to Many Relationships with Lucid Models
-
Completed lesson Cascading and Deleting Model Relationships
-
Completed lesson Querying Relationships and Eager Vs Lazy Loading
-
Completed lesson Model Factory Relationships
-
Completed lesson Defining One to One Relationships Within Lucid Models
-
Completed lesson Generating A Unique Movie Slug With Model Hooks
-
Completed lesson Querying Recently Released and Coming Soon Movies
-
Completed lesson Tapping into Model Factory States
-
Completed lesson Reusable Query Statements with Model Query Scopes
-
Completed lesson SQL Parameters and Injection Protection
-
Completed lesson Adding A Profile Model, Migration, Factory, and Controller
-
Completed lesson Altering Tables with Migrations
-
Completed lesson Unmapped and Computed Model Properties
-
Completed lesson Querying Our Movies with the Query Builder
-
Completed lesson Stubbing Fake Data with Model Factories
-
Completed lesson Defining Required Data with Seeders
-
Completed lesson The Basics of CRUD
-
Completed lesson Defining Our Models
-
Completed lesson Introducing Lucid Models
-
Completed lesson The Flow of Migrations
-
Completed lesson Introducing and Defining Database Migrations
-
Completed lesson Understanding our Database Schema
-
Completed lesson Configuring Lucid and our Database Connection
-
Completed lesson HTML Attribute and Class Utilities
-
Completed lesson EdgeJS Templating Basics
-
Completed lesson Easy Imports with NodeJS Subpath Imports
-
Completed lesson Quick Start Apps with Custom Starter Kits
-
Completed lesson Environment Variables and their Validation
-
Completed lesson Singleton Services and the Idea of Caching
-
Completed lesson Defining A Structure for our Movie using Models
-
Completed lesson Cleaning Up Routes with Controllers
-
Completed lesson Extracting Reusable Code with Services
-
Completed lesson Listing Movies from their Markdown Files
-
Completed lesson Reading and Supporting Markdown Content
-
Completed lesson Setting Up Tailwind CSS
-
Completed lesson Vite and Our Assets
-
Completed lesson Validating Route Parameters
-
Completed lesson Loading A Movie Using Route Parameters
-
Completed lesson Linking Between Routes
-
Completed lesson Rendering a View for a Route
-
Completed lesson Routes and How To Create Them
-
Completed lesson Project Structure
-
Completed lesson Creating A New AdonisJS 6 Project
-
Completed lesson What We'll Need Before We Begin
-
Completed lesson Introducing AdonisJS
-
Account created Welcome to Adocasts, @thomas-danger!