diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb
index <HASH>..<HASH> 100644
--- a/app/helpers/application_helper.rb
+++ b/app/helpers/application_helper.rb
@@ -64,6 +64,6 @@ module ApplicationHelper
   end
 
   def i18n_api_scopes(api_key)
-    api_key.enabled_scopes.sum("") { |scope| tag.ul(t(scope, scope: %i[api_keys index]), class: "scopes__list") }
+    api_key.enabled_scopes.sum(ActiveSupport::SafeBuffer.new) { |scope| tag.ul(t(".#{scope}"), class: "scopes__list") }
   end
 end
diff --git a/test/unit/helpers/application_helper_test.rb b/test/unit/helpers/application_helper_test.rb
index <HASH>..<HASH> 100644
--- a/test/unit/helpers/application_helper_test.rb
+++ b/test/unit/helpers/application_helper_test.rb
@@ -51,6 +51,7 @@ class ApplicationHelperTest < ActionView::TestCase
     should "return concat of ul tags for enabled scopes" do
       assert_equal '<ul class="scopes__list">Index rubygems</ul><ul class="scopes__list">Push rubygem</ul>',
         i18n_api_scopes(@api_key)
+      assert_instance_of ActiveSupport::SafeBuffer, i18n_api_scopes(@api_key)
     end
   end
 end
Fix i<I>n_api_scopes to return ActiveSupport::SafeBuffer.new