In translation files (resources/lang), you can specify variables not only as :variable, but also capitalized as :VARIABLE or :Variable - and then whatever value you pass - will be also capitalized automatically.
// resources/lang/en/messages.php'welcome' => 'Welcome, :Name' // Result: "Welcome, Taylor"echo __('messages.welcome', ['name' => 'taylor']);