Add Next.js Localization Framework #339
Labels
domain:i18n 💬
Things related to internationalization
priority:low 🏖️
Low priority issue
type:enhancement 😃
New feature or request
Milestone
Description
Implement localization support for the Tanam web application using the Next.js localization framework. The localization should use two-letter language locales as a prefix to URLs and should initially support English (
en
) and Indonesian (in
).Requirements
Locale Prefix for URLs
https://example.com/en/some/path
https://example.com/in/some/path
Supported Locales
Translation of Sidebar Navigation
URL-Based Language Change
http://localhost:3000/en
should display the sidebar menu in English.http://localhost:3000/in
should display the sidebar menu in Indonesian.Steps to Implement
Install Next.js Internationalized Routing
Configure
next.config.js
Add the supported locales and set the default locale from
en
Create Locale Files
Create JSON files for English and Indonesian translations.
Test the Implementation
http://localhost:3000/en
http://localhost:3000/in
Additional Notes
References
The text was updated successfully, but these errors were encountered: