Skip to content

Commit

Permalink
Refactor validation function (#7187)
Browse files Browse the repository at this point in the history
* Update invalidBlockExplorerURL message

* Refactor validation function
  • Loading branch information
Sunghee2 authored and Gudahtt committed Sep 18, 2019
1 parent 638149d commit 87ac07b
Show file tree
Hide file tree
Showing 49 changed files with 148 additions and 13 deletions.
3 changes: 3 additions & 0 deletions app/_locales/am/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -876,6 +876,9 @@
"invalidRPC": {
"message": "ልክ ያልሆነ RPC ዩአርኤል"
},
"invalidBlockExplorerURL": {
"message": "ልክ ያልሆነ Block Explorer ዩአርኤል"
},
"invalidSeedPhrase": {
"message": "የተሳሳተ የዘር ሐረግ"
},
Expand Down
3 changes: 3 additions & 0 deletions app/_locales/ar/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -878,6 +878,9 @@
"invalidRPC": {
"message": "رابط آر بي سي غير صحيح"
},
"invalidBlockExplorerURL": {
"message": "غير صحيح Block Explorer رابط"
},
"invalidSeedPhrase": {
"message": "عبارة أمان غير صحيحة"
},
Expand Down
3 changes: 3 additions & 0 deletions app/_locales/bg/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -875,6 +875,9 @@
"invalidRPC": {
"message": "Невалиден RPC URL адрес"
},
"invalidBlockExplorerURL": {
"message": "Невалиден Block Explorer URL адрес"
},
"invalidSeedPhrase": {
"message": "Невалидна фраза зародиш"
},
Expand Down
3 changes: 3 additions & 0 deletions app/_locales/bn/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -879,6 +879,9 @@
"invalidRPC": {
"message": "অবৈধ RPC URL"
},
"invalidBlockExplorerURL": {
"message": "অবৈধ Block Explorer URL"
},
"invalidSeedPhrase": {
"message": "অবৈধ সীড ফ্রেজ"
},
Expand Down
3 changes: 3 additions & 0 deletions app/_locales/ca/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -855,6 +855,9 @@
"invalidRPC": {
"message": "URL de RPC"
},
"invalidBlockExplorerURL": {
"message": "URL de Block Explorer"
},
"invalidSeedPhrase": {
"message": "Frase de recuperació no vàlida"
},
Expand Down
3 changes: 3 additions & 0 deletions app/_locales/cs/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -445,6 +445,9 @@
"invalidRPC": {
"message": "Neplatné RPC URI"
},
"invalidBlockExplorerURL": {
"message": "Neplatné Block Explorer URI"
},
"jsonFail": {
"message": "Něco se pokazilo. Prosím, ujistěte se, že váš JSON soubor má správný formát."
},
Expand Down
3 changes: 3 additions & 0 deletions app/_locales/da/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -866,6 +866,9 @@
"invalidRPC": {
"message": "Ugyldig RPC-webadresse"
},
"invalidBlockExplorerURL": {
"message": "Ugyldig Block Explorer-webadresse"
},
"invalidSeedPhrase": {
"message": "Ugyldig backupsætning"
},
Expand Down
3 changes: 3 additions & 0 deletions app/_locales/de/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -854,6 +854,9 @@
"invalidRPC": {
"message": "Ungültige RPC URI"
},
"invalidBlockExplorerURL": {
"message": "Ungültige Block Explorer URI"
},
"invalidSeedPhrase": {
"message": "Ungültiger Seedschlüssel"
},
Expand Down
3 changes: 3 additions & 0 deletions app/_locales/el/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -873,6 +873,9 @@
"invalidRPC": {
"message": "Μη έγκυρο RPC URL"
},
"invalidBlockExplorerURL": {
"message": "Μη έγκυρο Block Explorer URL"
},
"invalidSeedPhrase": {
"message": "Μη έγκυρη φράση φύτρου"
},
Expand Down
3 changes: 3 additions & 0 deletions app/_locales/en/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -915,6 +915,9 @@
"invalidRPC": {
"message": "Invalid RPC URL"
},
"invalidBlockExplorerURL": {
"message": "Invalid Block Explorer URL"
},
"invalidSeedPhrase": {
"message": "Invalid seed phrase"
},
Expand Down
3 changes: 3 additions & 0 deletions app/_locales/es/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -756,6 +756,9 @@
"invalidRPC": {
"message": "Invalida URL del RPC"
},
"invalidBlockExplorerURL": {
"message": "Invalida URL del Block Explorer"
},
"invalidSeedPhrase": {
"message": "Frase semilla no válida."
},
Expand Down
3 changes: 3 additions & 0 deletions app/_locales/es_419/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -863,6 +863,9 @@
"invalidRPC": {
"message": "RPC de URL no válido"
},
"invalidBlockExplorerURL": {
"message": "Block Explorer de URL no válido"
},
"invalidSeedPhrase": {
"message": "Frase de inicialización no válida"
},
Expand Down
3 changes: 3 additions & 0 deletions app/_locales/et/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -875,6 +875,9 @@
"invalidRPC": {
"message": "Vale RPC URL"
},
"invalidBlockExplorerURL": {
"message": "Vale Block Explorer URL"
},
"invalidSeedPhrase": {
"message": "Vigane seemnefraas"
},
Expand Down
3 changes: 3 additions & 0 deletions app/_locales/fa/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -876,6 +876,9 @@
"invalidRPC": {
"message": "RPC URL نا معتبر"
},
"invalidBlockExplorerURL": {
"message": "Block Explorer URL نا معتبر"
},
"invalidSeedPhrase": {
"message": "عبارت بازیابی نا معتبر"
},
Expand Down
3 changes: 3 additions & 0 deletions app/_locales/fi/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -873,6 +873,9 @@
"invalidRPC": {
"message": "Virheellinen RPC:n URL-osoite"
},
"invalidBlockExplorerURL": {
"message": "Virheellinen Block Explorer URL-osoite"
},
"invalidSeedPhrase": {
"message": "Virheellinen salausteksti"
},
Expand Down
3 changes: 3 additions & 0 deletions app/_locales/fil/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -807,6 +807,9 @@
"invalidRPC": {
"message": "Hindi valid ang RPC URL"
},
"invalidBlockExplorerURL": {
"message": "Hindi valid ang Block Explorer URL"
},
"invalidSeedPhrase": {
"message": "Hindi valid ang seed phrase"
},
Expand Down
3 changes: 3 additions & 0 deletions app/_locales/fr/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -844,6 +844,9 @@
"invalidRPC": {
"message": "URL RPC invalide"
},
"invalidBlockExplorerURL": {
"message": "URL Block Explorer invalide"
},
"invalidSeedPhrase": {
"message": "Phrase Seed invalide"
},
Expand Down
3 changes: 3 additions & 0 deletions app/_locales/he/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -879,6 +879,9 @@
"invalidRPC": {
"message": "כתובת URL לא חוקית של RPC"
},
"invalidBlockExplorerURL": {
"message": "כתובת URL לא חוקית של Block Explorer"
},
"invalidSeedPhrase": {
"message": "seed phrase לא חוקי"
},
Expand Down
3 changes: 3 additions & 0 deletions app/_locales/hi/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -882,6 +882,9 @@
"invalidRPC": {
"message": "अमान्य RPC URL"
},
"invalidBlockExplorerURL": {
"message": "अमान्य Block Explorer URL"
},
"invalidSeedPhrase": {
"message": "अमान्य बीज वाक्यांश"
},
Expand Down
3 changes: 3 additions & 0 deletions app/_locales/hn/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -419,6 +419,9 @@
"invalidRPC": {
"message": "अमान्य RPC कै URI"
},
"invalidBlockExplorerURL": {
"message": "अमान्य Block Explorer कै URI"
},
"jsonFail": {
"message": "कुछ गलत हो गया। कृपया सुनिश्चित करें कि आपकी JSON फ़ाइल ठीक से फ़ॉर्मेट की गई है।"
},
Expand Down
3 changes: 3 additions & 0 deletions app/_locales/hr/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -872,6 +872,9 @@
"invalidRPC": {
"message": "Nevaljani URL RPC-a"
},
"invalidBlockExplorerURL": {
"message": "Nevaljani URL Block Explorer-a"
},
"invalidSeedPhrase": {
"message": "Nevaljana početna rečenica"
},
Expand Down
3 changes: 3 additions & 0 deletions app/_locales/ht/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -568,6 +568,9 @@
"invalidRPC": {
"message": "RPC URI pa valab"
},
"invalidBlockExplorerURL": {
"message": "Block Explorer URI pa valab"
},
"invalidSeedPhrase": {
"message": "Seed fraz pa valab"
},
Expand Down
3 changes: 3 additions & 0 deletions app/_locales/hu/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -872,6 +872,9 @@
"invalidRPC": {
"message": "Helytelen RPC URL"
},
"invalidBlockExplorerURL": {
"message": "Helytelen Block Explorer URL"
},
"invalidSeedPhrase": {
"message": "Érvénytelen seed mondat"
},
Expand Down
3 changes: 3 additions & 0 deletions app/_locales/id/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -853,6 +853,9 @@
"invalidRPC": {
"message": "URL RPC Tidak Sah"
},
"invalidBlockExplorerURL": {
"message": "URL Block Explorer Tidak Sah"
},
"invalidSeedPhrase": {
"message": "Frasa benih tidak valid"
},
Expand Down
3 changes: 3 additions & 0 deletions app/_locales/it/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -844,6 +844,9 @@
"invalidRPC": {
"message": "URI RPC invalido"
},
"invalidBlockExplorerURL": {
"message": "URI Block Explorer invalido"
},
"invalidSeedPhrase": {
"message": "Frase seed non valida"
},
Expand Down
3 changes: 3 additions & 0 deletions app/_locales/kn/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -879,6 +879,9 @@
"invalidRPC": {
"message": "ಅಮಾನ್ಯವಾದ RPC URL"
},
"invalidBlockExplorerURL": {
"message": "ಅಮಾನ್ಯವಾದ Block Explorer URL"
},
"invalidSeedPhrase": {
"message": "ಅಮಾನ್ಯವಾದ ಸೀಡ್ ಫ್ರೇಸ್"
},
Expand Down
3 changes: 3 additions & 0 deletions app/_locales/ko/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -864,6 +864,9 @@
"invalidRPC": {
"message": "올바르지 않은 RPC URI"
},
"invalidBlockExplorerURL": {
"message": "올바르지 않은 Block Explorer URI"
},
"invalidSeedPhrase": {
"message": "잘못된 시드 구문"
},
Expand Down
3 changes: 3 additions & 0 deletions app/_locales/lt/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -879,6 +879,9 @@
"invalidRPC": {
"message": "Netinkamas RPC URL"
},
"invalidBlockExplorerURL": {
"message": "Netinkamas Block Explorer URL"
},
"invalidSeedPhrase": {
"message": "Netinkama atkūrimo frazė"
},
Expand Down
3 changes: 3 additions & 0 deletions app/_locales/lv/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -868,6 +868,9 @@
"invalidRPC": {
"message": "Nederīgs RPC URL"
},
"invalidBlockExplorerURL": {
"message": "Nederīgs Block Explorer URL"
},
"invalidSeedPhrase": {
"message": "Nederīga atkopšanas frāze"
},
Expand Down
3 changes: 3 additions & 0 deletions app/_locales/ms/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -849,6 +849,9 @@
"invalidRPC": {
"message": "URL RPC tidak sah"
},
"invalidBlockExplorerURL": {
"message": "URL Block Explorer tidak sah"
},
"invalidSeedPhrase": {
"message": "Ungkapan benih tidak sah"
},
Expand Down
3 changes: 3 additions & 0 deletions app/_locales/nl/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,9 @@
"invalidRPC": {
"message": "Ongeldige RPC-URI"
},
"invalidBlockExplorerURL": {
"message": "Ongeldige Block Explorer URI"
},
"jsonFail": {
"message": "Er is iets fout gegaan. Zorg ervoor dat uw JSON-bestand correct is opgemaakt."
},
Expand Down
3 changes: 3 additions & 0 deletions app/_locales/no/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -866,6 +866,9 @@
"invalidRPC": {
"message": "Ugyldig RPC URL"
},
"invalidBlockExplorerURL": {
"message": "Ugyldig Block Explorer URL"
},
"invalidSeedPhrase": {
"message": "Ugyldig mnemonisk gjenopprettingsfrase"
},
Expand Down
3 changes: 3 additions & 0 deletions app/_locales/pl/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -870,6 +870,9 @@
"invalidRPC": {
"message": "Nieprawidłowe RPC URI"
},
"invalidBlockExplorerURL": {
"message": "Nieprawidłowe Block Explorer URI"
},
"invalidSeedPhrase": {
"message": "Nieprawidłowa fraza seed"
},
Expand Down
3 changes: 3 additions & 0 deletions app/_locales/pt/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -412,6 +412,9 @@
"invalidRPC": {
"message": "RPC URI Inválido"
},
"invalidBlockExplorerURL": {
"message": "Block Explorer URI Inválido"
},
"jsonFail": {
"message": "Ocorreu um erro. Por favor confirme que o seu ficheiro JSON está devidamente formatado."
},
Expand Down
3 changes: 3 additions & 0 deletions app/_locales/pt_BR/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -870,6 +870,9 @@
"invalidRPC": {
"message": "URL de RPC inválida"
},
"invalidBlockExplorerURL": {
"message": "URL de Block Explorer inválida"
},
"invalidSeedPhrase": {
"message": "Frase semente inválida"
},
Expand Down
3 changes: 3 additions & 0 deletions app/_locales/ro/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -859,6 +859,9 @@
"invalidRPC": {
"message": "URL RPC nevalid"
},
"invalidBlockExplorerURL": {
"message": "URL Block Explorer nevalid"
},
"invalidSeedPhrase": {
"message": "Expresie sursă nevalidă"
},
Expand Down
3 changes: 3 additions & 0 deletions app/_locales/ru/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -449,6 +449,9 @@
"invalidRPC": {
"message": "Неверный RPC URI"
},
"invalidBlockExplorerURL": {
"message": "Неверный Block Explorer URI"
},
"jsonFail": {
"message": "Что-то пошло не так. Убедитесь, что ваш JSON файл правильно отформатирован."
},
Expand Down
3 changes: 3 additions & 0 deletions app/_locales/sk/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -860,6 +860,9 @@
"invalidRPC": {
"message": "Neplatné RPC URI"
},
"invalidBlockExplorerURL": {
"message": "Neplatné Block Explorer URI"
},
"invalidSeedPhrase": {
"message": "Neplatná seed fráza"
},
Expand Down
3 changes: 3 additions & 0 deletions app/_locales/sl/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -854,6 +854,9 @@
"invalidRPC": {
"message": "Neveljaven RPC URL"
},
"invalidBlockExplorerURL": {
"message": "Neveljaven Block Explorer URL"
},
"invalidSeedPhrase": {
"message": "Neveljavna seed phrase"
},
Expand Down
3 changes: 3 additions & 0 deletions app/_locales/sr/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -869,6 +869,9 @@
"invalidRPC": {
"message": "Nevažeći RPC URL"
},
"invalidBlockExplorerURL": {
"message": "Nevažeći Block Explorer URL"
},
"invalidSeedPhrase": {
"message": "Nevažeća seed fraza"
},
Expand Down
Loading

0 comments on commit 87ac07b

Please sign in to comment.