Skip to content

Fix translation loading state and prevent infinite spinner#1516

Open
sai-kamal0905 wants to merge 2 commits intointernetarchive:masterfrom
sai-kamal0905:clean-translation-fix
Open

Fix translation loading state and prevent infinite spinner#1516
sai-kamal0905 wants to merge 2 commits intointernetarchive:masterfrom
sai-kamal0905:clean-translation-fix

Conversation

@sai-kamal0905
Copy link
Copy Markdown

This PR improves the Raise error if translating from/to same language #1488 and fixes an issue where the translation loading state could remain active even when no translation was performed.

Changes:

  • Ensured translator initialization before use
  • Fixed incorrect active state handling (prevents infinite spinner)
  • Added proper cleanup after translation completion
  • Added empty-text validation

This prevents the UI from getting stuck in a loading state and improves async state management.

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