Internationalization in Experro enables catering to a global audience by supporting multiple languages. Here's how languages are managed and utilized within the platform:
- Language Configuration:
-
Language Setup: The admin panel stores the list of supported languages with unique locale identifiers (e.g.
en
for English,fr
for French). - Character Encoding: All text fields and content entries are stored using UTF-8 encoding to handle diverse characters from different languages.
- Content Model Design:
- Field Definitions: Content models include fields for each language (e.g., title_en, title_fr).
- Database Schema: The database schema supports multiple language fields per content entry.
- Content Retrieval:
- API Queries: The Experro API enables querying content in specific languages. API endpoints accept-language parameters to fetch the appropriate language versions of the content.
- Language Fallback: If a requested language version is unavailable, the system can be configured to fall back to a default language.
Internationalization support enables the creation, management, and organization of content in multiple languages. Initially, the system retrieves data from a specified fallback language when generating content in additional languages. This feature streamlines the process of expanding content into different language versions, ensuring consistency and ease of management.
Therefore, to understand how languages work in Experro, it's essential to first understand data inheritance, fallback languages, and localization.
(Video needed for better understanding)
Get into the details by exploring how to create a language and publish it in the content library.