Internationalization (i18n)
HANA CLI supports multiple languages for global accessibility.
Supported Languages
- English (en)
- German (de)
Language Selection
Environment Variable
bash
# Set language to German
export HANA_LANG=de
# Or set via command
HANA_LANG=de hana-cli dbInfoCommand Option
bash
# Most commands support --lang option
hana-cli dbInfo --lang de
hana-cli import --help --lang deTranslation Files
Translations are located in _i18n/ directory:
_i18n/
├── messages.properties # English
├── messages_de.properties # German
├── import.properties
├── import_de.properties
├── export.properties
├── export_de.properties
└── ...Available Translations
All user-facing text is translated:
- Command descriptions
- Help text and usage
- Error messages
- Status messages
- Prompts and confirmations
Example Output
English
bash
hana-cli import --help
Usage: hana-cli import [options]
Description:
Import data from CSV or Excel files into database tables
Options:
-n, --filename <file> Input file path
-t, --table <table> Target tableGerman
bash
HANA_LANG=de hana-cli import --help
Verwendung: hana-cli import [Optionen]
Beschreibung:
Importieren Sie Daten aus CSV- oder Excel-Dateien in Datenbanktabellen
Optionen:
-n, --filename <file> Eingabedateipfad
-t, --table <table> ZieltabelleAdding New Languages
- Create translation file:
_i18n/messages_xx.properties(where xx is language code) - Add translations for all message keys
- Update configuration to support new language
- Test translations
Message Keys
Common message keys available for translation:
messages.import.start=Starting import...
messages.import.success=Import completed successfully
messages.import.error=Import failed
messages.export.start=Exporting data...
messages.error.connection=Database connection failed
messages.error.tableNotFound=Table not foundDefault Language
If language is not specified, HANA CLI uses:
HANA_LANGenvironment variable- System locale
- English (fallback)
Language in Scripts
bash
#!/bin/bash
# Use German for all commands
export HANA_LANG=de
hana-cli import -n data.csv -t TABLE
hana-cli export -s SCHEMA -t TABLE -o output.csv
hana-cli dataValidator -s SCHEMA -t TABLEContributing Translations
Want to add support for a new language?
- Fork the repository
- Create
_i18n/messages_xx.properties - Translate all keys
- Submit pull request
Want to add support for a new language? See the repository for translation contribution guidelines.
