Oops! Page Not Found
-Error 404
+{{ $t("pageNotFound") }}
+diff --git a/pinry-spa/package.json b/pinry-spa/package.json
index ba5f39e..75348ab 100644
--- a/pinry-spa/package.json
+++ b/pinry-spa/package.json
@@ -13,6 +13,7 @@
"core-js": "^3.3.2",
"register-service-worker": "^1.6.2",
"vue": "^2.6.10",
+ "vue-i18n": "8",
"vue-masonry": "^0.11.8",
"vue-router": "^3.1.3"
},
diff --git a/pinry-spa/src/assets/locales/en.json b/pinry-spa/src/assets/locales/en.json
new file mode 100644
index 0000000..7d805d3
--- /dev/null
+++ b/pinry-spa/src/assets/locales/en.json
@@ -0,0 +1,79 @@
+{
+ "loginTitle": "Login",
+ "loginButton": "Login",
+ "closeButton": "Close",
+ "end": "End",
+ "bookmarkletLink": "BookmarkletLink",
+ "createLink": "Create",
+ "pinLink": "Pin",
+ "boardLink": "Board",
+ "myLink": "My",
+ "boardsLink": "Boards",
+ "pinsLink": "Pins",
+ "profileLink": "Profile",
+ "browserExtensionsLink": "Browser Extensions",
+ "chromeLink": "Chrome",
+ "firefoxLink": "Firefox",
+ "signUpLink": "Sign up",
+ "logInLink": "Log in",
+ "logOutLink": "Log out",
+ "signUpTitle": "Sign Up",
+ "registerButton": "Register",
+ "pageNotFound": "Oops! Page Not Found",
+ "error404": "Error 404",
+ "pinsInBoard": "Pins in board: ",
+ "isPrivateCheckbox": "is private",
+ "createBoardButton": "Create Board",
+ "saveChangesButton": "Save Changes",
+ "pinnedByTitle": "Pinned by ",
+ "sourceButton": "Source",
+ "originalImageButton": "Original Image",
+ "permalinkButton": "Permalink",
+ "pinnedByInfo": "Pinned by",
+ "sourceLink": "Source",
+ "userProfileCardContent": "Yet another Pinry user.",
+ "pinsUserProfileCardLink": "Pins",
+ "boardsUserProfileCardLink": "Boards",
+ "profileUserProfileCardLink": "Profile",
+ "tokenUserProfileCardTitle": "Token",
+ "tokenUserProfileCardContent": "Your Token is:",
+ "pleaseReadTokenUserProfileCardContent": "Please read ",
+ "forMoreDetailsParagraph": " for more detail to know how to use it.",
+ "drfApiDocumentationLink": "DRF API Documentation",
+ "searchButton": "Search",
+ "noResultsFound": "No results found",
+ "SearchPanelBoardOption": "Board",
+ "SearchPanelTagOption": "Tag",
+ "Add2BoardModalCardTitle": "Add Pin to Board",
+ "Add2BoardModalCardButton": "Add Pin to Board",
+ "FileUploadDescription": "Drop your files here or click to upload",
+ "filterSelectCreateNewBoardButton": "Create New Board",
+ "pinCreateModalEmptySlot": "There are no items",
+ "pinCreateModalCreatePinButton": "Create Pin",
+ "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",
+ "emailLabel": "Email",
+ "usernameLabel": "Username",
+ "passwordLabel": "Password",
+ "repeatPasswordLabel": "Password repeat",
+ "nameLabel": "name",
+ "privacyOptionLabel": "Privacy Option",
+ "imageUrlLabel": "Image URL",
+ "imageSourceLabel": "Image Source",
+ "tagsLabel": "Tags",
+ "descriptionLabel": "Descripton",
+ "selectBoardLabel": "Select Board"
+}
\ No newline at end of file
diff --git a/pinry-spa/src/components/BoardEdit.vue b/pinry-spa/src/components/BoardEdit.vue
index 572b608..daf8145 100644
--- a/pinry-spa/src/components/BoardEdit.vue
+++ b/pinry-spa/src/components/BoardEdit.vue
@@ -7,57 +7,57 @@
{{ item.name }}
- Pins in board: {{ item.total_pins }} + {{ $t("pinsInBoard") }}{{ item.total_pins }}
diff --git a/pinry-spa/src/components/LoginForm.vue b/pinry-spa/src/components/LoginForm.vue index da82ec1..f4b8cd1 100644 --- a/pinry-spa/src/components/LoginForm.vue +++ b/pinry-spa/src/components/LoginForm.vue @@ -3,39 +3,39 @@Login
+{{ $t("loginTitle") }}
in
@@ -33,7 +33,7 @@
v-show="pinItem.referer !== null"
class="meta-link"
type="is-warning">
- Source
+ {{ $t("sourceButton") }}
@@ -41,14 +41,14 @@
v-show="pinItem.original_image_url !== null"
class="meta-link"
type="is-link">
- Original Image
+ {{ $t("originalImageButton") }}
Sign Up
+{{ $t("signUpTitle") }}
Add Pin to Board
+{{ $t("Add2BoardModalCardTitle") }}
Drop your files here or click to upload
+{{ $t("FileUploadDescription") }}
-
- Token + {{ $t("tokenUserProfileCardTitle") }}
Your Token is:
+{{ $t("tokenUserProfileCardContent") }}
{{ token }}- Please read DRF API Documentation for more detail to know how to use it. + {{ $t("pleaseReadTokenUserProfileCardContent") }}{{ $t("drfApiDocumentationLink") }}{{ $t("forMoreDetailsParagraph") }}
Oops! Page Not Found
-{{ $t("pageNotFound") }}
+