Skip to content

DEV: Functional class to get the active selected translator #280

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 22, 2025

Conversation

nattsw
Copy link
Contributor

@nattsw nattsw commented Apr 22, 2025

Moves all usages of "DiscourseTranslator::Provider::#{SiteSetting.translator_provider}".constantize to DiscourseTranslator::Provider::TranslatorProvider.get.

Prepping for a future PR to translate categories in a job.

Note: I wanted DiscourseTranslator::Provider.get but zeitwerk is being annoying. It is a mouthful now unfortunately.

@nattsw nattsw merged commit 280f298 into main Apr 22, 2025
6 checks passed
@nattsw nattsw deleted the category-job branch April 22, 2025 09:04
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.

2 participants