Skip to content

feat: upgrade config and language files in place - #96

Merged
twme-ai merged 1 commit into
TWME-TW:mainfrom
twme-ai:feat/auto-upgrade-files
Aug 18, 2026
Merged

feat: upgrade config and language files in place#96
twme-ai merged 1 commit into
TWME-TW:mainfrom
twme-ai:feat/auto-upgrade-files

Conversation

@twme-ai

@twme-ai twme-ai commented Aug 18, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • merge missing settings from the bundled config.yml without replacing existing values
  • merge missing translation entries from the bundled locale file without replacing translations
  • update old config and language versions in place instead of renaming the files and generating a blank replacement
  • add recursive YAML merge tests

Behavior

When a user-managed YAML file is loaded, each missing nested key is filled from the corresponding resource bundled in the plugin JAR. Existing values are preserved, including false, 0, lists, and custom translated strings. A custom locale without a bundled resource uses en_US.yml as its default source. Newer file versions are preserved and only logged so a downgraded plugin does not rewrite them.

Verification

  • mvn -B test (6 tests, 0 failures)
  • mvn -B package

This addresses automatic upgrade of user configuration and language files while retaining administrator customizations.

@twme-ai
twme-ai merged commit 58acd95 into TWME-TW:main Aug 18, 2026
1 check passed
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.

1 participant