# Internationalization (i18n)
Internationalization ensures your application can reach global audiences by supporting multiple languages, date/time formats, currencies, and cultural norms.
# General Principles
- Separate content from code → no hardcoded strings inside components.
- Use language files (JSON/YAML) stored in
src/language/. - Keep translations flat and consistent → avoid deeply nested keys.
- Support pluralization & gender rules where applicable.
- Always provide a fallback language (usually English).
# Folder Structure
src/
language/
en.json
hi.json
fr.json
1
2
3
4
5
2
3
4
5
{
"welcome": "Welcome",
"logout": "Logout",
"profile": {
"title": "User Profile",
"edit": "Edit Profile"
}
}
1
2
3
4
5
6
7
8
2
3
4
5
6
7
8