0xGeegZ / ai-micro-saas-starter

https://ai-micro-saas-starter.generatedby.com/
MIT License
30 stars 7 forks source link

Feat add Translation #9

Closed 0xGeegZ closed 11 months ago

0xGeegZ commented 11 months ago

Implement Next Intl for Translation.

Tasks

Summary by CodeRabbit

coderabbitai[bot] commented 11 months ago

Walkthrough

This pull request introduces significant changes to support internationalization and localization, modifies environment variables, and updates the user interface text. It also enhances the middleware to handle locale-specific routes and redirects, and updates the sign-in and sign-up components to support different locales.

Changes

File(s) Summary
.env.example, env.mjs Environment variables related to Clerk authentication and a new API key were added, modified, and relocated.
.nvmrc Node.js version was updated to v20.8.1.
next.config.mjs The Next.js configuration was updated to include the withNextIntl plugin for internationalization.
src/app/[locale]/layout.tsx, src/app/[locale]/(dashboard)/dashboard/layout.tsx Layout components were updated to handle locale-specific rendering and validation.
src/app/[locale]/(dashboard)/dashboard/page.tsx, src/app/[locale]/(dashboard)/dashboard/(routes)/image/page.tsx Minor UI text changes and data handling updates were made in the dashboard and image history pages.
src/app/[locale]/(auth)/(routes)/sign-in/[[...sign-in]]/page.tsx, src/app/[locale]/(auth)/(routes)/sign-up/[[...sign-up]]/page.tsx Sign-in and sign-up components were updated to handle locale-specific redirects.
src/components/landing/landing-navbar.tsx, src/components/navbar.tsx Navbar components were updated to include a language switcher and handle locale-specific URLs.
src/middleware.ts Middleware was enhanced to handle locale-specific routes and redirects, and to execute internationalization middleware before authentication.
src/config/constants.ts Constants were added, updated, and removed to reflect changes in the application settings and site colors.

"In the land of code, where logic is king, šŸ¤“ A rabbit hopped in, with changes to bring. šŸ‡ With locales in mind, and UI so fine, šŸŒ He tweaked and he tuned, till everything aligned. šŸŽÆ Now users worldwide, in their own tongue, can sing! šŸŽ¶"


Tips ### Chat with CodeRabbit Bot (`@coderabbitai`) - If you reply to a *review comment* from CodeRabbit, the bot will automatically respond. - To engage with CodeRabbit bot directly around the specific lines of code in the PR, mention @coderabbitai in your review comment - Note: Review comments are made on code diffs or files, not on the PR overview. - Add `@coderabbitai ignore` anywhere in the PR description to prevent this PR from being reviewed. ### CodeRabbit Commands (invoked as PR comments) - `@coderabbitai pause` to pause the reviews on a PR. - `@coderabbitai resume` to resume the paused reviews. - `@coderabbitai review` to trigger a review. This is useful when automatic reviews are disabled for the repository. - `@coderabbitai help` to get help. Note: For conversation with the bot, please use the review comments on code diffs or files.
vercel[bot] commented 11 months ago

The latest updates on your projects. Learn more about Vercel for Git ā†—ļøŽ

Name Status Preview Comments Updated (UTC)
ai-micro-saas-starter āœ… Ready (Inspect) Visit Preview šŸ’¬ Add feedback Oct 22, 2023 1:15pm
sweep-open-router[bot] commented 11 months ago

Apply Sweep Rules to your PR?