Skip to content

feat: add locales support#5

Merged
IKatsuba merged 1 commit intomainfrom
locales
Dec 30, 2024
Merged

feat: add locales support#5
IKatsuba merged 1 commit intomainfrom
locales

Conversation

@IKatsuba
Copy link
Owner

This pull request includes significant changes to the apps/api directory, focusing on refactoring route imports, adding middleware for locale handling, and updating route handlers to use the new middleware. The most important changes include moving route files, creating a new middleware for initializing the Faker instance, and updating route handlers to use the context variable for Faker.

Route refactoring:

  • apps/api/main.ts: Changed the import paths for all route files to use the routes directory instead of the previous structure.
  • apps/api/main.ts: Updated the Hono instance to use a new HonoEnv type and renamed the instance from faker to fakerApi.

Middleware addition:

Route handler updates:

@IKatsuba IKatsuba merged commit fcf3a3b into main Dec 30, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments