Please Disable Your Browser Adblock Extension for our site and Refresh This Page!

our ads are user friendly, we do not serve popup ads. We serve responsible ads!

Refresh Page
Skip to main content
On . By CodimTh

In this post, I will show you how to translate text with parameters with Vue I18n in Vue.js.

Simple text

To use a translation use the $t() function with a translation id as parameter:

  <p>{{ $t('hello') }}</p>

Text with parameters

You can of course add parameters to your translation texts:

    "hello": "Hallo {name}!",
  <p>{{ $t('hello', { name: 'Vue.js'}) }}</p>


Add new comment

Restricted HTML


Page Facebook

Become a patron

If you need some help or you search a Drupal freelancer don't hesitate to contact us.


Contact Us

All the content is FREE but I still need your help


Become a patreon