add i18n
This commit is contained in:
@@ -45,23 +45,24 @@
|
||||
<template>
|
||||
<form @submit.prevent="onSubmit">
|
||||
<div class="field">
|
||||
<label class="label">Title</label>
|
||||
<label class="label">{{$t('addbook.title')}}</label>
|
||||
<div class="control">
|
||||
<input :class="'input ' + (titleError ? 'is-danger' : '')" type="text" maxlength="300"
|
||||
required v-model="book.title" placeholder="Title">
|
||||
required v-model="book.title" :placeholder="$t('addbook.title')">
|
||||
</div>
|
||||
<p v-if="titleError" class="help is-danger">{{titleError}}</p>
|
||||
</div>
|
||||
<div class="field">
|
||||
<label class="label">Author</label>
|
||||
<label class="label">{{$t('addbook.author')}}</label>
|
||||
<div class="control">
|
||||
<input :class="'input ' + (authorError ? 'is-danger' : '')" type="text" maxlength="100" v-model="book.author" placeholder="Author">
|
||||
<input :class="'input ' + (authorError ? 'is-danger' : '')" type="text" maxlength="100"
|
||||
v-model="book.author" :placeholder="$t('addbook.author')">
|
||||
</div>
|
||||
<p v-if="authorError" class="help is-danger">{{authorError}}</p>
|
||||
</div>
|
||||
<div class="field">
|
||||
<div class="control">
|
||||
<button class="button is-link">Submit</button>
|
||||
<button class="button is-link">{{$t('addbook.submit')}}</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
Reference in New Issue
Block a user