-
-
Notifications
You must be signed in to change notification settings - Fork 296
Add New Language
Akram El Assas edited this page Jun 18, 2025
·
8 revisions
This guide explains how to add support for a new language across all parts of the application: Backend, Admin Panel, Frontend, and Mobile App.
📌 Note: All language codes must follow the ISO 639-1 standard (e.g., en for English, fr for French, es for Spanish).
BookCars comes with built-in support for English, French, and Spanish. To add a new language, follow the instructions below.
- Add the new language ISO 639-1 code to
LANGUAGESsetting inbackend/src/config/env.config.ts. - Create a new file <ISO 639-1 code>.ts in src/lang folder and add the translations in it.
- Import and include your translations in
src/lang/i18n.ts
- Add the new language ISO 639-1 code and its label in
LANGUAGESsetting in both:admin/src/config/env.config.tsfrontend/src/config/env.config.ts
- Add the translations to:
admin/src/lang/*.ts-
frontend/src/lang/*.ts.
- Add the new language ISO 639-1 code and its label in
mobile/config/env.config.tsinLANGUAGESconstant. - Create a new file <ISO 639-1 code>.ts in
mobile/langfolder and add the translations in it. - Import and register your translations in
mobile/lang/i18n.ts
Copyright © Akram El Assas. All rights reserved.
- Overview
- Software Architecture
- Install Guide (Self-hosted)
- Install Guide (Docker)
- Free SSL Setup Guide
- Setup Sentry
- Payment Gateways
- Setup Stripe
- Social Login Setup Guide
- Build Mobile App
- Demo Database
- Run from Source
- Run from Source (Docker)
- Run Mobile App
- Locations
- Auto‐Notification System
- Rental Date and Time Constraints
- Price Calculation
- Supplier Contracts
- Add New Language
- Add New Currency
- Logs
- Testing
- Fork, Customize, and Sync
- FAQ
- Release Notes
- Contribution Guide
- Code of Conduct