Skip to content

Save Edit Tool Version 0.4.0 - Language Update 🚩

Choose a tag to compare

@xLieferant xLieferant released this 07 Jan 10:28
· 70 commits to main since this release

What's Changed???

🌍 Localization & UI Improvements

✨ New Features

Translation System Enhancements

  • Complete translation coverage: All toast notifications now support localization
  • Added 25+ new translation keys for user feedback messages
  • New language support: Added French, German, Spanish, English
  • Dynamic translation parameters: Toast notifications now support dynamic data (error messages, counts, percentages)

UI Improvements

  • Refactored "Move Mods" dialog to use openModalMulti with dropdown selection
  • Improved "Copy Controls" dialog with better profile selection UX
  • Profile selection now shows clear formatting: Profile Name [path]

πŸ› Bug Fixes

Critical Fixes

  • Fixed locales folder not bundled in production builds

    • Added "resources": ["locales"] to tauri.conf.json
    • Translations now work correctly in installed applications
  • Fixed handleCopyControls function reference error

    • Removed incorrect () from window.handleCopyControls = handleCopyControls()
    • Function is now properly callable from tools.js

Path Resolution

  • Improved locales folder detection in translator.rs
    • Now checks multiple standard locations (./locales, ./resources/locales)
    • Robust fallback handling regardless of installation method

Translation Consistency

  • Replaced hardcoded German backend messages with translation keys in:
    • handleCopyControls
    • handleMoveMods
  • Improved error handling in showLanguagePicker

πŸ“ Translation Keys Added

New keys for comprehensive localization:

  • Profile management: profile_loaded_select_save, profile_load_error, profile_renamed_success
  • Save operations: save_loaded_success, save_load_error, scan_saves_error
  • Money/XP editing: money_saved_success, xp_saved_success, money_save_error, xp_save_error
  • Profile operations: copying_controls, copy_controls_success, moving_mods_wait, move_mods_success
  • Error handling: no_profile_selected, invalid_profile_selection, generic_error_prefix
  • Language picker: load_languages_error

πŸ”§ Technical Changes

  • Verified backend stability with cargo check (all tests passing)
  • Refactored modal system to use openModalMulti for better consistency
  • Improved error handling across profile management functions

🌐 Supported Languages

  • English (en) ✨ NEW
  • German (de) ✨ NEW
  • French (fr) ✨ NEW
  • Italian (it) ✨ NEW

What's Changed

Full Changelog: 0.3.1...0.4.0