v1.4.418

danielmiessler/Fabricv1.4.418Feb 22, 2026by github-actions[bot]

AI Summary

Improved internationalization by replacing hardcoded error messages with translation keys across the codebase, adding 80+ new keys to support multiple languages.

Key Highlights

  • Replaced hardcoded error messages with `i18n.T()` calls across multiple packages.
  • Added approximately 80 new translation keys to all locale files.
  • Refactored error string formatting to follow Go conventions (lowercase).
  • Updated error wrapping format from `%s` to `%w`.

New Features

  • Comprehensive i18n for error strings

Full Release Notes

## Changes

### PR [#2019](https://github.com/danielmiessler/Fabric/pull/2019) by [ksylvan](https://github.com/ksylvan): feat: replace hardcoded error strings with i18n translation keys

- Replace hardcoded error messages with `i18n.T()` calls across Go source files, covering chat, attachment, storage, template, plugin registry, server, and utility packages
- Added approximately 80 new translation keys to all locale files (en, de, es, fa, fr, it, ja, pt-BR, pt-PT, zh), with keys sorted alphabetically
- Internationalized error strings across githelper, notifications, patterns, sessions, and provider modules (DigitalOcean, Gemini, OpenAI-compatible)
- Refactored `fmt.Errorf("%s", ...)` usages to `errors.New()` and normalized i18n error strings to lowercase per Go conventions
- Updated `db_error_loading_env_file` format verb from `%s` to `%w` to support proper error wrapping