Skip to content

v2.36.0

Latest

Choose a tag to compare

@Byron Byron released this 17 Jun 05:48
b14fa90

The headline feature is the optional localization of the interactive help screen, selected from the standard POSIX locale
environment variables (LC_ALL > LC_MESSAGES > LANG). English remains the default; Japanese
(ja) is now available for UTF-8 locales and locales without an explicit codeset, e.g. LANG=ja_JP.UTF-8 dua i.

Bug Fixes

  • Make message color yellow, instead of red.
    It's less alarming, red should only be used to signal 'danger'.
  • don't show unapplicable global options in config subcommand.

New Features

  • add config show-default sub-command with option to reset configuration file
    Add dua config show-default to print the current built-in default
    configuration, making newly introduced configuration keys discoverable without
    opening the editor.

    Support dua config show-default --overwrite-with-default to overwrite the active configuration
    file with the built-in defaults while keeping stdout reserved for the default
    TOML content.

  • allow to set the format in the configuration file.

  • optional i18n for the interactive help screen
    Localize the interactive help pane via the standard POSIX locale
    environment variables, honoring the usual precedence
    LC_ALL > LC_MESSAGES > LANG, with English as the default. Japanese is
    the first added translation. No new dependencies; only the help screen
    is translated.

    • New i18n module: a Language enum, env detection split into a pure
      detect() plus a thin from_env(), and an EN/JA translation table.
    • The help pane resolves the language with Language::from_env() when it
      is rendered (only while the pane is open).
    • Key names, the ^ continuation markers and the symbolic legend stay
      untranslated; the block title is localized.

Commit Statistics

  • 11 commits contributed to the release.
  • 5 commits were understood as conventional.
  • 1 unique issue was worked on: #336

Commit Details

view details
  • #336
    • Don't show unapplicable global options in config subcommand. (d02a65e)
  • Uncategorized
    • Merge pull request #339 from Byron/fix-336 (9975c07)
    • Make message color yellow, instead of red. (08bda9f)
    • Address auto-review (e5627c0)
    • Add config show-default sub-command with option to reset configuration file (db3e267)
    • Allow to set the format in the configuration file. (c1a759f)
    • Merge pull request #334 from bellsmarket/feat/help-i18n (c171b44)
    • Address auto-review comments (e180b1f)
    • Review (71f4532)
    • Optional i18n for the interactive help screen (e902598)
    • Merge pull request #333 from xfocus3/fix/install-respects-cargo-home-279 (d4f5671)