Question · Vue.js course · Module 14: Directives & Plugins
i18n Plugin - the t() function
What does the function t('nav.home') do in an i18n plugin?
Answer options
- Creates a new translation key
- Changes the current language to 'nav'
- Returns the translation for the key in the current language
- Registers a new 'home' component
You can check the correct answer by solving this task in the CodeWorlds game.