Skip to content

Localize Emby settings with separate language files - #39

Draft
hope140 wants to merge 2 commits into
TheIntroDB:mainfrom
hope140:review/settings-localization
Draft

hope140 wants to merge 2 commits into
TheIntroDB:mainfrom
hope140:review/settings-localization

Conversation

@hope140

@hope140 hope140 commented Nov 22, 2026

Copy link
Copy Markdown

Summary

  • Move the English and Simplified Chinese settings strings into separate JSON files under TheIntroDB/Configuration/locales/, as requested in Add translations support #12.
  • Load the selected dictionary from the plugin using the Emby UI locale, with English fallback for unsupported locales or missing keys. Adding a language file does not require changing configPage.js.
  • Leave scan behavior, playback markers, stored settings, and existing settings actions unchanged.

Verification

  • Release build succeeded and both locale files are embedded in the DLL.
  • 128 .NET tests and 5 JavaScript tests passed locally, covering locale selection, fallback, and interpolation.
  • The earlier inline preview was verified on an Emby server; this resource-loading revision has not yet been smoke-tested on a live server.

@coderabbitai

coderabbitai Bot commented Nov 22, 2026

Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

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