added v-bind to all placeholders to show vue-i18n translations

This commit is contained in:
Dexter Griffiths
2022-04-16 22:17:43 +09:00
parent 9d0db337eb
commit f0cfb27d9b
7 changed files with 31 additions and 17 deletions

View File

@@ -50,5 +50,19 @@
"filterSelectCreateNewBoardButton": "Create New Board",
"pinCreateModalEmptySlot": "There are no items",
"pinCreateModalCreatePinButton": "Create Pin",
"pinCreateModalSaveChangesButton": "Save Changes"
"pinCreateModalSaveChangesButton": "Save Changes",
"passwordSignUpPlaceholder": "Your password",
"passwordLoginPlaceholder": "Your password",
"boardNamePlaceholder": "board name",
"usernamePlaceholder": "Your Username",
"emailPlaceholder": "Your email",
"repeatPasswordInputPlaceholder": "Your password again",
"chooseFilterPlaceholder": "Choose Filter",
"selectFilterPlaceholder": "select a filter then type to filter",
"searchBoardPlaceholder": "type to search board",
"filterSelectSelectBoardPlaceholder": "Type to filter or Create one",
"pinCreateModalImageURLPlaceholder": "where to fetch the image",
"pinCreateModalImageSourcePlaceholder": "where to find the pin",
"pinCreateModalImageTagsPlaceholder": "Add a tag",
"pinCreateModalImageDescriptionPlaceholder": "idea from this pin"
}

View File

@@ -13,7 +13,7 @@
<b-input
type="text"
v-model="createModel.form.name.value"
placeholder="board name"
v-bind:placeholder="$t('boardNamePlaceholder')"
maxlength="128"
>
</b-input>
@@ -33,7 +33,7 @@
<b-input
type="text"
v-model="editModel.form.name.value"
placeholder="board name"
v-bind:placeholder="$t('boardNamePlaceholder')"
maxlength="128"
>
</b-input>

View File

@@ -13,7 +13,7 @@
name="username"
type="text"
v-model="form.username.value"
placeholder="Your Username"
v-bind:placeholder="$t('usernamePlaceholder')"
maxlength="30"
required>
</b-input>
@@ -26,7 +26,7 @@
type="password"
v-model="form.password.value"
password-reveal
placeholder="Your password"
v-bind:placeholder="$t('passwordLoginPlaceholder')"
required>
</b-input>
</b-field>

View File

@@ -12,7 +12,7 @@
<b-input
type="string"
v-model="form.username.value"
placeholder="Your Username"
v-bind:placeholder="$t('usernamePlaceholder')"
maxlength="30"
required>
</b-input>
@@ -25,7 +25,7 @@
type="email"
v-model="form.email.value"
password-reveal
placeholder="Your email"
v-bind:placeholder="$t('emailPlaceholder')"
required>
</b-input>
</b-field>
@@ -36,7 +36,7 @@
type="password"
v-model="form.password.value"
password-reveal
placeholder="Your password"
v-bind:placeholder="$t('passwordSignUpPlaceholder')"
required>
</b-input>
</b-field>
@@ -47,7 +47,7 @@
type="password"
v-model="form.password_repeat.value"
password-reveal
placeholder="Your password again"
v-bind:placeholder="$t('repeatPasswordInputPlaceholder')"
required>
</b-input>
</b-field>

View File

@@ -6,7 +6,7 @@
<b-input
type="text"
v-model="form.name.value"
placeholder="Type to filter or Create one"
v-bind:placeholder="$t('filterSelectSelectBoardPlaceholder')"
maxlength="128"
>
</b-input>

View File

@@ -23,7 +23,7 @@
<b-input
type="text"
v-model="pinModel.form.url.value"
placeholder="where to fetch the image"
v-bind:placeholder="$t('pinCreateModalImageURLPlaceholder')"
maxlength="2048"
>
</b-input>
@@ -41,7 +41,7 @@
<b-input
type="text"
v-model="pinModel.form.referer.value"
placeholder="where to find the pin"
v-bind:placeholder="$t('pinCreateModalImageSourcePlaceholder')"
maxlength="2048"
>
</b-input>
@@ -54,7 +54,7 @@
ellipsis
icon="label"
:allow-new="true"
placeholder="Add a tag"
v-bind:placeholder="$t('pinCreateModalImageTagsPlaceholder')"
@typing="getFilteredTags">
<template slot-scope="props">
<strong>{{ props.option }}</strong>
@@ -70,7 +70,7 @@
<b-input
type="textarea"
v-model="pinModel.form.description.value"
placeholder="idea from this pin"
v-bind:placeholder="$t('pinCreateModalImageDescriptionPlaceholder')"
maxlength="1024"
>
</b-input>

View File

@@ -3,7 +3,7 @@
<div class="filter-selector">
<div class="card-content">
<b-field>
<b-select placeholder="Choose Filter" v-model="filterType">
<b-select v-bind:placeholder="$t('chooseFilterPlaceholder')" v-model="filterType">
<option>{{ $t("SearchPanelTagOption") }}</option>
<option>{{ $t("SearchPanelBoardOption") }}</option>
</b-select>
@@ -14,7 +14,7 @@
:data="filteredDataArray"
:keep-first="true"
:open-on-focus="true"
placeholder="select a filter then type to filter"
v-bind:placeholder="$t('selectFilterPlaceholder')"
icon="magnify"
@select="option => selected = option">
<template slot="empty">{{ $t("noResultsFound") }}</template>
@@ -24,7 +24,7 @@
class="search-input"
type="search"
v-model="boardText"
placeholder="type to search board"
v-bind:placeholder="$t('searchBoardPlaceholder')"
icon="magnify"
>
</b-input>