diff --git a/src/components/Footer.vue b/src/components/Footer.vue
index fa44731..bc07e87 100644
--- a/src/components/Footer.vue
+++ b/src/components/Footer.vue
@@ -3,17 +3,69 @@
© 2021 Kaverti
Lang:
-
+ en
+ wind
+ debug
\ No newline at end of file
diff --git a/src/components/Navbar.vue b/src/components/Navbar.vue
index 079d225..526f039 100644
--- a/src/components/Navbar.vue
+++ b/src/components/Navbar.vue
@@ -15,7 +15,7 @@
@@ -27,7 +27,7 @@
+ @click="loginModal = false"/>
@@ -59,7 +59,7 @@
type="is-primary" />
+ @click="loginModal = false" />
+ @click="registerModal = false"/>
@@ -126,7 +126,7 @@
type="is-primary" />
+ @click="registerModal = false" />
{
- this.$buefy.snackbar.open({message:`Error occurred while fetching user information.`, type: 'is-warning'})
+ this.$buefy.snackbar.open({message:this.$t('errors.authFail'), type: 'is-warning'})
})
}).catch(e => {
this.login.loading = false
@@ -314,7 +314,7 @@ export default {
this.$store.commit('setID', res.data.id)
this.$store.commit('setBot', res.data.bot)
}).catch(() => {
- this.$buefy.snackbar.open({message:`Error occurred while fetching user information.`, type: 'is-warning'})
+ this.$buefy.snackbar.open({message:this.$t('errors.authFail'), type: 'is-warning'})
})
AjaxErrorHandler(this.$store)(e, (error, errors) => {
@@ -353,7 +353,7 @@ export default {
this.loading = false
}).catch(() => {
localStorage.setItem('userCache', JSON.stringify(this.$store.state.user));
- this.$buefy.snackbar.open({message:`Error occurred while fetching user information.`, type: 'is-warning'})
+ this.$buefy.snackbar.open({message:this.$t('errors.authFail'), type: 'is-warning'})
this.loading = false
})
}
diff --git a/src/locales/en.json b/src/locales/en.json
index 5ee9579..c3a8c9c 100644
--- a/src/locales/en.json
+++ b/src/locales/en.json
@@ -17,6 +17,91 @@
"login": "Already have a Kaverti account?",
"agree": "Do you agree to the "
},
+ "teams": {
+ "createTeam": "Create Team",
+ "joinTeam": "Join Team",
+ "join": "Join",
+ "invite": "Invite",
+ "viewPermissions": "View role permissions",
+ "devBanner": "Teams are currently in development, expect missing features.",
+ "view": "View",
+ "viewTeam": "View Team",
+ "memberRoles": "Members and Roles",
+ "members": "Members",
+ "roles": "Roles",
+ "items": "Created Items",
+ "foundedAt": "Team was founded at",
+ "teamWall": "Team Wall",
+ "teamWallText": "'s Team Wall",
+ "verified": "Verified Team",
+ "admin": {
+ "text": "Team Administration",
+ "nav": {
+ "general": "General",
+ "roles": "Roles",
+ "members": "Members",
+ "privacy": "Privacy",
+ "invites": "Invites",
+ "forum": "Forum",
+ "verification": "Verification"
+ },
+ "general": {
+ "title": "General",
+ "name": "Name",
+ "description": "Description",
+ "saveTeam": "Save Team",
+ "modifyPicture": "Modify Team avatar"
+ },
+ "roles": {
+ "title": "Roles",
+ "addRole": "Add Role",
+ "saveOrder": "Save role order",
+ "modifying": "Modifying",
+ "name": "Chosen role name",
+ "permissions": "Permissions",
+ "creating": "Creating a role"
+ },
+ "members": {
+ "title": "Members",
+ "modifyRoles": "Modify user roles",
+ "removeAllRoles": "Remove all roles from user"
+ },
+ "privacy": {
+ "title": "Team Privacy",
+ "teamWall": "Opt out of team walls",
+ "disallowForum": "Disallow anyone from viewing/creating on your Team Forum"
+ },
+ "invites": {
+ "title": "Invites",
+ "code": "Code",
+ "uses": "Uses",
+ "maxUses": "Max Uses",
+ "createdBy": "Created by",
+ "date": "Date",
+ "delete": "Delete selected",
+ "generate": "Generate invite"
+ },
+ "invite": {
+ "title": "Invite people to",
+ "amountUses": "Amount of uses (0 is Unlimited)",
+ "role": "Please select a role for the user to be auto assigned (optional)",
+ "refresh": "Refresh",
+ "inviteURL": "Invite URL",
+ "domain": "https://kaverti.com/invite/"
+ }
+ },
+ "permissionTypes": {
+ "inviteUsers": "Invite users",
+ "administrator": "Administrator",
+ "modifyRoles": "Modify roles/permissions/users",
+ "modifyTeamSettings": "Modify team settings",
+ "teamForum": "Modify team forum configuration",
+ "forumModerator": "Forum moderation permissions",
+ "forumAdmin": "Forum administrator",
+ "submitMarketplace": "Submit Marketplace items",
+ "priorityValue": "Set priority value"
+ }
+ },
"navbar": {
"home": "Home",
"forums": "Forums",
@@ -60,12 +145,13 @@
"auth": "Test authentication"
},
"errors": {
- "authFail": "Request failed, you are not authenticated.",
+ "authFail": "Request failed, you are not authenticated. (Is API blocked?)",
"devBuild": "Warning: You are using a development build of Kaverti, expect instabilities.",
"disableDebug": "Debug mode disabled, you will no longer have access to development features until you refresh.",
"authSuccess": "Request successful, your token is valid, and the Kaverti server instance is running correctly."
},
"close": "Close",
"tos": "Terms of Service",
+ "gotIt": "Got it!",
"errorModalTitle": "Something went wrong..."
}
\ No newline at end of file