Translate to regional language variant (e.g. pt-BR) (#32428)

This commit is contained in:
Christian Schmidt authored and GitHub committed 2024-10-15 13:26:20 +00:00
1 parent 6a39212b02
commit 227d46883f
3 files changed
+21 -4

No files matched your search

@@ -23,6 +23,6 @@ class Api::V1::Statuses::TranslationsController < Api::V1::Statuses::BaseControl
private
def set_translation
@translation = TranslateStatusService.new.call(@status, content_locale)
@translation = TranslateStatusService.new.call(@status, I18n.locale.to_s)
end
end