Added i18n support

This commit is contained in:
MakingCG
2020-04-01 18:44:47 +02:00
parent 182091c21a
commit 8633650f82
52 changed files with 861 additions and 272 deletions

View File

@@ -5,7 +5,7 @@
<!--Title-->
<div class="popup-header">
<h1 class="title">Move Item</h1>
<h1 class="title">{{ $t('popup_move_item.title') }}</h1>
<!--<p v-if="message" class="message">{{ message }}</p>-->
</div>
@@ -24,13 +24,13 @@
class="popup-button"
@click.native="closePopup"
button-style="secondary"
>Cancel
>{{ $t('popup_move_item.cancel') }}
</ButtonBase>
<ButtonBase
class="popup-button"
@click.native="moveItem"
:button-style="selectedFolder ? 'theme' : 'secondary'"
>Move
>{{ $t('popup_move_item.submit') }}
</ButtonBase>
</div>
</div>

View File

@@ -15,7 +15,7 @@
.text-label {
@include font-size(10);
color: $light_text;
color: $theme;
text-transform: uppercase;
font-weight: 900;
display: block;

View File

@@ -24,7 +24,7 @@
<span class="name">{{ file.name }}</span>
<!--Other attributes-->
<span class="subtitle">Original Location: {{ currentFolder.name }}</span>
<span class="subtitle">{{ $t('item_thumbnail.original_location') }}: {{ currentFolder.name }}</span>
</div>
</div>
</template>
@@ -47,11 +47,6 @@
return this.file.type === 'image'
}
},
filters: {
pluralize(word, amount) {
return amount > 1 ? word + 's' : word
}
},
}
</script>

View File

@@ -48,7 +48,7 @@
// Update user avatar
this.$updateImage('/user/profile', 'avatar', event.target.files[0])
} else {
alert('You may have uploaded the wrong file, try again!')
alert( this.$t('validation_errors.wrong_image') )
}
}
},