Localization With Laravel and Vuejs

Everyone who has built a multi-language application in Laravel knows a couple of ways of translating a string. Options are {{ __(‘apple’) }}, {{ trans(‘apple’) }}, {{ trans_choice(‘apple’, 2) }} or @trans(‘apple’). Lately, Laravel embraces VueJS and you might – like me – be building your frontend not soley with blade templates anymore but adding a VueJS component here and there. This is fine and as long as you use an inline-template where you write your HTML code directly in the *.