Closed valieff closed 3 days ago
The latest updates on your projects. Learn more about Vercel for Git βοΈ
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
foz | β Ready (Inspect) | Visit Preview | π¬ Add feedback | Jul 4, 2024 8:03am |
lios | β Ready (Inspect) | Visit Preview | π¬ Add feedback | Jul 4, 2024 8:03am |
moos | β Ready (Inspect) | Visit Preview | π¬ Add feedback | Jul 4, 2024 8:03am |
traditionaldreamfactory | β Ready (Inspect) | Visit Preview | π¬ Add feedback | Jul 4, 2024 8:03am |
[!IMPORTANT]
Review skipped
More than 25% of the files skipped due to max files limit. The review is being skipped to prevent a low-quality review.
177 files out of 278 files are above the max files limit of 50. Please upgrade to Pro plan to get higher limits.
You can disable this status message by setting the
reviews.review_status
tofalse
in the CodeRabbit configuration file.
This update introduces internationalization (i18n) across multiple applications (foz
, lios
, moos
, tdf
) by adding locale configurations and integrating NextIntlClientProvider
for handling translations. Additionally, it refactors components and functions for improved readability and consistency, ensures proper use of translation hooks, and updates various pages to dynamically load and apply locale data based on user preferences. The changes enhance the user experience by providing localized content and better organized code.
Files/Paths | Change Summary |
---|---|
.../next.config.js |
Added i18n configuration for locales and defaultLocale. |
.../pages/_app.tsx |
Imported NextIntlClientProvider , reorganized imports, refactored functions, and updated component structure. |
.../pages/index.tsx |
Added and adjusted imports for translation and routing, updated translation usage, and improved locale handling. |
.../pages/resources/index.tsx |
Replaced __ with t for translations, updated getInitialProps to load locale data, and handled messages. |
packages/closer/utils/locale.helpers.ts |
Introduced loadLocaleData function to dynamically load and merge locale-specific JSON files. |
packages/closer/index.ts |
Added exports for various components and pages. |
apps/tdf/tsconfig.json |
Included locales.config.ts in the compilation scope. |
sequenceDiagram
participant User
participant App
participant NextIntlClientProvider
participant LocaleDataLoader
User->>App: Requests page
App->>NextIntlClientProvider: Wraps page component
App->>LocaleDataLoader: Load locale data based on user locale
LocaleDataLoader-->>App: Returns locale-specific messages
NextIntlClientProvider-->>App: Provides translations
App-->>User: Renders page with localized content
In code we weave a tale so fine,
With locales set and i18n,
Translations flow, from line to line,
Our apps now speak in tongues divine.
A rabbit's joy, in code's embrace,
We hop through languages, with grace.
πβ¨π
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?
Cool that we are switching to templated strings - but they didn't get filled with values.
As a guest, you can book up to %s days in advance, and book up to %s days of stay.
Part one of https://github.com/closerdao/closer-ui/issues/440
Summary by CodeRabbit
New Features
Refactor
Bug Fixes
Documentation