From 01ec4e1d0f26ef9fcfc0f4deab6389da6d2deb34 Mon Sep 17 00:00:00 2001 From: Santiago Gonzalez Toral Date: Mon, 25 Sep 2023 07:45:10 -0500 Subject: [PATCH] feat(passport-gated): update strategy (#4199) --- src/components/MessageWarningValidation.vue | 29 +++------------------ src/locales/ar-SA.json | 5 +--- src/locales/de-DE.json | 5 +--- src/locales/default.json | 10 ++----- src/locales/es-ES.json | 5 +--- src/locales/fil-PH.json | 5 +--- src/locales/fr-FR.json | 5 +--- src/locales/id-ID.json | 5 +--- src/locales/it-IT.json | 5 +--- src/locales/ja-JP.json | 3 --- src/locales/ko-KR.json | 5 +--- src/locales/pt-PT.json | 5 +--- src/locales/ro-RO.json | 5 +--- src/locales/ru-RU.json | 5 +--- src/locales/tr-TR.json | 5 +--- src/locales/zh-CN.json | 3 --- 16 files changed, 17 insertions(+), 88 deletions(-) diff --git a/src/components/MessageWarningValidation.vue b/src/components/MessageWarningValidation.vue index e432562c2239..73ba4c9ef403 100644 --- a/src/components/MessageWarningValidation.vue +++ b/src/components/MessageWarningValidation.vue @@ -35,15 +35,15 @@ const tPath = computed(() => { - - diff --git a/src/locales/ar-SA.json b/src/locales/ar-SA.json index 9d31c84b81d0..dc0d60565177 100644 --- a/src/locales/ar-SA.json +++ b/src/locales/ar-SA.json @@ -595,10 +595,7 @@ "passport-gated": { "label": "Gitcoin Passport gated", "description": "Protect your proposals from spam and vote manipulation by requiring users to have a Gitcoin Passport.", - "invalidMessage": "You need a Gitcoin Passport with {amount} of the following stamps to vote on this proposal: {stamps}. " - }, - "passport-weighted": { - "label": "Gitcoin Passport weighted" + "invalidMessage": "You need a Gitcoin Passport with score above {scoreThreshold} and {operator} of the following stamps to vote on this proposal: {stamps}. " } }, "safeSnap": { diff --git a/src/locales/de-DE.json b/src/locales/de-DE.json index 51d9854b9aea..51f2a98f2209 100644 --- a/src/locales/de-DE.json +++ b/src/locales/de-DE.json @@ -595,10 +595,7 @@ "passport-gated": { "label": "Gitcoin Passport gated", "description": "Protect your proposals from spam and vote manipulation by requiring users to have a Gitcoin Passport.", - "invalidMessage": "You need a Gitcoin Passport with {amount} of the following stamps to vote on this proposal: {stamps}. " - }, - "passport-weighted": { - "label": "Gitcoin Passport weighted" + "invalidMessage": "You need a Gitcoin Passport with score above {scoreThreshold} and {operator} of the following stamps to vote on this proposal: {stamps}. " } }, "safeSnap": { diff --git a/src/locales/default.json b/src/locales/default.json index a068aa36c10c..c26a26ebb3e4 100644 --- a/src/locales/default.json +++ b/src/locales/default.json @@ -739,10 +739,7 @@ "passport-gated": { "label": "Gitcoin Passport gated", "description": "Protect your space from spam by requiring users to have a Gitcoin Passport to create a proposal.", - "invalidMessage": "You need a Gitcoin Passport with {operator} of the following stamps to create a proposal: {stamps}" - }, - "passport-weighted": { - "label": "Gitcoin Passport weighted" + "invalidMessage": "You need a Gitcoin Passport with score above {scoreThreshold} and {operator} of the following stamps to vote on this proposal: {stamps}. " }, "arbitrum": { "label": "Arbitrum DAO votable supply", @@ -771,10 +768,7 @@ "passport-gated": { "label": "Gitcoin Passport gated", "description": "Protect your proposals from spam and vote manipulation by requiring users to have a Gitcoin Passport.", - "invalidMessage": "You need a Gitcoin Passport with {operator} of the following stamps to vote on this proposal: {stamps}. " - }, - "passport-weighted": { - "label": "Gitcoin Passport weighted" + "invalidMessage": "You need a Gitcoin Passport with score above {scoreThreshold} and {operator} of the following stamps to vote on this proposal: {stamps}. " } }, "safeSnap": { diff --git a/src/locales/es-ES.json b/src/locales/es-ES.json index 5bbcd2925f6f..1fe31279dd3b 100644 --- a/src/locales/es-ES.json +++ b/src/locales/es-ES.json @@ -595,10 +595,7 @@ "passport-gated": { "label": "Gitcoin Passport gated", "description": "Protect your proposals from spam and vote manipulation by requiring users to have a Gitcoin Passport.", - "invalidMessage": "You need a Gitcoin Passport with {amount} of the following stamps to vote on this proposal: {stamps}. " - }, - "passport-weighted": { - "label": "Gitcoin Passport weighted" + "invalidMessage": "You need a Gitcoin Passport with score above {scoreThreshold} and {operator} of the following stamps to vote on this proposal: {stamps}. " } }, "safeSnap": { diff --git a/src/locales/fil-PH.json b/src/locales/fil-PH.json index a19655d2c48e..14fc6da360d3 100644 --- a/src/locales/fil-PH.json +++ b/src/locales/fil-PH.json @@ -595,10 +595,7 @@ "passport-gated": { "label": "Gitcoin Passport gated", "description": "Protect your proposals from spam and vote manipulation by requiring users to have a Gitcoin Passport.", - "invalidMessage": "You need a Gitcoin Passport with {amount} of the following stamps to vote on this proposal: {stamps}. " - }, - "passport-weighted": { - "label": "Gitcoin Passport weighted" + "invalidMessage": "You need a Gitcoin Passport with score above {scoreThreshold} and {operator} of the following stamps to vote on this proposal: {stamps}. " } }, "safeSnap": { diff --git a/src/locales/fr-FR.json b/src/locales/fr-FR.json index 8a8ac1efbe86..e5ebb4c4aa6f 100644 --- a/src/locales/fr-FR.json +++ b/src/locales/fr-FR.json @@ -597,10 +597,7 @@ "passport-gated": { "label": "Accès réservé au Gitcoin Passport", "description": "Protégez vos propositions contre le spam et la manipulation des votes en exigeant que les utilisateurs aient un Gitcoin Passport.", - "invalidMessage": "You need a Gitcoin Passport with {amount} of the following stamps to vote on this proposal: {stamps}. " - }, - "passport-weighted": { - "label": "Pondéré par Gitcoin Passport" + "invalidMessage": "You need a Gitcoin Passport with score above {scoreThreshold} and {operator} of the following stamps to vote on this proposal: {stamps}. " } }, "safeSnap": { diff --git a/src/locales/id-ID.json b/src/locales/id-ID.json index 5b012d15f8bc..5814b87185c3 100644 --- a/src/locales/id-ID.json +++ b/src/locales/id-ID.json @@ -595,10 +595,7 @@ "passport-gated": { "label": "Gitcoin Passport gated", "description": "Protect your proposals from spam and vote manipulation by requiring users to have a Gitcoin Passport.", - "invalidMessage": "You need a Gitcoin Passport with {amount} of the following stamps to vote on this proposal: {stamps}. " - }, - "passport-weighted": { - "label": "Gitcoin Passport weighted" + "invalidMessage": "You need a Gitcoin Passport with score above {scoreThreshold} and {operator} of the following stamps to vote on this proposal: {stamps}. " } }, "safeSnap": { diff --git a/src/locales/it-IT.json b/src/locales/it-IT.json index 2d7bf50e1b5b..12ae1bae920b 100644 --- a/src/locales/it-IT.json +++ b/src/locales/it-IT.json @@ -595,10 +595,7 @@ "passport-gated": { "label": "Gitcoin Passport gated", "description": "Protect your proposals from spam and vote manipulation by requiring users to have a Gitcoin Passport.", - "invalidMessage": "You need a Gitcoin Passport with {amount} of the following stamps to vote on this proposal: {stamps}. " - }, - "passport-weighted": { - "label": "Gitcoin Passport weighted" + "invalidMessage": "You need a Gitcoin Passport with score above {scoreThreshold} and {operator} of the following stamps to vote on this proposal: {stamps}. " } }, "safeSnap": { diff --git a/src/locales/ja-JP.json b/src/locales/ja-JP.json index eadcd26c979e..c626f78c3f21 100644 --- a/src/locales/ja-JP.json +++ b/src/locales/ja-JP.json @@ -596,9 +596,6 @@ "label": "Gitcoin Passport ゲート付き", "description": "Gitcoin Passportを必要とすることで、スパムや投票操作からあなたの提案を保護します。", "invalidMessage": "この提案に投票するためには、{amount} 以下の切手を持つGitcoin Passportが必要です:{stamps}。" - }, - "passport-weighted": { - "label": "Gitcoin Passport 重み付き" } }, "safeSnap": { diff --git a/src/locales/ko-KR.json b/src/locales/ko-KR.json index cebbc8a7d4e0..6562ba465e48 100644 --- a/src/locales/ko-KR.json +++ b/src/locales/ko-KR.json @@ -595,10 +595,7 @@ "passport-gated": { "label": "Gitcoin Passport gated", "description": "Protect your proposals from spam and vote manipulation by requiring users to have a Gitcoin Passport.", - "invalidMessage": "You need a Gitcoin Passport with {amount} of the following stamps to vote on this proposal: {stamps}. " - }, - "passport-weighted": { - "label": "Gitcoin Passport weighted" + "invalidMessage": "You need a Gitcoin Passport with score above {scoreThreshold} and {operator} of the following stamps to vote on this proposal: {stamps}. " } }, "safeSnap": { diff --git a/src/locales/pt-PT.json b/src/locales/pt-PT.json index f8b5251b7e09..e88d527bf149 100644 --- a/src/locales/pt-PT.json +++ b/src/locales/pt-PT.json @@ -596,10 +596,7 @@ "passport-gated": { "label": "Gitcoin Passport gated", "description": "Protect your proposals from spam and vote manipulation by requiring users to have a Gitcoin Passport.", - "invalidMessage": "You need a Gitcoin Passport with {amount} of the following stamps to vote on this proposal: {stamps}. " - }, - "passport-weighted": { - "label": "Gitcoin Passport weighted" + "invalidMessage": "You need a Gitcoin Passport with score above {scoreThreshold} and {operator} of the following stamps to vote on this proposal: {stamps}. " } }, "safeSnap": { diff --git a/src/locales/ro-RO.json b/src/locales/ro-RO.json index 395fac931227..ec619af55384 100644 --- a/src/locales/ro-RO.json +++ b/src/locales/ro-RO.json @@ -596,10 +596,7 @@ "passport-gated": { "label": "Gitcoin Passport gated", "description": "Protect your proposals from spam and vote manipulation by requiring users to have a Gitcoin Passport.", - "invalidMessage": "You need a Gitcoin Passport with {amount} of the following stamps to vote on this proposal: {stamps}. " - }, - "passport-weighted": { - "label": "Gitcoin Passport weighted" + "invalidMessage": "You need a Gitcoin Passport with score above {scoreThreshold} and {operator} of the following stamps to vote on this proposal: {stamps}. " } }, "safeSnap": { diff --git a/src/locales/ru-RU.json b/src/locales/ru-RU.json index 12fbb8cef8c2..0a0a9177ed44 100644 --- a/src/locales/ru-RU.json +++ b/src/locales/ru-RU.json @@ -596,10 +596,7 @@ "passport-gated": { "label": "Gitcoin Passport gated", "description": "Protect your proposals from spam and vote manipulation by requiring users to have a Gitcoin Passport.", - "invalidMessage": "You need a Gitcoin Passport with {amount} of the following stamps to vote on this proposal: {stamps}. " - }, - "passport-weighted": { - "label": "Gitcoin Passport weighted" + "invalidMessage": "You need a Gitcoin Passport with score above {scoreThreshold} and {operator} of the following stamps to vote on this proposal: {stamps}. " } }, "safeSnap": { diff --git a/src/locales/tr-TR.json b/src/locales/tr-TR.json index e85171bbdc03..3ed0ba1eff38 100644 --- a/src/locales/tr-TR.json +++ b/src/locales/tr-TR.json @@ -596,10 +596,7 @@ "passport-gated": { "label": "Gitcoin Passport gated", "description": "Protect your proposals from spam and vote manipulation by requiring users to have a Gitcoin Passport.", - "invalidMessage": "You need a Gitcoin Passport with {amount} of the following stamps to vote on this proposal: {stamps}. " - }, - "passport-weighted": { - "label": "Gitcoin Passport weighted" + "invalidMessage": "You need a Gitcoin Passport with score above {scoreThreshold} and {operator} of the following stamps to vote on this proposal: {stamps}. " } }, "safeSnap": { diff --git a/src/locales/zh-CN.json b/src/locales/zh-CN.json index e8944370a22c..3c36eef6b41f 100644 --- a/src/locales/zh-CN.json +++ b/src/locales/zh-CN.json @@ -597,9 +597,6 @@ "label": "Gitcoin Passport门槛", "description": "通过要求用户拥有 Gitcoin Passport 来保护您的提案免受垃圾邮件和投票操纵。", "invalidMessage": "你需要一本带有 amount个如下邮票的Gitcoin Passport才能对这个提案投票: stamps " - }, - "passport-weighted": { - "label": "Gitcoin Passport加权" } }, "safeSnap": {