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 @@