Skip to content

Commit

Permalink
fix translations test
Browse files Browse the repository at this point in the history
  • Loading branch information
jonator committed Oct 30, 2024
1 parent e955996 commit 394b2e9
Show file tree
Hide file tree
Showing 20 changed files with 33 additions and 354 deletions.
9 changes: 2 additions & 7 deletions packages/web/localizations/__tests__/localizations.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,11 @@ import * as fs from "fs";
// eslint-disable-next-line import/no-extraneous-dependencies
import { glob } from "glob";

import { omittedKeyPaths } from "../scripts/omitted-keys.mjs";

// use to silence warnings
const warn = (..._args: Parameters<typeof console.warn>) => null; // console.warn(...args);

/** Add key paths here to skip them in localizations tests. */
const omittedKeyPaths = [
"assets.categories",
"limitOrders.historyTable.columns",
"transfer.nomic.estimatedTime",
];

describe("Localization JSON files", () => {
const localizationObjs = getJSONsAsObjs();

Expand Down
21 changes: 1 addition & 20 deletions packages/web/localizations/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -329,14 +329,6 @@
},
"estimated": "Geschätzt",
"frontierMigration": {
"introducingUnverifiedAssets": "Einführung nicht verifizierter Vermögenswerte",
"simplifiedExperience": "Ihre Erfahrung wurde vereinfacht!",
"frontierHasNowMerged": "Die Frontier-Seite wurde jetzt mit zusammengeführt",
"thisMeansManaging": "Das bedeutet, dass die Token-Verwaltung bequem an einem Ort erfolgen kann!",
"commitmentToDecentralization": "Im Einklang mit dem Engagement für Dezentralisierung und Zugänglichkeit besteht weiterhin die Möglichkeit, mit nicht verifizierten Token umzugehen.",
"settingIsNowEnabled": "Die Einstellung ist jetzt aktiviert.",
"youMayDisable": "Sie können diese Einstellung jederzeit im Einstellungsmodal deaktivieren.",
"openSettings": "Einstellungen öffnen",
"proceed": "Fortfahren"
},
"lockToken": {
Expand Down Expand Up @@ -704,19 +696,10 @@
"hide": "Verstecken",
"show": "Zeigen"
},
"maxButtonErrorNoBalance": "Nicht genügend Guthaben, um den Höchstbetrag zu berechnen.",
"available": "Verfügbar",
"button": "Tauschen",
"buttonError": "Trotzdem tauschen",
"expectedOutput": "Erwartete Ausgabe",
"fee": "Swap-Gebühr ( {fee} )",
"networkFee": "Netzwerkgebühr",
"totalFee": "Gesamtgebühr",
"HALF": "HALB",
"MAX": "MAX",
"minimumSlippage": "Nach Slippage erhaltenes Minimum ( {slippage} )",
"pool": "Pool # {id}",
"priceImpact": "Auswirkungen auf den Markt",
"routerTooltipFee": "Gebühr",
"routerTooltipSpreadFactor": "Spread-Faktor",
"showDetails": "Zeige Details",
Expand All @@ -727,9 +710,7 @@
"increaseSpendLimit": "Ausgabenlimit erhöhen"
},
"settings": {
"slippage": "Rutschtoleranz",
"slippageInfo": "Ihre Transaktion wird rückgängig gemacht, wenn sich der Preis um mehr als diesen Prozentsatz ungünstig ändert.",
"title": "Transaktionseinstellungen"
"slippage": "Rutschtoleranz"
},
"title": "Tauschen",
"dynamicSpreadFactor": "Dynamisch",
Expand Down
21 changes: 1 addition & 20 deletions packages/web/localizations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -329,14 +329,6 @@
},
"estimated": "Estimated",
"frontierMigration": {
"introducingUnverifiedAssets": "Introducing Unverified Assets",
"simplifiedExperience": "Your experience has been simplified!",
"frontierHasNowMerged": "Frontier page has now merged with",
"thisMeansManaging": "This means managing tokens can be conveniently done in one place!",
"commitmentToDecentralization": "In line with the commitment to decentralization and accessibility, the option to handle unverified tokens is still available.",
"settingIsNowEnabled": "The setting is now enabled.",
"youMayDisable": "You may disable this setting at any time in the settings modal.",
"openSettings": "Open Settings",
"proceed": "Proceed"
},
"lockToken": {
Expand Down Expand Up @@ -704,19 +696,10 @@
"hide": "Hide",
"show": "Show"
},
"maxButtonErrorNoBalance": "Not enough balance to calculate the maximum amount.",
"available": "Available",
"button": "Swap",
"buttonError": "Swap anyway",
"expectedOutput": "Expected Output",
"fee": "Swap Fee ({fee})",
"networkFee": "Network Fee",
"totalFee": "Total Fee",
"HALF": "HALF",
"MAX": "MAX",
"minimumSlippage": "Minimum received after slippage ({slippage})",
"pool": "Pool #{id}",
"priceImpact": "Market Impact",
"routerTooltipFee": "Fee",
"routerTooltipSpreadFactor": "Spread Factor",
"showDetails": "Show details",
Expand All @@ -727,9 +710,7 @@
"increaseSpendLimit": "Increase spend limit"
},
"settings": {
"slippage": "Slippage tolerance",
"slippageInfo": "Your transaction will revert if the price changes unfavorably by more than this percentage.",
"title": "Transaction settings"
"slippage": "Slippage tolerance"
},
"title": "Swap",
"dynamicSpreadFactor": "Dynamic",
Expand Down
21 changes: 1 addition & 20 deletions packages/web/localizations/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -329,14 +329,6 @@
},
"estimated": "Estimado",
"frontierMigration": {
"introducingUnverifiedAssets": "Introduciendo Activos No Verificados",
"simplifiedExperience": "¡Tu experiencia ha sido simplificada!",
"frontierHasNowMerged": "La página de Frontier ahora se ha fusionado con",
"thisMeansManaging": "¡Esto significa que la gestión de tokens se puede hacer cómodamente en un solo lugar!",
"commitmentToDecentralization": "En línea con el compromiso con la descentralización y la accesibilidad, la opción de manejar tokens no verificados aún está disponible.",
"settingIsNowEnabled": "La configuración ahora está habilitada.",
"youMayDisable": "Puedes desactivar esta configuración en cualquier momento en el modal de configuraciones.",
"openSettings": "Abrir configuraciones",
"proceed": "Proceder"
},
"lockToken": {
Expand Down Expand Up @@ -704,19 +696,10 @@
"hide": "Ocultar",
"show": "Mostrar"
},
"maxButtonErrorNoBalance": "Saldo insuficiente para calcular el importe máximo.",
"available": "Disponible",
"button": "Intercambio",
"buttonError": "Intercambio de todos modos",
"expectedOutput": "Rendimiento esperado",
"fee": "Tarifa de intercambio ({fee})",
"networkFee": "Tarifa de red",
"totalFee": "Costo total",
"HALF": "Mitad",
"MAX": "Máximo",
"minimumSlippage": "Mínimo recibido después del deslizamiento ({slippage})",
"pool": "Piscina #{id}",
"priceImpact": "Impacto en el mercado",
"routerTooltipFee": "Tarifa",
"routerTooltipSpreadFactor": "Factor de dispersión",
"showDetails": "Mostrar detalles",
Expand All @@ -727,9 +710,7 @@
"increaseSpendLimit": "Aumentar el límite de gasto"
},
"settings": {
"slippage": "Tolerancia de deslizamiento",
"slippageInfo": "Su transacción se revertirá si el precio cambia desfavorablemente en más de este porcentaje.",
"title": "Configuración de transacción"
"slippage": "Tolerancia de deslizamiento"
},
"title": "Intercambio",
"dynamicSpreadFactor": "Dinámica",
Expand Down
21 changes: 1 addition & 20 deletions packages/web/localizations/fa.json
Original file line number Diff line number Diff line change
Expand Up @@ -329,14 +329,6 @@
},
"estimated": "تخمین زده",
"frontierMigration": {
"introducingUnverifiedAssets": "معرفی دارایی‌های تایید نشده",
"simplifiedExperience": "تجربه شما ساده شده است!",
"frontierHasNowMerged": "صفحه مرز اکنون با",
"thisMeansManaging": "این بدان معنی است که می توان مدیریت توکن ها را به راحتی در یک مکان انجام داد!",
"commitmentToDecentralization": "مطابق با تعهد به توزیع و دسترسی، گزینه ای برای کنترل توکن های تایید نشده همچنان موجود است.",
"settingIsNowEnabled": "تنظیمات اکنون فعال شده است.",
"youMayDisable": "شما می توانید این تنظیم را در هر زمان در مدال تنظیمات غیر فعال کنید.",
"openSettings": "تنظیمات را باز کن",
"proceed": "ادامه دهید"
},
"lockToken": {
Expand Down Expand Up @@ -704,19 +696,10 @@
"hide": "مخفی",
"show": "نماید"
},
"maxButtonErrorNoBalance": "موجودی کافی برای محاسبه حداکثر مقدار موجود نیست.",
"available": "موجود",
"button": "تبدیل کن",
"buttonError": "در هر شرایطی تبدیل کن",
"expectedOutput": "خروجی مورد انتظار",
"fee": "کارمزد تبدیل ({fee})",
"networkFee": "هزینه شبکه",
"totalFee": "هزینه کل",
"HALF": "نصف",
"MAX": "همه",
"minimumSlippage": "حداقل تغییرات قابل قبول ({slippage})",
"pool": "استخر #{id}",
"priceImpact": "تاثیر بازار",
"routerTooltipFee": "کارمزد",
"routerTooltipSpreadFactor": "فاکتور گسترش",
"showDetails": "نمایش جزئیات",
Expand All @@ -727,9 +710,7 @@
"increaseSpendLimit": "افزایش سقف هزینه"
},
"settings": {
"slippage": "تغیرات قابل قبول",
"slippageInfo": "تراکنش در صورتی که تغییرات با درصد قابل قبول شما برابری کند انجام می شود.",
"title": "تنظیمات تراکنش"
"slippage": "تغیرات قابل قبول"
},
"title": "تبدیل",
"dynamicSpreadFactor": "پویا",
Expand Down
21 changes: 1 addition & 20 deletions packages/web/localizations/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -329,14 +329,6 @@
},
"estimated": "Estimé",
"frontierMigration": {
"introducingUnverifiedAssets": "Introduction des actifs non vérifiés",
"simplifiedExperience": "Votre expérience a été simplifiée!",
"frontierHasNowMerged": "La page Frontier a maintenant fusionné avec",
"thisMeansManaging": "Cela signifie que la gestion des tokens peut être commodément faite en un seul endroit!",
"commitmentToDecentralization": "Conformément à l'engagement envers la décentralisation et l'accessibilité, l'option de gérer les tokens non vérifiés est toujours disponible.",
"settingIsNowEnabled": "Le paramètre est maintenant activé.",
"youMayDisable": "Vous pouvez désactiver ce paramètre à tout moment dans la fenêtre modale des paramètres.",
"openSettings": "Ouvrir les paramètres",
"proceed": "Procéder"
},
"lockToken": {
Expand Down Expand Up @@ -704,19 +696,10 @@
"hide": "Cacher",
"show": "Montrer"
},
"maxButtonErrorNoBalance": "Solde insuffisant pour calculer le montant maximum.",
"available": "Disponible",
"button": "Échanger",
"buttonError": "Échanger quand même",
"expectedOutput": "Résultat attendu",
"fee": "Frais d'échange ({fee})",
"networkFee": "Frais de réseau",
"totalFee": "Montant total",
"HALF": "MOITIÉ",
"MAX": "MAX",
"minimumSlippage": "Minimum reçu après glissement ({slippage})",
"pool": "Bassin n°{id}",
"priceImpact": "Impact sur le marché",
"routerTooltipFee": "Frais",
"routerTooltipSpreadFactor": "Facteur de propagation",
"showDetails": "Afficher les détails",
Expand All @@ -727,9 +710,7 @@
"increaseSpendLimit": "Augmenter la limite de dépenses"
},
"settings": {
"slippage": "Tolérance de glissement",
"slippageInfo": "Votre transaction sera annulée si le prix dépasse le pourcentage en votre défaveur.",
"title": "Paramètres de transaction"
"slippage": "Tolérance de glissement"
},
"title": "Échanger",
"dynamicSpreadFactor": "Dynamique",
Expand Down
21 changes: 1 addition & 20 deletions packages/web/localizations/gu.json
Original file line number Diff line number Diff line change
Expand Up @@ -329,14 +329,6 @@
},
"estimated": "અંદાજિત",
"frontierMigration": {
"introducingUnverifiedAssets": "વણચકાસાયેલ અસ્કયામતોનો પરિચય",
"simplifiedExperience": "તમારો અનુભવ સરળ કરવામાં આવ્યો છે!",
"frontierHasNowMerged": "ફ્રન્ટિયર પેજ હવે સાથે મર્જ થઈ ગયું છે",
"thisMeansManaging": "આનો અર્થ એ છે કે ટોકન્સનું સંચાલન એક જગ્યાએ સરળતાથી કરી શકાય છે!",
"commitmentToDecentralization": "વિકેન્દ્રીકરણ અને સુલભતા માટેની પ્રતિબદ્ધતા અનુસાર, વણચકાસાયેલ ટોકન્સને હેન્ડલ કરવાનો વિકલ્પ હજુ પણ ઉપલબ્ધ છે.",
"settingIsNowEnabled": "સેટિંગ હવે સક્ષમ છે.",
"youMayDisable": "તમે સેટિંગ્સ મોડલમાં કોઈપણ સમયે આ સેટિંગને અક્ષમ કરી શકો છો.",
"openSettings": "સેટિંગ્સ ખોલો",
"proceed": "આગળ વધો"
},
"lockToken": {
Expand Down Expand Up @@ -704,19 +696,10 @@
"hide": "છુપાવો",
"show": "બતાવો"
},
"maxButtonErrorNoBalance": "મહત્તમ રકમની ગણતરી કરવા માટે પર્યાપ્ત બેલેન્સ નથી.",
"available": "ઉપલબ્ધ છે",
"button": "સ્વેપ",
"buttonError": "કોઈપણ રીતે સ્વેપ કરો",
"expectedOutput": "અપેક્ષિત આઉટપુટ",
"fee": "સ્વેપ ફી ( {fee} )",
"networkFee": "નેટવર્ક ફી",
"totalFee": "કુલ ફી",
"HALF": "અર્ધ",
"MAX": "MAX",
"minimumSlippage": "સ્લિપેજ પછી પ્રાપ્ત ન્યૂનતમ ( {slippage} )",
"pool": "પૂલ # {id}",
"priceImpact": "બજારની અસર",
"routerTooltipFee": "ફી",
"routerTooltipSpreadFactor": "સ્પ્રેડ ફેક્ટર",
"showDetails": "વિગતો બતાવો",
Expand All @@ -727,9 +710,7 @@
"increaseSpendLimit": "ખર્ચ મર્યાદા વધારો"
},
"settings": {
"slippage": "સ્લિપેજ સહનશીલતા",
"slippageInfo": "જો કિંમત આ ટકાવારી કરતાં વધુ પ્રતિકૂળ રીતે બદલાશે તો તમારો વ્યવહાર પાછો આવશે.",
"title": "વ્યવહાર સેટિંગ્સ"
"slippage": "સ્લિપેજ સહનશીલતા"
},
"title": "સ્વેપ",
"dynamicSpreadFactor": "ગતિશીલ",
Expand Down
21 changes: 1 addition & 20 deletions packages/web/localizations/hi.json
Original file line number Diff line number Diff line change
Expand Up @@ -329,14 +329,6 @@
},
"estimated": "अनुमानित",
"frontierMigration": {
"introducingUnverifiedAssets": "असत्यापित संपत्तियों का परिचय",
"simplifiedExperience": "आपका अनुभव सरल हो गया है!",
"frontierHasNowMerged": "फ्रंटियर पेज का अब विलय हो गया है",
"thisMeansManaging": "इसका मतलब है कि टोकन का प्रबंधन एक ही स्थान पर आसानी से किया जा सकता है!",
"commitmentToDecentralization": "विकेंद्रीकरण और पहुंच की प्रतिबद्धता के अनुरूप, असत्यापित टोकन को संभालने का विकल्प अभी भी उपलब्ध है।",
"settingIsNowEnabled": "सेटिंग अब सक्षम है.",
"youMayDisable": "आप सेटिंग मोडल में किसी भी समय इस सेटिंग को अक्षम कर सकते हैं।",
"openSettings": "खुली सेटिंग",
"proceed": "आगे बढ़ना"
},
"lockToken": {
Expand Down Expand Up @@ -704,19 +696,10 @@
"hide": "छिपाना",
"show": "दिखाओ"
},
"maxButtonErrorNoBalance": "अधिकतम राशि की गणना करने के लिए पर्याप्त शेष राशि नहीं है।",
"available": "उपलब्ध",
"button": "बदलना",
"buttonError": "वैसे भी स्वैप करें",
"expectedOutput": "अपेक्षित उत्पादन",
"fee": "स्वैप शुल्क ( {fee} )",
"networkFee": "नेटवर्क शुल्क",
"totalFee": "कुल शुल्क",
"HALF": "आधा",
"MAX": "अधिकतम",
"minimumSlippage": "स्लिपेज के बाद प्राप्त न्यूनतम राशि ( {slippage} )",
"pool": "पूल # {id}",
"priceImpact": "बाजार प्रभाव",
"routerTooltipFee": "शुल्क",
"routerTooltipSpreadFactor": "प्रसार कारक",
"showDetails": "प्रदर्शन का विवरण",
Expand All @@ -727,9 +710,7 @@
"increaseSpendLimit": "खर्च सीमा बढ़ाएँ"
},
"settings": {
"slippage": "फिसलन सहनशीलता",
"slippageInfo": "यदि कीमत में इस प्रतिशत से अधिक प्रतिकूल परिवर्तन होता है तो आपका लेनदेन वापस कर दिया जाएगा।",
"title": "लेन-देन सेटिंग"
"slippage": "फिसलन सहनशीलता"
},
"title": "बदलना",
"dynamicSpreadFactor": "गतिशील",
Expand Down
21 changes: 1 addition & 20 deletions packages/web/localizations/ja.json
Original file line number Diff line number Diff line change
Expand Up @@ -329,14 +329,6 @@
},
"estimated": "推定",
"frontierMigration": {
"introducingUnverifiedAssets": "未検証のアセットの紹介",
"simplifiedExperience": "あなたの経験は簡素化されました!",
"frontierHasNowMerged": "フロンティアページは次と統合されました",
"thisMeansManaging": "つまり、トークンの管理を 1 か所で簡単に行うことができます。",
"commitmentToDecentralization": "分散化とアクセシビリティへの取り組みに沿って、未検証のトークンを処理するオプションも引き続き利用できます。",
"settingIsNowEnabled": "これで設定が有効になりました。",
"youMayDisable": "この設定は、設定モーダルでいつでも無効にすることができます。",
"openSettings": "設定を開く",
"proceed": "進む"
},
"lockToken": {
Expand Down Expand Up @@ -704,19 +696,10 @@
"hide": "隠れる",
"show": "見せる"
},
"maxButtonErrorNoBalance": "最大額を計算するには残高が足りません。",
"available": "利用可能",
"button": "スワップ",
"buttonError": "とにかく交換する",
"expectedOutput": "期待される出力",
"fee": "スワップ手数料 ( {fee} )",
"networkFee": "ネットワーク料金",
"totalFee": "合計料金",
"HALF": "半分",
"MAX": "マックス",
"minimumSlippage": "スリッページ後に受信した最小値 ( {slippage} )",
"pool": "プール番号{id}",
"priceImpact": "市場への影響",
"routerTooltipFee": "手数料",
"routerTooltipSpreadFactor": "スプレッドファクター",
"showDetails": "詳細を表示",
Expand All @@ -727,9 +710,7 @@
"increaseSpendLimit": "支出制限を増やす"
},
"settings": {
"slippage": "滑り許容差",
"slippageInfo": "価格がこのパーセンテージを超えて不利に変化した場合、トランザクションは元に戻ります。",
"title": "トランザクション設定"
"slippage": "滑り許容差"
},
"title": "スワップ",
"dynamicSpreadFactor": "動的",
Expand Down
Loading

0 comments on commit 394b2e9

Please sign in to comment.