Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/sagar-grv/ayush-synapse/llms.txt

Use this file to discover all available pages before exploring further.

Ayush Synapse serves static translation files for multilingual dashboard support. Each language file is a flat JSON key-value map where keys are UI string identifiers and values are the localized strings used by the frontend dashboards.

Endpoint

Method: GET
Path: /i18n/{lang}.json
Auth: None

Path Parameter

lang
string
required
The BCP 47 language code identifying which translation file to serve (e.g. hi, ta, en). See the Supported Languages table below for all valid values.

Response

On success, returns a 200 OK with a Content-Type: application/json body containing a JSON object of translation key-value pairs. If the requested language file does not exist, the server returns a 404:
404 — Language File Not Found
{
  "error": "Language file not found"
}

Supported Languages

LanguageCode
Englishen
Hindihi
Tamilta
Telugute
Malayalamml
Kannadakn
Bengalibn
Marathimr
Gujaratigu
Punjabipa
Odiaor
Assameseas
Urduur
Sanskritsa
Konkanikok
Manipurimni

Example

curl -X GET http://localhost:5000/i18n/hi.json
Response
{
  "app.title": "आयुष सिनैप्स",
  "nav.search": "खोजें",
  "nav.mappings": "मैपिंग",
  "nav.translate": "अनुवाद करें",
  "search.placeholder": "कोड या लक्षण खोजें...",
  "search.results": "परिणाम",
  "mapping.source": "स्रोत कोड",
  "mapping.target": "लक्ष्य कोड",
  "mapping.confidence": "विश्वास स्कोर"
}

Usage

The frontend dashboards call this endpoint automatically when a user switches the interface language. The selected lang code is stored in the browser’s local state, and on each language change the dashboard fetches the corresponding /i18n/{lang}.json file and re-renders all UI strings using the returned key-value map. Translation files are served directly from the static/i18n/ directory of the application. To add a new language, place a {lang}.json file in that directory following the same key structure as the existing files.

Build docs developers (and LLMs) love