refactor: use localizable string

This commit is contained in:
jamesgeorge007
2020-02-07 14:52:06 +05:30
parent a351abd5d9
commit 6037daedcd
2 changed files with 2 additions and 1 deletions

View File

@@ -60,7 +60,7 @@ export default {
methods: { methods: {
saveCollection() { saveCollection() {
if (!this.$data.name) { if (!this.$data.name) {
this.$toast.info("Please provide a valid name for the collection"); this.$toast.info($t("invalid_collection_name"));
return; return;
} }
const collectionUpdated = { const collectionUpdated = {

View File

@@ -140,6 +140,7 @@ export default {
deleted: "Deleted", deleted: "Deleted",
undo: "Undo", undo: "Undo",
collection_empty: "Collection is empty", collection_empty: "Collection is empty",
invalid_collection_name: "Please provide a valid name for the collection",
new_collection: "New Collection", new_collection: "New Collection",
my_new_collection: "My New Collection", my_new_collection: "My New Collection",
edit_collection: "Edit Collection", edit_collection: "Edit Collection",