@mundogamernetwork/shared-ui 1.19.9 → 1.19.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/locales/de.json CHANGED
@@ -386,6 +386,7 @@
386
386
  "error_user_blocked": "Ihr Zugang zu Key-Anfragen wurde vorübergehend gesperrt, da Material-Einreichungen überfällig sind. Bitte reichen Sie Ihre ausstehenden Materialien ein.",
387
387
  "error_not_eligible": "Diese Kampagne ist für Ihren aktuellen Plan nicht verfügbar.",
388
388
  "error_pending_limit": "Sie haben das gleichzeitige Anfragenlimit Ihres Plans erreicht. Bitte erfüllen Sie Ihre ausstehenden Verpflichtungen, bevor Sie einen neuen Key anfordern.",
389
+ "error_daily_limit": "Sie haben das tägliche Anfragenlimit Ihres Plans erreicht. Bitte versuchen Sie es morgen erneut.",
389
390
  "error_not_open_yet": "Diese Kampagne ist noch nicht geöffnet.",
390
391
  "error_closed": "Diese Kampagne ist beendet.",
391
392
  "error_country": "Diese Kampagne ist in deinem Land nicht verfügbar.",
package/locales/en.json CHANGED
@@ -386,6 +386,7 @@
386
386
  "error_user_blocked": "Your key request access has been temporarily blocked due to overdue material submissions. Please submit your pending materials to restore access.",
387
387
  "error_not_eligible": "This campaign is not available for your current plan.",
388
388
  "error_pending_limit": "You have reached the simultaneous request limit for your plan. Please fulfill your pending obligations before requesting a new key.",
389
+ "error_daily_limit": "You have reached the daily limit of key requests for your plan. Please try again tomorrow.",
389
390
  "error_not_open_yet": "This campaign has not opened yet.",
390
391
  "error_closed": "This campaign is closed.",
391
392
  "error_country": "This campaign is not available in your country.",
package/locales/es.json CHANGED
@@ -386,6 +386,7 @@
386
386
  "error_user_blocked": "Tu acceso a solicitudes de claves ha sido bloqueado temporalmente por envíos de material pendientes. Envía tus materiales para restaurar el acceso.",
387
387
  "error_not_eligible": "Esta campaña no está disponible para tu plan actual.",
388
388
  "error_pending_limit": "Has alcanzado el límite de solicitudes simultáneas de tu plan. Cumple con tus obligaciones pendientes antes de solicitar una nueva clave.",
389
+ "error_daily_limit": "Has alcanzado el límite diario de solicitudes de clave de tu plan. Inténtalo de nuevo mañana.",
389
390
  "error_not_open_yet": "Esta campaña aún no se ha abierto.",
390
391
  "error_closed": "Esta campaña está cerrada.",
391
392
  "error_country": "Esta campaña no está disponible en tu país.",
@@ -386,6 +386,7 @@
386
386
  "error_user_blocked": "Seu acesso a pedidos de chave está temporariamente bloqueado por materiais não entregues. Envie seus materiais pendentes para restaurar o acesso.",
387
387
  "error_not_eligible": "Esta campanha não está disponível para o seu plano atual.",
388
388
  "error_pending_limit": "Você atingiu o limite de pedidos simultâneos do seu plano. Entregue o material pendente antes de solicitar uma nova chave.",
389
+ "error_daily_limit": "Você atingiu o limite diário de pedidos de chave do seu plano. Tente novamente amanhã.",
389
390
  "error_not_open_yet": "Esta campanha ainda não foi aberta.",
390
391
  "error_closed": "Esta campanha está encerrada.",
391
392
  "error_country": "Esta campanha não está disponível no seu país.",
package/locales/ro.json CHANGED
@@ -386,6 +386,7 @@
386
386
  "error_user_blocked": "Accesul dvs. la solicitările de chei a fost blocat temporar din cauza transmisiilor de materiale restante. Trimiteți materialele dvs. pentru a restabili accesul.",
387
387
  "error_not_eligible": "Această campanie nu este disponibilă pentru planul dvs. actual.",
388
388
  "error_pending_limit": "Ați atins limita de cereri simultane a planului dvs. Îndepliniți-vă obligațiile restante înainte de a solicita o nouă cheie.",
389
+ "error_daily_limit": "Ați atins limita zilnică de cereri de chei a planului dvs. Încercați din nou mâine.",
389
390
  "error_not_open_yet": "Această campanie nu s-a deschis încă.",
390
391
  "error_closed": "Această campanie este închisă.",
391
392
  "error_country": "Această campanie nu este disponibilă în țara ta.",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mundogamernetwork/shared-ui",
3
- "version": "1.19.9",
3
+ "version": "1.19.10",
4
4
  "description": "Mundo Gamer Network - Shared UI Layer (Nuxt 3)",
5
5
  "type": "module",
6
6
  "main": "./nuxt.config.ts",
@@ -29,6 +29,11 @@ export function keyRequestErrorMessage(err: any): KeyRequestErrorMessage | null
29
29
  return { key: "keys.campaigns.error_pending_limit" }
30
30
  }
31
31
 
32
+ // The plan's cap of requests per day: say so, and when to come back, instead of the server's untranslated sentence.
33
+ if (status === 422 && errorCode === "daily_limit_reached") {
34
+ return { key: "keys.campaigns.error_daily_limit" }
35
+ }
36
+
32
37
  if (status !== 403) return null
33
38
 
34
39
  if (errorCode === "user_key_blocked") return { key: "keys.campaigns.error_user_blocked" }