diff --git a/core/lib/Drupal/Core/Cache/Context/AccountPermissionsCacheContext.php b/core/lib/Drupal/Core/Cache/Context/AccountPermissionsCacheContext.php
index 9c4702a..e82074a 100644
--- a/core/lib/Drupal/Core/Cache/Context/AccountPermissionsCacheContext.php
+++ b/core/lib/Drupal/Core/Cache/Context/AccountPermissionsCacheContext.php
@@ -10,6 +10,7 @@
 use Drupal\Core\Cache\CacheableMetadata;
 use Drupal\Core\Session\AccountInterface;
 use Drupal\Core\Session\PermissionsHashGeneratorInterface;
+use Drupal\Core\StringTranslation\TranslationWrapper;
 
 /**
  * Defines the AccountPermissionsCacheContext service, for "per permission" caching.
@@ -42,7 +43,7 @@ public function __construct(AccountInterface $user, PermissionsHashGeneratorInte
    * {@inheritdoc}
    */
   public static function getLabel() {
-    return t("Account's permissions");
+    return new TranslationWrapper("Account's permissions");
   }
 
   /**
diff --git a/core/lib/Drupal/Core/Cache/Context/CookiesCacheContext.php b/core/lib/Drupal/Core/Cache/Context/CookiesCacheContext.php
index bd5ab66..af253cd 100644
--- a/core/lib/Drupal/Core/Cache/Context/CookiesCacheContext.php
+++ b/core/lib/Drupal/Core/Cache/Context/CookiesCacheContext.php
@@ -8,6 +8,7 @@
 namespace Drupal\Core\Cache\Context;
 
 use Drupal\Core\Cache\CacheableMetadata;
+use Drupal\Core\StringTranslation\TranslationWrapper;
 
 /**
  * Defines the CookiesCacheContext service, for "per cookie" caching.
@@ -22,7 +23,7 @@ class CookiesCacheContext extends RequestStackCacheContextBase implements Calcul
    * {@inheritdoc}
    */
   public static function getLabel() {
-    return t('HTTP cookies');
+    return new TranslationWrapper('HTTP cookies');
   }
 
   /**
diff --git a/core/lib/Drupal/Core/Cache/Context/HeadersCacheContext.php b/core/lib/Drupal/Core/Cache/Context/HeadersCacheContext.php
index 8b4e450..3045640 100644
--- a/core/lib/Drupal/Core/Cache/Context/HeadersCacheContext.php
+++ b/core/lib/Drupal/Core/Cache/Context/HeadersCacheContext.php
@@ -8,6 +8,7 @@
 namespace Drupal\Core\Cache\Context;
 
 use Drupal\Core\Cache\CacheableMetadata;
+use Drupal\Core\StringTranslation\TranslationWrapper;
 
 /**
  * Defines the HeadersCacheContext service, for "per header" caching.
@@ -22,7 +23,7 @@ class HeadersCacheContext extends RequestStackCacheContextBase implements Calcul
    * {@inheritdoc}
    */
   public static function getLabel() {
-    return t('HTTP headers');
+    return new TranslationWrapper('HTTP headers');
   }
 
   /**
diff --git a/core/lib/Drupal/Core/Cache/Context/IpCacheContext.php b/core/lib/Drupal/Core/Cache/Context/IpCacheContext.php
index aac2926..8dfa81e 100644
--- a/core/lib/Drupal/Core/Cache/Context/IpCacheContext.php
+++ b/core/lib/Drupal/Core/Cache/Context/IpCacheContext.php
@@ -8,6 +8,7 @@
 namespace Drupal\Core\Cache\Context;
 
 use Drupal\Core\Cache\CacheableMetadata;
+use Drupal\Core\StringTranslation\TranslationWrapper;
 
 /**
  * Defines the IpCacheContext service, for "per IP address" caching.
@@ -20,7 +21,7 @@ class IpCacheContext extends RequestStackCacheContextBase implements CacheContex
    * {@inheritdoc}
    */
   public static function getLabel() {
-    return t('IP address');
+    return new TranslationWrapper('IP address');
   }
 
   /**
diff --git a/core/lib/Drupal/Core/Cache/Context/IsSuperUserCacheContext.php b/core/lib/Drupal/Core/Cache/Context/IsSuperUserCacheContext.php
index b5526ed..f37c83c 100644
--- a/core/lib/Drupal/Core/Cache/Context/IsSuperUserCacheContext.php
+++ b/core/lib/Drupal/Core/Cache/Context/IsSuperUserCacheContext.php
@@ -8,6 +8,7 @@
 namespace Drupal\Core\Cache\Context;
 
 use Drupal\Core\Cache\CacheableMetadata;
+use Drupal\Core\StringTranslation\TranslationWrapper;
 
 /**
  * Defines the IsSuperUserCacheContext service, for "super user or not" caching.
@@ -20,7 +21,7 @@ class IsSuperUserCacheContext extends UserCacheContextBase implements CacheConte
    * {@inheritdoc}
    */
   public static function getLabel() {
-    return t('Is super user');
+    return new TranslationWrapper('Is super user');
   }
 
   /**
diff --git a/core/lib/Drupal/Core/Cache/Context/LanguagesCacheContext.php b/core/lib/Drupal/Core/Cache/Context/LanguagesCacheContext.php
index 6df0af6..3d76d84 100644
--- a/core/lib/Drupal/Core/Cache/Context/LanguagesCacheContext.php
+++ b/core/lib/Drupal/Core/Cache/Context/LanguagesCacheContext.php
@@ -9,6 +9,7 @@
 
 use Drupal\Core\Cache\CacheableMetadata;
 use Drupal\Core\Language\LanguageManagerInterface;
+use Drupal\Core\StringTranslation\TranslationWrapper;
 
 /**
  * Defines the LanguagesCacheContext service, for "per language" caching.
@@ -36,7 +37,7 @@ public function __construct(LanguageManagerInterface $language_manager) {
    * {@inheritdoc}
    */
   public static function getLabel() {
-    return t('Language');
+    return new TranslationWrapper('Language');
   }
 
   /**
diff --git a/core/lib/Drupal/Core/Cache/Context/MenuActiveTrailsCacheContext.php b/core/lib/Drupal/Core/Cache/Context/MenuActiveTrailsCacheContext.php
index 3ff2dc4..40cb62a 100644
--- a/core/lib/Drupal/Core/Cache/Context/MenuActiveTrailsCacheContext.php
+++ b/core/lib/Drupal/Core/Cache/Context/MenuActiveTrailsCacheContext.php
@@ -8,6 +8,7 @@
 namespace Drupal\Core\Cache\Context;
 
 use Drupal\Core\Cache\CacheableMetadata;
+use Drupal\Core\StringTranslation\TranslationWrapper;
 use Symfony\Component\DependencyInjection\ContainerAware;
 
 /**
@@ -22,7 +23,7 @@ class MenuActiveTrailsCacheContext extends ContainerAware implements CalculatedC
    * {@inheritdoc}
    */
   public static function getLabel() {
-    return t("Active menu trail");
+    return new TranslationWrapper("Active menu trail");
   }
 
   /**
diff --git a/core/lib/Drupal/Core/Cache/Context/PagersCacheContext.php b/core/lib/Drupal/Core/Cache/Context/PagersCacheContext.php
index 2c887d2..8a5f5c5 100644
--- a/core/lib/Drupal/Core/Cache/Context/PagersCacheContext.php
+++ b/core/lib/Drupal/Core/Cache/Context/PagersCacheContext.php
@@ -8,6 +8,7 @@
 namespace Drupal\Core\Cache\Context;
 
 use Drupal\Core\Cache\CacheableMetadata;
+use Drupal\Core\StringTranslation\TranslationWrapper;
 
 /**
  * Defines a cache context for "per page in a pager" caching.
@@ -22,7 +23,7 @@ class PagersCacheContext extends RequestStackCacheContextBase implements Calcula
    * {@inheritdoc}
    */
   public static function getLabel() {
-    return t('Pager');
+    return new TranslationWrapper('Pager');
   }
 
   /**
diff --git a/core/lib/Drupal/Core/Cache/Context/QueryArgsCacheContext.php b/core/lib/Drupal/Core/Cache/Context/QueryArgsCacheContext.php
index cab1da8..665bfb1 100644
--- a/core/lib/Drupal/Core/Cache/Context/QueryArgsCacheContext.php
+++ b/core/lib/Drupal/Core/Cache/Context/QueryArgsCacheContext.php
@@ -8,6 +8,7 @@
 namespace Drupal\Core\Cache\Context;
 
 use Drupal\Core\Cache\CacheableMetadata;
+use Drupal\Core\StringTranslation\TranslationWrapper;
 
 /**
  * Defines the QueryArgsCacheContext service, for "per query args" caching.
@@ -22,7 +23,7 @@ class QueryArgsCacheContext extends RequestStackCacheContextBase implements Calc
    * {@inheritdoc}
    */
   public static function getLabel() {
-    return t('Query arguments');
+    return new TranslationWrapper('Query arguments');
   }
 
   /**
diff --git a/core/lib/Drupal/Core/Cache/Context/RequestFormatCacheContext.php b/core/lib/Drupal/Core/Cache/Context/RequestFormatCacheContext.php
index e8cb154..8402cdd 100644
--- a/core/lib/Drupal/Core/Cache/Context/RequestFormatCacheContext.php
+++ b/core/lib/Drupal/Core/Cache/Context/RequestFormatCacheContext.php
@@ -8,6 +8,7 @@
 namespace Drupal\Core\Cache\Context;
 
 use Drupal\Core\Cache\CacheableMetadata;
+use Drupal\Core\StringTranslation\TranslationWrapper;
 
 /**
  * Defines the RequestFormatCacheContext service, for "per format" caching.
@@ -20,7 +21,7 @@ class RequestFormatCacheContext extends RequestStackCacheContextBase {
    * {@inheritdoc}
    */
   public static function getLabel() {
-    return t('Request format');
+    return new TranslationWrapper('Request format');
   }
 
   /**
diff --git a/core/lib/Drupal/Core/Cache/Context/RouteCacheContext.php b/core/lib/Drupal/Core/Cache/Context/RouteCacheContext.php
index 4b4f21b..a50f2d8 100644
--- a/core/lib/Drupal/Core/Cache/Context/RouteCacheContext.php
+++ b/core/lib/Drupal/Core/Cache/Context/RouteCacheContext.php
@@ -9,6 +9,7 @@
 
 use Drupal\Core\Cache\CacheableMetadata;
 use Drupal\Core\Routing\RouteMatchInterface;
+use Drupal\Core\StringTranslation\TranslationWrapper;
 
 /**
  * Defines the RouteCacheContext service, for "per route" caching.
@@ -38,7 +39,7 @@ public function __construct(RouteMatchInterface $route_match) {
    * {@inheritdoc}
    */
   public static function getLabel() {
-    return t('Route');
+    return new TranslationWrapper('Route');
   }
 
   /**
diff --git a/core/lib/Drupal/Core/Cache/Context/RouteNameCacheContext.php b/core/lib/Drupal/Core/Cache/Context/RouteNameCacheContext.php
index 487edc2..fe11fcd 100644
--- a/core/lib/Drupal/Core/Cache/Context/RouteNameCacheContext.php
+++ b/core/lib/Drupal/Core/Cache/Context/RouteNameCacheContext.php
@@ -7,6 +7,8 @@
 
 namespace Drupal\Core\Cache\Context;
 
+use Drupal\Core\StringTranslation\TranslationWrapper;
+
 /**
  * Defines the RouteCacheContext service, for "per route name" caching.
  *
@@ -18,7 +20,7 @@ class RouteNameCacheContext extends RouteCacheContext {
    * {@inheritdoc}
    */
   public static function getLabel() {
-    return t('Route name');
+    return new TranslationWrapper('Route name');
   }
 
   /**
diff --git a/core/lib/Drupal/Core/Cache/Context/SessionCacheContext.php b/core/lib/Drupal/Core/Cache/Context/SessionCacheContext.php
index 474032e..aa8784b 100644
--- a/core/lib/Drupal/Core/Cache/Context/SessionCacheContext.php
+++ b/core/lib/Drupal/Core/Cache/Context/SessionCacheContext.php
@@ -7,6 +7,8 @@
 
 namespace Drupal\Core\Cache\Context;
 
+use Drupal\Core\StringTranslation\TranslationWrapper;
+
 /**
  * Defines the SessionCacheContext service, for "per session" caching.
  *
@@ -18,7 +20,7 @@ class SessionCacheContext extends RequestStackCacheContextBase {
    * {@inheritdoc}
    */
   public static function getLabel() {
-    return t('Session');
+    return new TranslationWrapper('Session');
   }
 
   /**
diff --git a/core/lib/Drupal/Core/Cache/Context/SiteCacheContext.php b/core/lib/Drupal/Core/Cache/Context/SiteCacheContext.php
index 539ba9d..9bb01e5 100644
--- a/core/lib/Drupal/Core/Cache/Context/SiteCacheContext.php
+++ b/core/lib/Drupal/Core/Cache/Context/SiteCacheContext.php
@@ -8,6 +8,7 @@
 namespace Drupal\Core\Cache\Context;
 
 use Drupal\Core\Cache\CacheableMetadata;
+use Drupal\Core\StringTranslation\TranslationWrapper;
 
 /**
  * Defines the SiteCacheContext service, for "per site" caching.
@@ -28,7 +29,7 @@ class SiteCacheContext extends RequestStackCacheContextBase implements CacheCont
    * {@inheritdoc}
    */
   public static function getLabel() {
-    return t('Site');
+    return new TranslationWrapper('Site');
   }
 
   /**
diff --git a/core/lib/Drupal/Core/Cache/Context/ThemeCacheContext.php b/core/lib/Drupal/Core/Cache/Context/ThemeCacheContext.php
index 7e451af..7def396 100644
--- a/core/lib/Drupal/Core/Cache/Context/ThemeCacheContext.php
+++ b/core/lib/Drupal/Core/Cache/Context/ThemeCacheContext.php
@@ -8,6 +8,7 @@
 namespace Drupal\Core\Cache\Context;
 
 use Drupal\Core\Cache\CacheableMetadata;
+use Drupal\Core\StringTranslation\TranslationWrapper;
 use Drupal\Core\Theme\ThemeManagerInterface;
 
 /**
@@ -38,7 +39,7 @@ public function __construct(ThemeManagerInterface $theme_manager) {
    * {@inheritdoc}
    */
   public static function getLabel() {
-    return t('Theme');
+    return new TranslationWrapper('Theme');
   }
 
   /**
diff --git a/core/lib/Drupal/Core/Cache/Context/TimeZoneCacheContext.php b/core/lib/Drupal/Core/Cache/Context/TimeZoneCacheContext.php
index 71dab96..c1d5664 100644
--- a/core/lib/Drupal/Core/Cache/Context/TimeZoneCacheContext.php
+++ b/core/lib/Drupal/Core/Cache/Context/TimeZoneCacheContext.php
@@ -8,6 +8,7 @@
 namespace Drupal\Core\Cache\Context;
 
 use Drupal\Core\Cache\CacheableMetadata;
+use Drupal\Core\StringTranslation\TranslationWrapper;
 
 /**
  * Defines the TimeZoneCacheContext service, for "per time zone" caching.
@@ -22,7 +23,7 @@ class TimeZoneCacheContext implements CacheContextInterface {
    * {@inheritdoc}
    */
   public static function getLabel() {
-    return t("Time zone");
+    return new TranslationWrapper("Time zone");
   }
 
   /**
diff --git a/core/lib/Drupal/Core/Cache/Context/UrlCacheContext.php b/core/lib/Drupal/Core/Cache/Context/UrlCacheContext.php
index f240128..4be388a 100644
--- a/core/lib/Drupal/Core/Cache/Context/UrlCacheContext.php
+++ b/core/lib/Drupal/Core/Cache/Context/UrlCacheContext.php
@@ -8,6 +8,7 @@
 namespace Drupal\Core\Cache\Context;
 
 use Drupal\Core\Cache\CacheableMetadata;
+use Drupal\Core\StringTranslation\TranslationWrapper;
 
 /**
  * Defines the UrlCacheContext service, for "per page" caching.
@@ -20,7 +21,7 @@ class UrlCacheContext extends RequestStackCacheContextBase implements CacheConte
    * {@inheritdoc}
    */
   public static function getLabel() {
-    return t('URL');
+    return new TranslationWrapper('URL');
   }
 
   /**
diff --git a/core/lib/Drupal/Core/Cache/Context/UserCacheContext.php b/core/lib/Drupal/Core/Cache/Context/UserCacheContext.php
index 874558b..3bcd9df 100644
--- a/core/lib/Drupal/Core/Cache/Context/UserCacheContext.php
+++ b/core/lib/Drupal/Core/Cache/Context/UserCacheContext.php
@@ -8,6 +8,7 @@
 namespace Drupal\Core\Cache\Context;
 
 use Drupal\Core\Cache\CacheableMetadata;
+use Drupal\Core\StringTranslation\TranslationWrapper;
 
 /**
  * Defines the UserCacheContext service, for "per user" caching.
@@ -20,7 +21,7 @@ class UserCacheContext extends UserCacheContextBase implements CacheContextInter
    * {@inheritdoc}
    */
   public static function getLabel() {
-    return t('User');
+    return new TranslationWrapper('User');
   }
 
   /**
diff --git a/core/lib/Drupal/Core/Cache/Context/UserRolesCacheContext.php b/core/lib/Drupal/Core/Cache/Context/UserRolesCacheContext.php
index 8143bed..ce58516 100644
--- a/core/lib/Drupal/Core/Cache/Context/UserRolesCacheContext.php
+++ b/core/lib/Drupal/Core/Cache/Context/UserRolesCacheContext.php
@@ -8,6 +8,7 @@
 namespace Drupal\Core\Cache\Context;
 
 use Drupal\Core\Cache\CacheableMetadata;
+use Drupal\Core\StringTranslation\TranslationWrapper;
 
 /**
  * Defines the UserRolesCacheContext service, for "per role" caching.
@@ -25,7 +26,7 @@ class UserRolesCacheContext extends UserCacheContextBase implements CalculatedCa
    * {@inheritdoc}
    */
   public static function getLabel() {
-    return t("User's roles");
+    return new TranslationWrapper("User's roles");
   }
 
   /**
diff --git a/core/modules/book/src/Cache/BookNavigationCacheContext.php b/core/modules/book/src/Cache/BookNavigationCacheContext.php
index d165b95..8597d31 100644
--- a/core/modules/book/src/Cache/BookNavigationCacheContext.php
+++ b/core/modules/book/src/Cache/BookNavigationCacheContext.php
@@ -9,6 +9,8 @@
 
 use Drupal\Core\Cache\CacheableMetadata;
 use Drupal\Core\Cache\Context\CacheContextInterface;
+use Drupal\Core\StringTranslation\StringTranslationTrait;
+use Drupal\Core\StringTranslation\TranslationWrapper;
 use Symfony\Component\DependencyInjection\ContainerAware;
 use Symfony\Component\HttpFoundation\RequestStack;
 
@@ -47,7 +49,7 @@ public function __construct(RequestStack $request_stack) {
    * {@inheritdoc}
    */
   public static function getLabel() {
-    return t("Book navigation");
+    return new TranslationWrapper("Book navigation");
   }
 
   /**
