# Vue
# Mixins
# can({permission})
The can
mixin checks if the authenticated user has a permission.
<template v-if="can('read message')">{{ message }}</template>
# user()
The user
mixin returns the authenticated FjordUser Model.
<span>{{ user().name }}</span>
# Localization
i18n-vue is used for the translation in Vue. All translations that are available in php are available in i18n-vue as well like shown in the example:
// fjord/resources/lang/{locale}/message.php
return [
"welcome": "Welcome to Fjord"
];
<div>
{{ $t('message.welcome') }}
</div>