GIT-SH-I18N(1)
π GIT-SH-I18N π
okay so real talk, bestie β this is the git-sh-i18n manual page, aka Git's i18n setup code for shell scripts. say it with me: internationalization, but make it β¨abbreviatedβ¨. i18n = the "i", eighteen letters, "n". iconic naming convention, no notes. π
β¨ SYNOPSIS β¨
. "$(git --exec-path)/git-sh-i18n"
that leading . is the whole personality of this page btw. it's a source, not a run. iykyk π«Ά
πΈ DESCRIPTION πΈ
okay so first thing's first, and i need you to hear me on this one:
this is not a command the end user would want to run. Ever. like, genuinely ever. do not put this in your shell rc file. do not alias it. do not pass go. π«
this documentation is for the people who are studying the Porcelain-ish scripts and/or writing new ones β so if that's not you, you can lowkey close the tab, love u, bye π
so the git sh-i18n scriptlet is designed to be sourced (that's the . thing, using .) by Git's porcelain programs implemented in shell script. it's a helper, not a star. main character energy is elsewhere.
what it actually gives you:
- wrappers for the GNU
gettextandeval_gettextfunctions that you can access through thegettext.shscript β¨ - pass-through fallbacks on systems that don't have GNU gettext β so your script doesn't just explode. considerate king behavior π
π₯ FUNCTIONS π₯
β gettext
currently a dummy fall-through function implemented as a wrapper around printf(1). yes, that's it. that's the whole function rn. π
will be replaced by a real gettext implementation in a later version β so like, watch this space, but don't hold your breath, printf(1) is doing its best π
β eval_gettext
also currently a dummy fall-through function, also a wrapper around printf(1) β but this one comes with variables expanded by the git-sh-i18n--envsubst(1) helper. fancy!! π¦
and yes, same deal: will be replaced by a real gettext implementation in a later version. she's a placeholder with a glow-up scheduled. slay π
π GIT π
part of the git(1) suite β one of the fam, one of the crew, one of the icons π
ngl if you got this far and you're not writing a porcelain shell script, i love your commitment but bestie why π
that's the whole vibe check! this page you just read is from Git 2.56.0, dated 2026-09-27 β go forth and source responsibly, mwah ππ§ββοΈ
π¦ where this page comes from
- arch rolling: git 2.56.0-1 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms