Skip to content

safely initialize src_languages and dst_languages - #3

Open
olfMombach wants to merge 2 commits into
albertlauncher:mainfrom
olfMombach:main
Open

safely initialize src_languages and dst_languages#3
olfMombach wants to merge 2 commits into
albertlauncher:mainfrom
olfMombach:main

Conversation

@olfMombach

Copy link
Copy Markdown

Fixes #1

@olfMombach
olfMombach requested a review from a team as a code owner August 27, 2026 12:41
@olfMombach
olfMombach requested review from maxmil, stevenxxiu and tomsquest and a lite review from Copilot August 27, 2026 12:41

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR addresses plugin startup/runtime failures when translator language discovery fails, by ensuring src_languages and dst_languages are initialized before attempting to load supported languages (Issue #1).

Changes:

  • Initialize src_languages / dst_languages before ts.get_languages(...) so later query handling doesn’t hit missing-attribute errors.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread __init__.py Outdated
@olfMombach olfMombach mentioned this pull request Aug 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Does not work

2 participants