version.py

View code on Github

Functions for checking current version of the i18n-check CLI.

i18n_check.cli.version.get_local_version() str[source]

Get the local version of the i18n-check package.

Returns:
str

The version of the installed i18n-check package, or a message indicating that the package is not installed via pip.

i18n_check.cli.version.get_latest_version() Any[source]

Get the latest version of the i18n-check package from GitHub.

Returns:
Any

The latest version of the i18n-check package, or a message indicating that the version could not be fetched.

i18n_check.cli.version.get_version_message() str[source]

Get a message indicating the local and latest versions of the i18n-check package.

Returns:
str

A message indicating the local version, the latest version, and whether an upgrade is available.