From b615fe752989ff482b0efd3cfa30d9cbe71e76e0 Mon Sep 17 00:00:00 2001
From: liyasthomas
Date: Mon, 2 Aug 2021 20:57:18 +0530
Subject: [PATCH] feat: init new i18n format
---
components/app/Announcement.vue | 6 +-
components/app/Footer.vue | 12 +-
components/app/Header.vue | 4 +-
components/app/Shortcuts.vue | 22 +-
components/app/Sidenav.vue | 30 +-
components/collections/Add.vue | 4 +-
components/collections/AddFolder.vue | 2 +-
components/collections/Edit.vue | 2 +-
components/collections/EditFolder.vue | 2 +-
components/collections/ImportExport.vue | 22 +-
components/collections/SaveRequest.vue | 2 +-
components/collections/graphql/Add.vue | 6 +-
components/collections/graphql/AddFolder.vue | 2 +-
components/collections/graphql/Collection.vue | 8 +-
components/collections/graphql/Edit.vue | 4 +-
components/collections/graphql/EditFolder.vue | 2 +-
components/collections/graphql/Folder.vue | 8 +-
.../collections/graphql/ImportExport.vue | 18 +-
components/collections/graphql/Request.vue | 2 +-
components/collections/graphql/index.vue | 6 +-
components/collections/index.vue | 22 +-
components/collections/my/Collection.vue | 10 +-
components/collections/my/Folder.vue | 8 +-
components/collections/my/Request.vue | 2 +-
components/collections/teams/Collection.vue | 10 +-
components/collections/teams/Folder.vue | 8 +-
components/collections/teams/Request.vue | 2 +-
components/environments/Edit.vue | 10 +-
components/environments/Environment.vue | 2 +-
components/environments/ImportExport.vue | 16 +-
components/environments/index.vue | 6 +-
components/firebase/Login.vue | 22 +-
components/firebase/Logout.vue | 2 +-
components/history/graphql/Card.vue | 4 +-
components/history/index.vue | 4 +-
components/history/rest/Card.vue | 2 +-
components/http/BodyParameters.vue | 10 +-
components/http/CodegenModal.vue | 7 +-
components/http/Headers.vue | 18 +-
components/http/ImportCurl.vue | 7 +-
components/http/Parameters.vue | 20 +-
components/http/RawBody.vue | 2 +-
components/http/Request.vue | 8 +-
components/http/ResponseMeta.vue | 15 +-
components/http/Tests.vue | 6 +-
components/http/TokenList.vue | 2 +-
.../lenses/renderers/HTMLLensRenderer.vue | 4 +-
.../lenses/renderers/JSONLensRenderer.vue | 2 +-
.../lenses/renderers/RawLensRenderer.vue | 2 +-
.../lenses/renderers/XMLLensRenderer.vue | 2 +-
components/realtime/Mqtt.vue | 12 +-
components/realtime/Socketio.vue | 4 +-
components/realtime/Websocket.vue | 14 +-
components/smart/ChangeLanguage.vue | 28 +-
components/smart/EnvInput.vue | 3 +-
components/teams/Add.vue | 6 +-
components/teams/Edit.vue | 28 +-
components/teams/Team.vue | 8 +-
components/teams/index.vue | 6 +-
lang/en-US.json | 323 ++++++++++--------
layouts/default.vue | 2 +-
pages/documentation.vue | 14 +-
pages/graphql.vue | 28 +-
pages/index.vue | 2 -
pages/realtime.vue | 4 +-
pages/settings.vue | 23 +-
66 files changed, 476 insertions(+), 428 deletions(-)
diff --git a/components/app/Announcement.vue b/components/app/Announcement.vue
index 2f2f179a9..e6f98cd4f 100644
--- a/components/app/Announcement.vue
+++ b/components/app/Announcement.vue
@@ -49,10 +49,6 @@
-
+
diff --git a/components/app/Footer.vue b/components/app/Footer.vue
index 8bb54708e..e24ad803a 100644
--- a/components/app/Footer.vue
+++ b/components/app/Footer.vue
@@ -4,16 +4,16 @@
@@ -110,7 +110,7 @@ export default {
theme: "toasted-primary",
action: [
{
- text: this.$t("dismiss"),
+ text: this.$t("action.dismiss"),
onClick: (_, toastObject) => {
setLocalConfig("cookiesAllowed", "yes")
toastObject.goAway(0)
diff --git a/components/app/Shortcuts.vue b/components/app/Shortcuts.vue
index c9165fd28..d39bfa3c5 100644
--- a/components/app/Shortcuts.vue
+++ b/components/app/Shortcuts.vue
@@ -85,19 +85,19 @@ export default {
shortcuts: [
{
keys: [getPlatformSpecialKey(), "G"],
- label: this.$t("send_request"),
+ label: this.$t("shortcut.send_request"),
},
{
keys: [getPlatformSpecialKey(), "S"],
- label: this.$t("save_to_collections"),
+ label: this.$t("shortcut.save_to_collections"),
},
{
keys: [getPlatformSpecialKey(), "K"],
- label: this.$t("copy_request_link"),
+ label: this.$t("shortcut.copy_request_link"),
},
{
keys: [getPlatformSpecialKey(), "I"],
- label: this.$t("reset_request"),
+ label: this.$t("shortcut.reset_request"),
},
],
},
@@ -106,31 +106,31 @@ export default {
shortcuts: [
{
keys: [getPlatformAlternateKey(), "↑"],
- label: this.$t("select_next_method"),
+ label: this.$t("shortcut.next_method"),
},
{
keys: [getPlatformAlternateKey(), "↓"],
- label: this.$t("select_previous_method"),
+ label: this.$t("shortcut.previous_method"),
},
{
keys: [getPlatformAlternateKey(), "G"],
- label: this.$t("select_get_method"),
+ label: this.$t("shortcut.get_method"),
},
{
keys: [getPlatformAlternateKey(), "H"],
- label: this.$t("select_head_method"),
+ label: this.$t("shortcut.head_method"),
},
{
keys: [getPlatformAlternateKey(), "P"],
- label: this.$t("select_post_method"),
+ label: this.$t("shortcut.post_method"),
},
{
keys: [getPlatformAlternateKey(), "U"],
- label: this.$t("select_put_method"),
+ label: this.$t("shortcut.put_method"),
},
{
keys: [getPlatformAlternateKey(), "X"],
- label: this.$t("select_delete_method"),
+ label: this.$t("shortcut.delete_method"),
},
],
},
diff --git a/components/app/Sidenav.vue b/components/app/Sidenav.vue
index 847eeebd8..d411c38dd 100644
--- a/components/app/Sidenav.vue
+++ b/components/app/Sidenav.vue
@@ -24,11 +24,31 @@ export default {
data() {
return {
primaryNavigation: [
- { target: "index", icon: "settings_ethernet", title: "REST" },
- { target: "graphql", svg: "graphql", title: "GraphQL" },
- { target: "realtime", icon: "language", title: "Realtime" },
- { target: "documentation", icon: "book", title: "Doc" },
- { target: "settings", icon: "settings", title: "Settings" },
+ {
+ target: "index",
+ icon: "settings_ethernet",
+ title: this.$t("navigation.rest"),
+ },
+ {
+ target: "graphql",
+ svg: "graphql",
+ title: this.$t("navigation.graphql"),
+ },
+ {
+ target: "realtime",
+ icon: "language",
+ title: this.$t("navigation.realtime"),
+ },
+ {
+ target: "documentation",
+ icon: "book",
+ title: this.$t("navigation.doc"),
+ },
+ {
+ target: "settings",
+ icon: "settings",
+ title: this.$t("navigation.settings"),
+ },
],
}
},
diff --git a/components/collections/Add.vue b/components/collections/Add.vue
index 992981bd1..ab9d0391e 100644
--- a/components/collections/Add.vue
+++ b/components/collections/Add.vue
@@ -1,7 +1,7 @@
- {{ $t("new_collection") }}
+ {{ $t("collection.new") }}
@@ -14,7 +14,7 @@
v-model="name"
class="input"
type="text"
- :placeholder="$t('my_new_collection')"
+ :placeholder="$t('collection.name')"
@keyup.enter="addNewCollection"
/>
diff --git a/components/collections/AddFolder.vue b/components/collections/AddFolder.vue
index ee0238525..ad2c42727 100644
--- a/components/collections/AddFolder.vue
+++ b/components/collections/AddFolder.vue
@@ -16,7 +16,7 @@
v-model="name"
class="input"
type="text"
- :placeholder="$t('my_new_folder')"
+ :placeholder="$t('folder.new')"
@keyup.enter="addFolder"
/>
diff --git a/components/collections/Edit.vue b/components/collections/Edit.vue
index 35f1c1269..fef07da12 100644
--- a/components/collections/Edit.vue
+++ b/components/collections/Edit.vue
@@ -1,7 +1,7 @@
- {{ $t("edit_collection") }}
+ {{ $t("collection.edit") }}
diff --git a/components/collections/EditFolder.vue b/components/collections/EditFolder.vue
index 8e94dea14..aecf6e2cc 100644
--- a/components/collections/EditFolder.vue
+++ b/components/collections/EditFolder.vue
@@ -1,7 +1,7 @@
- {{ $t("edit_folder") }}
+ {{ $t("folder.edit") }}
diff --git a/components/collections/ImportExport.vue b/components/collections/ImportExport.vue
index b7242d31a..d663b8b7a 100644
--- a/components/collections/ImportExport.vue
+++ b/components/collections/ImportExport.vue
@@ -33,7 +33,7 @@
@@ -155,7 +155,7 @@
@@ -213,7 +213,7 @@ export default {
}
)
.then((res) => {
- this.$toast.success(this.$t("gist_created"), {
+ this.$toast.success(this.$t("export.gist_created"), {
icon: "done",
})
window.open(res.html_url)
@@ -226,7 +226,7 @@ export default {
})
},
async readCollectionGist() {
- const gist = prompt(this.$t("enter_gist_url"))
+ const gist = prompt(this.$t("import.gist_url"))
if (!gist) return
await this.$axios
.$get(`https://api.github.com/gists/${gist.split("/").pop()}`, {
@@ -413,7 +413,7 @@ export default {
})
},
failedImport() {
- this.$toast.error(this.$t("import_failed"), {
+ this.$toast.error(this.$t("import.failed"), {
icon: "error",
})
},
diff --git a/components/collections/SaveRequest.vue b/components/collections/SaveRequest.vue
index ecb8aaecc..ca827a6e9 100644
--- a/components/collections/SaveRequest.vue
+++ b/components/collections/SaveRequest.vue
@@ -103,7 +103,7 @@ export default defineComponent({
},
saveRequestAs() {
if (this.picked == null) {
- this.$toast.error(this.$t("select_collection"), {
+ this.$toast.error(this.$t("collection.select"), {
icon: "error",
})
return
diff --git a/components/collections/graphql/Add.vue b/components/collections/graphql/Add.vue
index 0bc3a3cae..588a5769d 100644
--- a/components/collections/graphql/Add.vue
+++ b/components/collections/graphql/Add.vue
@@ -1,7 +1,7 @@
- {{ $t("new_collection") }}
+ {{ $t("collection.new") }}
@@ -14,7 +14,7 @@
v-model="name"
class="input"
type="text"
- :placeholder="$t('my_new_collection')"
+ :placeholder="$t('collection.name')"
@keyup.enter="addNewCollection"
/>
@@ -44,7 +44,7 @@ export default Vue.extend({
methods: {
addNewCollection() {
if (!this.name) {
- this.$toast.info(this.$t("invalid_collection_name").toString())
+ this.$toast.info(this.$t("collection.invalid_name").toString())
return
}
diff --git a/components/collections/graphql/AddFolder.vue b/components/collections/graphql/AddFolder.vue
index c62c164c2..f0b6ba0f8 100644
--- a/components/collections/graphql/AddFolder.vue
+++ b/components/collections/graphql/AddFolder.vue
@@ -16,7 +16,7 @@
v-model="name"
class="input"
type="text"
- :placeholder="$t('my_new_folder')"
+ :placeholder="$t('folder.new')"
@keyup.enter="addFolder"
/>
diff --git a/components/collections/graphql/Collection.vue b/components/collections/graphql/Collection.vue
index 0777dedd2..596f32e4d 100644
--- a/components/collections/graphql/Collection.vue
+++ b/components/collections/graphql/Collection.vue
@@ -36,7 +36,7 @@
folder_open
- {{ $t("collection_empty") }}
+ {{ $t("empty.collection") }}
diff --git a/components/collections/graphql/Edit.vue b/components/collections/graphql/Edit.vue
index 52712284c..12a6b5849 100644
--- a/components/collections/graphql/Edit.vue
+++ b/components/collections/graphql/Edit.vue
@@ -1,7 +1,7 @@
- {{ $t("edit_collection") }}
+ {{ $t("collection.edit") }}
@@ -48,7 +48,7 @@ export default Vue.extend({
methods: {
saveCollection() {
if (!this.name) {
- this.$toast.info(this.$t("invalid_collection_name").toString())
+ this.$toast.info(this.$t("collection.invalid_name").toString())
return
}
const collectionUpdated = {
diff --git a/components/collections/graphql/EditFolder.vue b/components/collections/graphql/EditFolder.vue
index 1d06962df..186165a58 100644
--- a/components/collections/graphql/EditFolder.vue
+++ b/components/collections/graphql/EditFolder.vue
@@ -1,7 +1,7 @@
- {{ $t("edit_folder") }}
+ {{ $t("folder.edit") }}
diff --git a/components/collections/graphql/Folder.vue b/components/collections/graphql/Folder.vue
index ae472152d..85bc3ba77 100644
--- a/components/collections/graphql/Folder.vue
+++ b/components/collections/graphql/Folder.vue
@@ -38,7 +38,7 @@
@@ -59,7 +59,7 @@
folder_open
- {{ $t("folder_empty") }}
+ {{ $t("empty.folder") }}
diff --git a/components/collections/graphql/ImportExport.vue b/components/collections/graphql/ImportExport.vue
index 5577287f8..ba2ad8162 100644
--- a/components/collections/graphql/ImportExport.vue
+++ b/components/collections/graphql/ImportExport.vue
@@ -20,7 +20,7 @@
@@ -140,7 +140,7 @@ export default {
}
)
.then((res) => {
- this.$toast.success(this.$t("gist_created"), {
+ this.$toast.success(this.$t("export.gist_created"), {
icon: "done",
})
window.open(res.html_url)
@@ -153,7 +153,7 @@ export default {
})
},
async readCollectionGist() {
- const gist = prompt(this.$t("enter_gist_url"))
+ const gist = prompt(this.$t("import.gist_url"))
if (!gist) return
await this.$axios
.$get(`https://api.github.com/gists/${gist.split("/").pop()}`, {
@@ -266,7 +266,7 @@ export default {
})
},
failedImport() {
- this.$toast.error(this.$t("import_failed"), {
+ this.$toast.error(this.$t("import.failed"), {
icon: "error",
})
},
diff --git a/components/collections/graphql/Request.vue b/components/collections/graphql/Request.vue
index ae710b33e..6271fe19b 100644
--- a/components/collections/graphql/Request.vue
+++ b/components/collections/graphql/Request.vue
@@ -89,7 +89,7 @@
diff --git a/components/collections/graphql/index.vue b/components/collections/graphql/index.vue
index 1e9d73e13..f0a8a9fb1 100644
--- a/components/collections/graphql/index.vue
+++ b/components/collections/graphql/index.vue
@@ -35,7 +35,7 @@
@@ -66,10 +66,10 @@
>
create_new_folder
- {{ $t("collections_empty") }}
+ {{ $t("empty.collections") }}
diff --git a/components/collections/index.vue b/components/collections/index.vue
index 8adfb0ef4..cc0f28907 100644
--- a/components/collections/index.vue
+++ b/components/collections/index.vue
@@ -43,7 +43,7 @@
v-tippy="{ theme: 'tooltip' }"
disabled
icon="add"
- :title="$t('disable_new_collection')"
+ :title="$t('team.no_access')"
:label="$t('new')"
/>
@@ -101,7 +101,7 @@
>
create_new_folder
- {{ $t("collections_empty") }}
+ {{ $t("empty.collections") }}
@@ -313,7 +313,7 @@ export default {
// Intented to be called by the CollectionAdd modal submit event
addNewRootCollection(name) {
if (!name) {
- this.$toast.info(this.$t("invalid_collection_name"))
+ this.$toast.info(this.$t("collection.invalid_name"))
return
}
if (this.collectionsType.type === "my-collections") {
@@ -333,7 +333,7 @@ export default {
this.collectionsType.selectedTeam.id
)
.then(() => {
- this.$toast.success(this.$t("collection_added"), {
+ this.$toast.success(this.$t("collection.created"), {
icon: "done",
})
})
@@ -349,7 +349,7 @@ export default {
// Intented to be called by CollectionEdit modal submit event
updateEditingCollection(newName) {
if (!newName) {
- this.$toast.info(this.$t("invalid_collection_name"))
+ this.$toast.info(this.$t("collection.invalid_name"))
return
}
if (this.collectionsType.type === "my-collections") {
@@ -392,7 +392,7 @@ export default {
.renameCollection(this.$apollo, name, this.editingFolder.id)
.then(() => {
// Result
- this.$toast.success(this.$t("folder_renamed"), {
+ this.$toast.success(this.$t("folder.renamed"), {
icon: "done",
})
})
@@ -507,7 +507,7 @@ export default {
})
.then(() => {
// Result
- this.$toast.success(this.$t("folder_added"), {
+ this.$toast.success(this.$t("folder.created"), {
icon: "done",
})
this.$emit("update-team-collections")
diff --git a/components/collections/my/Collection.vue b/components/collections/my/Collection.vue
index 97a4239f3..342276893 100644
--- a/components/collections/my/Collection.vue
+++ b/components/collections/my/Collection.vue
@@ -36,7 +36,7 @@
folder_open
- {{ $t("collection_empty") }}
+ {{ $t("empty.collection") }}
diff --git a/components/collections/my/Folder.vue b/components/collections/my/Folder.vue
index ef3c9a156..10ec944a1 100644
--- a/components/collections/my/Folder.vue
+++ b/components/collections/my/Folder.vue
@@ -38,7 +38,7 @@
@@ -59,7 +59,7 @@
folder_open
- {{ $t("folder_empty") }}
+ {{ $t("empty.folder") }}
diff --git a/components/collections/my/Request.vue b/components/collections/my/Request.vue
index eac9156d4..4585ed21a 100644
--- a/components/collections/my/Request.vue
+++ b/components/collections/my/Request.vue
@@ -100,7 +100,7 @@
diff --git a/components/collections/teams/Collection.vue b/components/collections/teams/Collection.vue
index 78d589fb8..866b5e4a9 100644
--- a/components/collections/teams/Collection.vue
+++ b/components/collections/teams/Collection.vue
@@ -28,7 +28,7 @@
folder_open
- {{ $t("collection_empty") }}
+ {{ $t("empty.collection") }}
diff --git a/components/collections/teams/Folder.vue b/components/collections/teams/Folder.vue
index 4fe8bec54..211dd1b2d 100644
--- a/components/collections/teams/Folder.vue
+++ b/components/collections/teams/Folder.vue
@@ -31,7 +31,7 @@
v-if="collectionsType.selectedTeam.myRole !== 'VIEWER'"
v-tippy="{ theme: 'tooltip' }"
icon="create_new_folder"
- :title="$t('new_folder')"
+ :title="$t('folder.new')"
class="group-hover:inline-flex hidden"
@click.native="$emit('add-folder', { folder, path: folderPath })"
/>
@@ -54,7 +54,7 @@
folder_open
- {{ $t("folder_empty") }}
+ {{ $t("empty.folder") }}
diff --git a/components/collections/teams/Request.vue b/components/collections/teams/Request.vue
index 220c8934d..6f1f7ff2f 100644
--- a/components/collections/teams/Request.vue
+++ b/components/collections/teams/Request.vue
@@ -93,7 +93,7 @@
diff --git a/components/environments/Edit.vue b/components/environments/Edit.vue
index 03210b67d..4f8387d1c 100644
--- a/components/environments/Edit.vue
+++ b/components/environments/Edit.vue
@@ -33,7 +33,7 @@
@@ -60,7 +60,7 @@
px-4
focus:outline-none
"
- :placeholder="$t('variable_count', { count: index + 1 })"
+ :placeholder="$t('count.variable', { count: index + 1 })"
:name="'param' + index"
/>
@@ -100,10 +100,10 @@
>
layers
- {{ $t("environments_empty") }}
+ {{ $t("empty.environments") }}
diff --git a/components/environments/Environment.vue b/components/environments/Environment.vue
index 09cf4ea2a..08da53597 100644
--- a/components/environments/Environment.vue
+++ b/components/environments/Environment.vue
@@ -61,7 +61,7 @@
diff --git a/components/environments/ImportExport.vue b/components/environments/ImportExport.vue
index 06a9bfeb7..5c77c5cf8 100644
--- a/components/environments/ImportExport.vue
+++ b/components/environments/ImportExport.vue
@@ -22,7 +22,7 @@
@@ -142,7 +142,7 @@ export default {
}
)
.then((res) => {
- this.$toast.success(this.$t("gist_created"), {
+ this.$toast.success(this.$t("export.gist_created"), {
icon: "done",
})
window.open(res.html_url)
@@ -155,7 +155,7 @@ export default {
})
},
async readEnvironmentGist() {
- const gist = prompt(this.$t("enter_gist_url"))
+ const gist = prompt(this.$t("import.gist_url"))
if (!gist) return
await this.$axios
.$get(`https://api.github.com/gists/${gist.split("/").pop()}`, {
diff --git a/components/environments/index.vue b/components/environments/index.vue
index 9c55f63b9..428049bb7 100644
--- a/components/environments/index.vue
+++ b/components/environments/index.vue
@@ -39,7 +39,7 @@
@@ -64,10 +64,10 @@
>
library_add
- {{ $t("environments_empty") }}
+ {{ $t("empty.environments") }}
diff --git a/components/firebase/Login.vue b/components/firebase/Login.vue
index fec3c4685..32286a867 100644
--- a/components/firebase/Login.vue
+++ b/components/firebase/Login.vue
@@ -56,7 +56,7 @@
"
type="button"
tabindex="-1"
- :label="$t('send_magic_link')"
+ :label="$t('auth.send_magic_link')"
@click.native="signInWithEmail"
/>
@@ -66,10 +66,12 @@
mark_email_unread
- {{ $t("we_sent_magic_link") }}
+ {{ $t("auth.we_sent_magic_link") }}
- {{ $t("we_sent_magic_link_description", { email: form.email }) }}
+ {{
+ $t("auth.we_sent_magic_link_description", { email: form.email })
+ }}
@@ -97,7 +99,11 @@
label="← Re-enter email"
@click.native="mode = 'email'"
/>
-
+
@@ -151,7 +157,7 @@ export default {
const { additionalUserInfo } = await signInUserWithGoogle()
if (additionalUserInfo.isNewUser) {
- this.$toast.info(`${this.$t("turn_on")} ${this.$t("sync")}`, {
+ this.$toast.info(`${this.$t("action.turn_on")} ${this.$t("sync")}`, {
icon: "sync",
duration: null,
closeOnSwipe: false,
@@ -197,7 +203,7 @@ export default {
return
}
- this.$toast.info(`${this.$t("account_exists")}`, {
+ this.$toast.info(`${this.$t("auth.account_exists")}`, {
icon: "vpn_key",
duration: null,
closeOnSwipe: false,
@@ -227,7 +233,7 @@ export default {
setProviderInfo(credential.providerId, credential.accessToken)
if (additionalUserInfo.isNewUser) {
- this.$toast.info(`${this.$t("turn_on")} ${this.$t("sync")}`, {
+ this.$toast.info(`${this.$t("action.turn_on")} ${this.$t("sync")}`, {
icon: "sync",
duration: null,
closeOnSwipe: false,
@@ -273,7 +279,7 @@ export default {
return
}
- this.$toast.info(`${this.$t("account_exists")}`, {
+ this.$toast.info(`${this.$t("auth.account_exists")}`, {
icon: "vpn_key",
duration: null,
closeOnSwipe: false,
diff --git a/components/firebase/Logout.vue b/components/firebase/Logout.vue
index ef0c8b2d6..41515f8f1 100644
--- a/components/firebase/Logout.vue
+++ b/components/firebase/Logout.vue
@@ -10,7 +10,7 @@
/>
diff --git a/components/history/graphql/Card.vue b/components/history/graphql/Card.vue
index e713ae13b..b6313cd3a 100644
--- a/components/history/graphql/Card.vue
+++ b/components/history/graphql/Card.vue
@@ -32,14 +32,14 @@
/>
schedule
- {{ $t("history_empty") }}
+ {{ $t("empty.history") }}
diff --git a/components/history/rest/Card.vue b/components/history/rest/Card.vue
index f5cd9d2cc..87b241794 100644
--- a/components/history/rest/Card.vue
+++ b/components/history/rest/Card.vue
@@ -49,7 +49,7 @@
/>
-
+
diff --git a/components/http/Headers.vue b/components/http/Headers.vue
index 3dde2892b..ebe975d75 100644
--- a/components/http/Headers.vue
+++ b/components/http/Headers.vue
@@ -25,7 +25,7 @@
/>
@@ -38,7 +38,7 @@
:class="{ 'border-t': index == 0 }"
>
post_add
- {{ $t("headers_empty") }}
+ {{ $t("empty.headers") }}
diff --git a/components/http/ImportCurl.vue b/components/http/ImportCurl.vue
index d74e25b94..6b1ff238a 100644
--- a/components/http/ImportCurl.vue
+++ b/components/http/ImportCurl.vue
@@ -1,7 +1,7 @@
- {{ $t("import_curl") }}
+ {{ $t("import.curl") }}
@@ -20,7 +20,10 @@
-
+
diff --git a/components/http/Parameters.vue b/components/http/Parameters.vue
index 9a26a63de..815ae5748 100644
--- a/components/http/Parameters.vue
+++ b/components/http/Parameters.vue
@@ -25,7 +25,7 @@
/>
@@ -40,7 +40,7 @@
post_add
- {{ $t("parameters_empty") }}
+ {{ $t("empty.parameters") }}
diff --git a/components/http/RawBody.vue b/components/http/RawBody.vue
index 99c335fff..2fec71fea 100644
--- a/components/http/RawBody.vue
+++ b/components/http/RawBody.vue
@@ -28,7 +28,7 @@
- {{ $t("send_request") }}
- {{
- $t("reset_request")
- }}
- Show all Shortcuts
+
+ {{ $t("shortcut.send_request") }}
+
+
+ {{ $t("shortcut.reset_request") }}
+
+
+ {{ $t("shortcut.show_all") }}
+
@@ -27,7 +31,6 @@
I
- {{ getSpecialKey() }}
?
diff --git a/components/http/Tests.vue b/components/http/Tests.vue
index 411ebb94e..a038bffd2 100644
--- a/components/http/Tests.vue
+++ b/components/http/Tests.vue
@@ -1,6 +1,6 @@
-
+
bug_report
- {{ $t("add_test_scripts") }}
+ {{ $t("empty.tests") }}
diff --git a/components/http/TokenList.vue b/components/http/TokenList.vue
index da7204acb..1ded65386 100644
--- a/components/http/TokenList.vue
+++ b/components/http/TokenList.vue
@@ -56,7 +56,7 @@
- {{ $t("empty") }}
+ {{ $t("empty.protocols") }}
diff --git a/components/lenses/renderers/HTMLLensRenderer.vue b/components/lenses/renderers/HTMLLensRenderer.vue
index a1ea3bf9f..ce8a54d06 100644
--- a/components/lenses/renderers/HTMLLensRenderer.vue
+++ b/components/lenses/renderers/HTMLLensRenderer.vue
@@ -19,7 +19,7 @@
@@ -35,7 +35,7 @@
v-if="response.body"
ref="copyResponse"
v-tippy="{ theme: 'tooltip' }"
- :title="$t('copy')"
+ :title="$t('action.copy')"
:icon="copyIcon"
@click.native="copyResponse"
/>
diff --git a/components/lenses/renderers/JSONLensRenderer.vue b/components/lenses/renderers/JSONLensRenderer.vue
index b67be36d5..fd22c770f 100644
--- a/components/lenses/renderers/JSONLensRenderer.vue
+++ b/components/lenses/renderers/JSONLensRenderer.vue
@@ -28,7 +28,7 @@
v-if="response.body"
ref="copyResponse"
v-tippy="{ theme: 'tooltip' }"
- :title="$t('copy')"
+ :title="$t('action.copy')"
:icon="copyIcon"
@click.native="copyResponse"
/>
diff --git a/components/lenses/renderers/RawLensRenderer.vue b/components/lenses/renderers/RawLensRenderer.vue
index a3b284b95..ab3f5c604 100644
--- a/components/lenses/renderers/RawLensRenderer.vue
+++ b/components/lenses/renderers/RawLensRenderer.vue
@@ -28,7 +28,7 @@
v-if="response.body"
ref="copyResponse"
v-tippy="{ theme: 'tooltip' }"
- :title="$t('copy')"
+ :title="$t('action.copy')"
:icon="copyIcon"
@click.native="copyResponse"
/>
diff --git a/components/lenses/renderers/XMLLensRenderer.vue b/components/lenses/renderers/XMLLensRenderer.vue
index 66701493b..c616003f1 100644
--- a/components/lenses/renderers/XMLLensRenderer.vue
+++ b/components/lenses/renderers/XMLLensRenderer.vue
@@ -28,7 +28,7 @@
v-if="response.body"
ref="copyResponse"
v-tippy="{ theme: 'tooltip' }"
- :title="$t('copy')"
+ :title="$t('action.copy')"
:icon="copyIcon"
@click.native="copyResponse"
/>
diff --git a/components/realtime/Mqtt.vue b/components/realtime/Mqtt.vue
index ecd8a3499..c4c3d0559 100644
--- a/components/realtime/Mqtt.vue
+++ b/components/realtime/Mqtt.vue
@@ -55,7 +55,7 @@
@@ -63,7 +63,7 @@
id="pub_topic"
v-model="pub_topic"
class="input"
- :placeholder="$t('topic_name')"
+ :placeholder="$t('mqtt.topic_name')"
type="text"
spellcheck="false"
/>
@@ -87,7 +87,7 @@
name="get"
class="rounded-l-none"
:disabled="!canpublish"
- :label="$t('mqtt_publish')"
+ :label="$t('mqtt.publish')"
@click.native="publish"
/>
@@ -101,7 +101,7 @@
"
>
@@ -109,7 +109,7 @@
id="sub_topic"
v-model="sub_topic"
type="text"
- :placeholder="$t('topic_name')"
+ :placeholder="$t('mqtt.topic_name')"
spellcheck="false"
class="input !rounded-r-none"
/>
@@ -119,7 +119,7 @@
:disabled="!cansubscribe"
class="rounded-l-none"
:label="
- subscriptionState ? $t('mqtt_unsubscribe') : $t('mqtt_subscribe')
+ subscriptionState ? $t('mqtt.unsubscribe') : $t('mqtt.subscribe')
"
reverse
@click.native="toggleSubscription"
diff --git a/components/realtime/Socketio.vue b/components/realtime/Socketio.vue
index 2f6c8bbe3..f56cfda30 100644
--- a/components/realtime/Socketio.vue
+++ b/components/realtime/Socketio.vue
@@ -98,7 +98,7 @@
@@ -114,7 +114,7 @@
v-model="communication.inputs[index]"
class="input !rounded-r-none"
name="message"
- :placeholder="$t('message_count', { count: index + 1 })"
+ :placeholder="$t('count.message', { count: index + 1 })"
type="text"
:disabled="!connectionState"
@keyup.enter="connectionState ? sendMessage() : null"
diff --git a/components/realtime/Websocket.vue b/components/realtime/Websocket.vue
index 04ae26031..ff3068bc1 100644
--- a/components/realtime/Websocket.vue
+++ b/components/realtime/Websocket.vue
@@ -54,7 +54,7 @@
"
>
@@ -92,7 +92,7 @@
px-4
focus:outline-none
"
- :placeholder="$t('protocol_count', { count: index + 1 })"
+ :placeholder="$t('count.protocol', { count: index + 1 })"
name="message"
type="text"
/>
@@ -102,9 +102,9 @@
:title="
protocol.hasOwnProperty('active')
? protocol.active
- ? $t('turn_off')
- : $t('turn_on')
- : $t('turn_off')
+ ? $t('action.turn_off')
+ : $t('action.turn_on')
+ : $t('action.turn_off')
"
:icon="
protocol.hasOwnProperty('active')
@@ -143,7 +143,7 @@
>
topic
- {{ $t("protocols_empty") }}
+ {{ $t("empty.protocols") }}
diff --git a/components/smart/ChangeLanguage.vue b/components/smart/ChangeLanguage.vue
index 5e45dcb3f..cc4ca39f0 100644
--- a/components/smart/ChangeLanguage.vue
+++ b/components/smart/ChangeLanguage.vue
@@ -1,5 +1,5 @@
-
+
-
- {{ `${$i18n.locales.find(({ code }) => code == $i18n.locale).name}` }}
-
+ outline
+ :label="`${
+ $i18n.locales.find(({ code }) => code == $i18n.locale).name
+ }`"
+ />
-
+
-
-
diff --git a/components/smart/EnvInput.vue b/components/smart/EnvInput.vue
index af02a7eb3..81b10bbd4 100644
--- a/components/smart/EnvInput.vue
+++ b/components/smart/EnvInput.vue
@@ -71,7 +71,8 @@ export default defineComponent({
highlight: [
{
text: /(<<\w+>>)/g,
- style: "text-white cursor-help rounded px-1 mx-0.5",
+ style:
+ "text-white cursor-help rounded px-1 focus:outline-none mx-0.5",
},
],
highlightEnabled: true,
diff --git a/components/teams/Add.vue b/components/teams/Add.vue
index e2a67c443..24ee269eb 100644
--- a/components/teams/Add.vue
+++ b/components/teams/Add.vue
@@ -1,7 +1,7 @@
- {{ $t("new_team") }}
+ {{ $t("team.new") }}
@@ -14,7 +14,7 @@
v-model="name"
class="input"
type="text"
- :placeholder="$t('my_new_team')"
+ :placeholder="$t('team.new_name')"
@keyup.enter="addNewTeam"
/>
@@ -47,7 +47,7 @@ export default {
// We clear it early to give the UI a snappy feel
this.name = ""
if (name != null && name.replace(/\s/g, "").length < 6) {
- this.$toast.error(this.$t("string_length_insufficient"), {
+ this.$toast.error(this.$t("team.name_length_insufficient"), {
icon: "error",
})
return
diff --git a/components/teams/Edit.vue b/components/teams/Edit.vue
index 360fc24dd..b2ad31a94 100644
--- a/components/teams/Edit.vue
+++ b/components/teams/Edit.vue
@@ -1,7 +1,7 @@
- {{ $t("edit_team") }}
+ {{ $t("team.edit") }}
@@ -21,12 +21,12 @@
/>
@@ -51,7 +51,7 @@
px-4
focus:outline-none
"
- :placeholder="$t('email')"
+ :placeholder="$t('team.email')"
:name="'param' + index"
:value="member.user.email"
readonly
@@ -76,7 +76,7 @@
px-4
focus:outline-none
"
- :placeholder="$t('permissions')"
+ :placeholder="$t('team.permissions')"
:name="'value' + index"
:value="
typeof member.role === 'string'
@@ -140,7 +140,7 @@
px-4
focus:outline-none
"
- :placeholder="$t('email')"
+ :placeholder="$t('team.email')"
:name="'member' + index"
autofocus
/>
@@ -164,7 +164,7 @@
px-4
focus:outline-none
"
- :placeholder="$t('permissions')"
+ :placeholder="$t('team.permissions')"
:name="'value' + index"
:value="
typeof member.value === 'string'
@@ -275,7 +275,7 @@ export default {
.removeTeamMember(this.$apollo, userID, this.editingteamID)
.then(() => {
// Result
- this.$toast.success(this.$t("user_removed"), {
+ this.$toast.success(this.$t("team.member_removed"), {
icon: "done",
})
this.hideModal()
@@ -306,7 +306,7 @@ export default {
this.$data.rename !== null &&
this.$data.rename.replace(/\s/g, "").length < 6
) {
- this.$toast.error(this.$t("string_length_insufficient"), {
+ this.$toast.error(this.$t("team.name_length_insufficient"), {
icon: "error",
})
return
@@ -314,7 +314,7 @@ export default {
let invalidEmail = false
this.$data.newMembers.forEach((element) => {
if (!this.validateEmail(element.key)) {
- this.$toast.error(this.$t("invalid_emailID_format"), {
+ this.$toast.error(this.$t("team.invalid_email_format"), {
icon: "error",
})
invalidEmail = true
@@ -342,7 +342,7 @@ export default {
)
.then(() => {
// Result
- this.$toast.success(this.$t("team_saved"), {
+ this.$toast.success(this.$t("team.saved"), {
icon: "done",
})
})
@@ -364,7 +364,7 @@ export default {
)
.then(() => {
// Result
- this.$toast.success(this.$t("role_updated"), {
+ this.$toast.success(this.$t("team.member_role_updated"), {
icon: "done",
})
})
@@ -380,7 +380,7 @@ export default {
const newName =
this.name === this.$data.rename ? this.name : this.$data.rename
if (!/\S/.test(newName))
- return this.$toast.error(this.$t("team_name_empty"), {
+ return this.$toast.error(this.$t("empty.team_name"), {
icon: "error",
})
// Call to the graphql mutation
@@ -389,7 +389,7 @@ export default {
.renameTeam(this.$apollo, newName, this.editingteamID)
.then(() => {
// Result
- this.$toast.success(this.$t("team_saved"), {
+ this.$toast.success(this.$t("team.saved"), {
icon: "done",
})
})
diff --git a/components/teams/Team.vue b/components/teams/Team.vue
index 38fc79f59..2dcb2f798 100644
--- a/components/teams/Team.vue
+++ b/components/teams/Team.vue
@@ -47,12 +47,12 @@
v-tippy="{ theme: 'tooltip' }"
:title="
team.myRole === 'OWNER' && team.ownersCount == 1
- ? $t('disable_exit')
+ ? $t('team.exit_disabled')
: ''
"
:disabled="team.myRole === 'OWNER' && team.ownersCount == 1"
icon="remove"
- :label="$t('exit')"
+ :label="$t('team.exit')"
@click.native="
exitTeam
$refs.options.tippy().hide()
@@ -78,7 +78,7 @@ export default {
.deleteTeam(this.$apollo, this.teamID)
.then(() => {
// Result
- this.$toast.success(this.$t("new_team_created"), {
+ this.$toast.success(this.$t("team.new_created"), {
icon: "done",
})
})
@@ -96,7 +96,7 @@ export default {
.exitTeam(this.$apollo, this.teamID)
.then(() => {
// Result
- this.$toast.success(this.$t("team_exited"), {
+ this.$toast.success(this.$t("team.left"), {
icon: "done",
})
})
diff --git a/components/teams/index.vue b/components/teams/index.vue
index 5a3a91dff..de2102322 100644
--- a/components/teams/index.vue
+++ b/components/teams/index.vue
@@ -1,7 +1,9 @@
-
+
@@ -36,7 +38,7 @@
{{ $t("loading") }}
- help_outline {{ $t("create_new_team") }}
+ help_outline {{ $t("team.create_new") }}
@@ -231,7 +227,7 @@ export default defineComponent({
}
)
.then((res) => {
- this.$toast.success(this.$t("gist_created"), {
+ this.$toast.success(this.$t("export.gist_created"), {
icon: "done",
})
window.open(res.html_url)
diff --git a/pages/graphql.vue b/pages/graphql.vue
index 49b1183a0..fae46b50d 100644
--- a/pages/graphql.vue
+++ b/pages/graphql.vue
@@ -66,7 +66,7 @@
/>
@@ -125,7 +125,7 @@
@@ -182,7 +182,7 @@
/>
@@ -199,7 +199,7 @@
:class="{ 'border-t': index == 0 }"
>
post_add
- {{ $t("headers_empty") }}
+ {{ $t("empty.headers") }}
@@ -333,7 +333,7 @@
@@ -494,7 +494,7 @@
>
link
- {{ $t("connect_graphql_endpoint") }}
+ {{ $t("empty.schema") }}
@@ -542,7 +542,7 @@
@@ -574,7 +574,7 @@
>
link
- {{ $t("connect_graphql_endpoint") }}
+ {{ $t("empty.schema") }}
diff --git a/pages/index.vue b/pages/index.vue
index d551b03ce..663db3012 100644
--- a/pages/index.vue
+++ b/pages/index.vue
@@ -143,8 +143,6 @@
/>
diff --git a/pages/realtime.vue b/pages/realtime.vue
index 725b5bb8f..5307b4c08 100644
--- a/pages/realtime.vue
+++ b/pages/realtime.vue
@@ -1,6 +1,6 @@
-
+
@@ -9,7 +9,7 @@
-
+
diff --git a/pages/settings.vue b/pages/settings.vue
index 0876b41f2..f0a338e0f 100644
--- a/pages/settings.vue
+++ b/pages/settings.vue
@@ -135,6 +135,14 @@
+
- {{ $t("telemetry") }}
+ {{ $t("settings.telemetry") }}
{{ TELEMETRY_ENABLED ? $t("enabled") : $t("disabled") }}
@@ -177,7 +185,7 @@
:on="SHORTCUT_INDICATOR"
@change="toggleSetting('SHORTCUT_INDICATOR')"
>
- {{ $t("shortcuts_indicator") }}
+ {{ $t("settings.shortcuts_indicator") }}
{{ SHORTCUT_INDICATOR ? $t("enabled") : $t("disabled") }}
@@ -186,13 +194,13 @@
:on="LEFT_SIDEBAR"
@change="toggleSetting('LEFT_SIDEBAR')"
>
- {{ $t("navigation_sidebar") }}
+ {{ $t("settings.navigation_sidebar") }}
{{ LEFT_SIDEBAR ? $t("enabled") : $t("disabled") }}
- {{ $t("zen_mode") }}
+ {{ $t("layout.zen_mode") }}
{{ ZEN_MODE ? $t("enabled") : $t("disabled") }}
@@ -204,7 +212,7 @@
- {{ $t("interceptor") }}
+ {{ $t("settings.interceptor") }}
Middleware between application and APIs.
@@ -288,6 +296,7 @@
ml-2
py-2
px-4
+ truncate
"
>
{{ `${$t("proxy")} ${$t("url")}` }}
@@ -328,9 +337,7 @@