---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# gettext

> Get string translations.
> More information: <https://www.gnu.org/software/gettext/manual/html_node/gettext-Invocation.html>.

- Get the translation of a string or output a default string if it doesn't exist:

`LANGUAGE={{locale}} gettext {{msgid}} {{default_value}}`

- Display help:

`gettext {{[-h|--help]}}`
