Set up and use multi-language support in your ShadcnKit project
next-intl
for internationalization, allowing you to easily support multiple languages in your application. This guide will walk you through the i18n setup and usage.
middleware.ts
i18n.ts
messages
directory:
messages/en.json
(English)messages/ar.json
(Arabic)messages/fr.json
(French)app/translations/FeedbackTranslations.ts
:
messages
directory (e.g., messages/es.json
for Spanish)locales
array in your config filematcher
in middleware.ts
to include the new locale/en/dashboard
, /fr/dashboard
)