-
Notifications
You must be signed in to change notification settings - Fork 21
feat: Add Indonesian locale support #174
Open
Description
Indonesian is spoken by over 200 million people and is the official language of Indonesia. Adding Indonesian locale support will make the application accessible to a large and growing community of Indonesian-speaking developers.
Overview
Indonesian will be added as a new supported locale with the language code id. Indonesian uses left-to-right (LTR) layout, making this a straightforward addition similar to French, Spanish, and Mandarin Chinese.
Tasks
- Create a new locale file
locales/id.jsonwith all translation keys fromlocales/en.jsontranslated to Indonesian. - Update
lib/i18n-core.tsto addidto thesupportedLocalesarray. - Add Indonesian entry to the
localeMetaobject inlib/i18n-core.tswith the following configuration:id: { dir: "ltr", label: "Bahasa Indonesia" }
- Test the language switcher to ensure Indonesian appears in the dropdown menu.
- Test the application with Indonesian locale selected to ensure all UI elements display correctly.
- Verify that all text content renders properly without layout issues.
- Update
CONTRIBUTING.mdwith instructions for translating content to Indonesian (if not already documented in the localization guide).
Translation Keys
All translation keys from the existing English locale must be translated to Indonesian. The keys include:
- Application titles and subtitles
- Error messages
- UI labels and buttons
- Explanations and descriptions
- Comparison metrics
- Community contribution labels
- And more (reference
locales/en.jsonfor the complete list)
Testing
- Language switcher displays "Bahasa Indonesia" correctly.
- All pages render without errors when Indonesian is selected.
- No layout shifts or broken styling in LTR mode.
- All Indonesian translations are grammatically correct and contextually appropriate.
Tip
🚀 Want to contribute?
Comment assign me to be automatically assigned to this issue via our GitHub Actions bot. Happy coding! ✨