5 releases
| 0.1.4 | Sep 21, 2024 |
|---|---|
| 0.1.3 | Aug 1, 2024 |
| 0.1.2 | Jul 31, 2024 |
| 0.1.1 | Jul 30, 2024 |
| 0.1.0 | Jul 30, 2024 |
#127 in Internationalization (i18n)
356 downloads per month
4KB
Welcomer
Overview
This simple CLI program generates a greeting message in various languages based on the user's name and chosen language.
Features
- Greet in 10 different languages
- Use command-line arguments to specify name and language
- Fallback to English if the specified language is not supported
Usage
The program accepts two arguments:
-n, --name <NAME>: The name of the person to greet-l, --language <LANGUAGE>: The language code for the greeting
Example:
welcomer --n taro --l ja
Supported Languages
- en: English
- ja: Japanese
- zh: Chinese
- es: Spanish
- fr: French
- de: German
- it: Italian
- ru: Russian
- ko: Korean
- zu: Zulu
- pt: Portugal
If an unsupported language code is specified, the program will default to an English greeting.
Dependencies
This program uses the clap crate for parsing command-line arguments.
Version
Current version: 0.1.4
Dependencies
~1–1.5MB
~28K SLoC