Skip to content

Conversation

@vgough
Copy link
Owner

@vgough vgough commented Jan 2, 2026

@Code7R what do you think of this approach?

I searched for i18n options, and this one causes the translations to be compiled into the program, so no additional files would need to be distributed. I don't think it's as full-featured as gettext ,but not sure that's important.

The translations are just auto-complete from code AI, so I don't know if they're reasonable, I was just using them for testing that translation is active.

would be an alternative to #680


Note

Introduces built-in localization for user-facing messages across binaries, with translations embedded at compile time.

  • Adds rust-i18n dependency and config ([package.metadata.i18n]) in Cargo.toml; new locale files locales/main.yml and locales/TODO.yml (en/fr/de)
  • New encfs::init_locale() in src/lib.rs maps LANG (e.g., en_US/fr_FR/de_DE) to rust-i18n locales and sets the active locale
  • Hooks i18n into src/main.rs and src/encfsctl.rs: wraps prompts, errors, and logs with t!(...), and calls init_locale() at startup
  • Replaces numerous hardcoded strings (password prompts, config/load errors, decode/encode warnings, daemonize/mount logs, etc.) with localized messages

Written by Cursor Bugbot for commit 3fb2f80. This will update automatically on new commits. Configure here.

Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the final PR Bugbot will review for you during this billing cycle

Your free Bugbot reviews will reset on February 14

Details

You are on the Bugbot Free tier. On this plan, Bugbot will review limited PRs each billing cycle.

To receive Bugbot reviews on all of your PRs, visit the Cursor dashboard to activate Pro and start your 14-day free trial.

vgough added 4 commits January 2, 2026 11:31
* add agents file

* add argon2 for key derivation, switch to it as default

* translate error messages from config

* update argon2 starting constants, add more translations

* use rfc9106 recommendations for defaults
@vgough vgough merged commit 945c2be into master Jan 8, 2026
2 checks passed
@vgough vgough mentioned this pull request Jan 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants