diff --git a/tmgmt.module b/tmgmt.module
index 7ff9478..d51265d 100644
--- a/tmgmt.module
+++ b/tmgmt.module
@@ -1074,16 +1074,12 @@ function tmgmt_cart_source_overview_validate(array $form, FormStateInterface $fo
  * @} End of "addtogroup tmgmt_cart".
  */
 
-function tmgmt_toolbar() {
-  $items = [];
-  $items['tmgmt'] = [
-    '#type' => 'toolbar_item',
-    '#attached' => [
-      'library' => [
-        'tmgmt/drupal.tmgmt.toolbar',
-      ],
-    ],
-  ];
-
-  return $items;
+/**
+ * Implements hook_page_attachments().
+ */
+function tmgmt_page_attachments(array &$attachments) {
+  // Add CSS for the Translation icon in the toolbar if the user has access to it.
+  if (\Drupal::currentUser()->hasPermission('access toolbar') && \Drupal::currentUser()->hasPermission('link to any page')) {
+    $attachments['#attached']['library'][] = 'tmgmt/drupal.tmgmt.toolbar';
+  }
 }
