#language #command-line-arguments #greeting #english #cli #different #say

app welcomer

This is a simple CLI program to say hello in different languages

4 releases

0.1.3 Aug 1, 2024
0.1.2 Jul 31, 2024
0.1.1 Jul 30, 2024
0.1.0 Jul 30, 2024

#106 in Internationalization (i18n)

Download history 209/week @ 2024-07-25 135/week @ 2024-08-01

128 downloads per month

MIT license

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

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.3

Dependencies

~1.2–1.7MB
~33K SLoC