_(1)

🌸 NAME 🌸

okay so bestie, welcome to _ (yes literally just an underscore, she's that icon) β€” the fish-shell manual page for calling fish's translations πŸ’…βœ¨

This is the fish-shell page, section 1 of the manual, and we're gonna get you fluent in it fr fr 🫢


✨ SYNOPSIS ✨

_ STRING

πŸŽ€ DESCRIPTION πŸŽ€

_ translates its arguments into the current language, if possible. That's it, that's the whole vibe πŸ¦‹

⚠️ Important caveat, no cap: this only works with messages which are translated as part of fish's own sources. So using it as part of your own fish scripts which are not upstreamed into the fish repo will not work unless the exact same message also exists upstream. 😭 Like, she only knows the lines from her own show.

It requires fish to be built with gettext support. If that support is disabled or there is no translation, it will just echo the argument back β€” no drama, no error, she just repeats what you said πŸ™ˆ

The language depends on the current locale, set with LANG, LC_MESSAGES, LC_ALL, and LANGUAGE. Bestie, these variables do not have to be exported for fish to use them, and fish's variable scopes are supported. πŸ’– But β€” if other programs launched via fish should respect these locale variables, they have to be exported to make them available outside of fish. iykyk 🌈

For LANGUAGE you can use a list, or use colons to separate multiple languages. Obsessed with the flexibility honestly πŸ‘‘

If the status language command was used, its arguments specify the language precedence, and the environment variables are ignored. She said "I make the rules now" πŸ’…


⭐ OPTIONS ⭐

  • _ β€” takes no options. Zero. None. She's lowkey minimal like that πŸŽ€

πŸ”₯ EXAMPLES πŸ”₯

πŸ’œ Use German translations:

> set LANG de_DE.UTF-8
> _ file
Datei

πŸ¦‹ Specify a precedence of languages (only works with LANGUAGE):

> set LANGUAGE pt de
> _ file  # This message has a Portuguese translation.
arquivo
> _ "Invalid arguments"  # This message does not have a Portuguese translation, but a German one.
UngΓΌltige Argumente
> _ untranslatable  # No translation in Portuguese, nor in German.
untranslatable
πŸ“Œ Note: the specific examples may change if translations are added/modified. So don't come for her if Datei becomes something else later, she's doing her best 😭

fish-shell developers πŸ‘‘


that's the whole page bestie, go forth and translate slayfully πŸ’–βœ¨πŸŽ€πŸ¦‹πŸ’…

this iconic little manual page is from fish-shell version 4.9, dated Sep 08, 2026 β€” mwah, see you next page 🫢

πŸ“¦ where this page comes from
  • arch rolling: fish 4.9.3-1 Β· GPL-2.0-only AND BSD-3-Clause AND ISC AND MIT AND PSF-2.0
  • πŸ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms