Skip to content

Commit

Permalink
Add script to validate and sync translations
Browse files Browse the repository at this point in the history
Signed-off-by: amsul <[email protected]>
  • Loading branch information
amsul committed May 27, 2020
1 parent 1a00feb commit 037ade5
Show file tree
Hide file tree
Showing 26 changed files with 298 additions and 216 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*.DS_Store
node_modules
9 changes: 9 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"printWidth": 80,
"singleQuote": true,
"jsxSingleQuote": true,
"semi": false,
"useTabs": false,
"tabWidth": 2,
"trailingComma": "all",
}
20 changes: 10 additions & 10 deletions locales/ar_AA.json
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@
"security": "Security",
"limits": "Limits",
"accounts": "Accounts",
"apikeys": "API\u00A0keys"
"apikeys": "API keys"
}
},
"staking": {
Expand Down Expand Up @@ -340,7 +340,7 @@
"query-errors": {
"failed": "Failed to load.",
"failed-button": "Failed to load",
"failed-please-try": "<0>Failed to load. Please\u00A0</0><1>retry</1>.",
"failed-please-try": "<0>Failed to load. Please </0><1>retry</1>.",
"why-this-may-happening": "Find out why this may have happened <0>here.</0>"
},
"datetime": {
Expand Down Expand Up @@ -715,7 +715,7 @@
}
},
"favorite-bar": {
"empty": "<0>Your favorite markets</0>\u00A0appear as links here.",
"empty": "<0>Your favorite markets</0> appear as links here.",
"tips": "<0>Tip</0> <1>Add favorite markets as links here.</1> <2 />"
},
"market-graphs": {
Expand Down Expand Up @@ -912,7 +912,7 @@
"my-orders": {
"auth": "Sign in to view your orders.",
"signed-out": {
"title": "<0>Get started</0><1>\u00A0with Nash</1>",
"title": "<0>Get started</0><1> with Nash</1>",
"subtitle": "Create an account in under a minute – no KYC required!"
},
"no-results": {
Expand Down Expand Up @@ -1071,12 +1071,12 @@
"sign-in": "Sign in",
"sign-out": "Sign out",
"password-strength": {
"label": "Password strength",
"0": "Very weak",
"1": "Weak",
"2": "Medium",
"3": "Strong",
"4": "Very strong"
"4": "Very strong",
"label": "Password strength"
},
"password-form": {
"password": {
Expand Down Expand Up @@ -1176,7 +1176,7 @@
"forgot-password": {
"tab-title": "Forgotten password",
"header": "Forgotten your password?",
"desc": "Enter your email address below and we’ll get you back\u00A0on\u00A0track.",
"desc": "Enter your email address below and we’ll get you back on track.",
"fields": {
"email": {
"label": "Email address",
Expand Down Expand Up @@ -3581,7 +3581,6 @@
},
"modals": {
"enable-2fa": {
"title": "Set up two-factor authentication",
"1": {
"header": "Download and install an authenticator app",
"desc": "We recommend <0>LastPass Authenticator</0>, <1>Authy</1> or <2>Google Authenticator</2>."
Expand All @@ -3594,7 +3593,8 @@
"3": {
"header": "Enter the code generated by your authenticator app",
"input-placeholder": "Authentication code"
}
},
"title": "Set up two-factor authentication"
},
"disable-2fa": {
"title": "Disable two-factor authentication",
Expand Down Expand Up @@ -4242,4 +4242,4 @@
"Pacific/Apia": "(GMT+14:00) Apia",
"Pacific/Kiritimati": "(GMT+14:00) Kiritimati"
}
}
}
20 changes: 10 additions & 10 deletions locales/bg_BG.json
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@
"security": "Сигурност",
"limits": "Лимити",
"accounts": "Акаунти",
"apikeys": "API\u00A0keys"
"apikeys": "API keys"
}
},
"staking": {
Expand Down Expand Up @@ -340,7 +340,7 @@
"query-errors": {
"failed": "Провали се да зареди.",
"failed-button": "Провали се да зареди",
"failed-please-try": "<0>Провали се да зареди. Моля\u00A0</0><1>опитайте отново</1>.",
"failed-please-try": "<0>Провали се да зареди. Моля </0><1>опитайте отново</1>.",
"why-this-may-happening": "Разберете защо това се случи <0>тук.</0>"
},
"datetime": {
Expand Down Expand Up @@ -715,7 +715,7 @@
}
},
"favorite-bar": {
"empty": "<0>Your favorite markets</0>\u00A0appear as links here.",
"empty": "<0>Your favorite markets</0> appear as links here.",
"tips": "<0>Tip</0> <1>Add favorite markets as links here.</1> <2 />"
},
"market-graphs": {
Expand Down Expand Up @@ -912,7 +912,7 @@
"my-orders": {
"auth": "Sign in to view your orders.",
"signed-out": {
"title": "<0>Get started</0><1>\u00A0with Nash</1>",
"title": "<0>Get started</0><1> with Nash</1>",
"subtitle": "Create an account in under a minute – no KYC required!"
},
"no-results": {
Expand Down Expand Up @@ -1071,12 +1071,12 @@
"sign-in": "Sign in",
"sign-out": "Sign out",
"password-strength": {
"label": "Password strength",
"0": "Very weak",
"1": "Weak",
"2": "Medium",
"3": "Strong",
"4": "Very strong"
"4": "Very strong",
"label": "Password strength"
},
"password-form": {
"password": {
Expand Down Expand Up @@ -1176,7 +1176,7 @@
"forgot-password": {
"tab-title": "Forgotten password",
"header": "Forgotten your password?",
"desc": "Enter your email address below and we’ll get you back\u00A0on\u00A0track.",
"desc": "Enter your email address below and we’ll get you back on track.",
"fields": {
"email": {
"label": "Email address",
Expand Down Expand Up @@ -3581,7 +3581,6 @@
},
"modals": {
"enable-2fa": {
"title": "Set up two-factor authentication",
"1": {
"header": "Download and install an authenticator app",
"desc": "We recommend <0>LastPass Authenticator</0>, <1>Authy</1> or <2>Google Authenticator</2>."
Expand All @@ -3594,7 +3593,8 @@
"3": {
"header": "Enter the code generated by your authenticator app",
"input-placeholder": "Authentication code"
}
},
"title": "Set up two-factor authentication"
},
"disable-2fa": {
"title": "Disable two-factor authentication",
Expand Down Expand Up @@ -4242,4 +4242,4 @@
"Pacific/Apia": "(GMT+14:00) Apia",
"Pacific/Kiritimati": "(GMT+14:00) Kiritimati"
}
}
}
22 changes: 11 additions & 11 deletions locales/cs_CZ.json
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@
"security": "Bezpečnost",
"limits": "Limity",
"accounts": "Účty",
"apikeys": "API\u00A0keys"
"apikeys": "API keys"
}
},
"staking": {
Expand Down Expand Up @@ -340,7 +340,7 @@
"query-errors": {
"failed": "Nahrání selhalo.",
"failed-button": "Nahrání selhalo.",
"failed-please-try": "<0>Nahrání selhalo. Prosím\u00A0</0><1>zkuste to znovu</1>.",
"failed-please-try": "<0>Nahrání selhalo. Prosím </0><1>zkuste to znovu</1>.",
"why-this-may-happening": "Zjistěte prosč se to mohlo stát <0>zde.</0>"
},
"datetime": {
Expand Down Expand Up @@ -614,7 +614,7 @@
"header": "Záloha tajných slov",
"desc-1": "Vašich 12 tajných slov může být použito k získání přístupu k vašim ETH, NEO a dalším účtům pokud ztratíte přístup ke svému heslu.",
"desc-2": "Nezapomeňte: pokud někdo získá přístup k vašim 12 tajným slovům, budou vaše finanční prostředky v ohrožení.",
"desc-3": "Roztříhněte papír se zálohou na dvě části, zavžte jestli je nezalaminovat a neuložit na dvě různá bezpečná místa."
"desc-3": "Roztříhněte papír se zálohou na dvě části, zavžte jestli je nezalaminovat a neuložit na dvě různá bezpečná místa."
},
"repeat-secret-words": {
"header": "Znovu napsání vašich 12 tajných slov.",
Expand Down Expand Up @@ -715,7 +715,7 @@
}
},
"favorite-bar": {
"empty": "<0>Vaše oblíbené trhy se</0>\u00A0zobrazí jako odkyza zde.",
"empty": "<0>Vaše oblíbené trhy se</0> zobrazí jako odkyza zde.",
"tips": "<0>Tip</0> <1>Přidejte si sem vaše oblíbené trhy.</1> <2 />"
},
"market-graphs": {
Expand Down Expand Up @@ -912,7 +912,7 @@
"my-orders": {
"auth": "Pro zobrazení vašich obchodních příkazů se přihlašte.",
"signed-out": {
"title": "<0>Vyzkoušet</0><1>\u00A0Nash</1>",
"title": "<0>Vyzkoušet</0><1> Nash</1>",
"subtitle": "Během miuty si vytvořte účet – žádné KYC není ptřeba!"
},
"no-results": {
Expand Down Expand Up @@ -1071,12 +1071,12 @@
"sign-in": "Přihlásit se",
"sign-out": "Odhlásit se",
"password-strength": {
"label": "Bezpečnost hesla",
"0": "Velice slabá",
"1": "Slabá",
"2": "Střední",
"3": "Silná",
"4": "Velice silná"
"4": "Velice silná",
"label": "Bezpečnost hesla"
},
"password-form": {
"password": {
Expand Down Expand Up @@ -1176,7 +1176,7 @@
"forgot-password": {
"tab-title": "Zapomenuté heslo",
"header": "Zapomněli jste heslo?",
"desc": "Zadejte vaši emailovou adresu níže a my vám\u00A0s\u00A0tím\u00A0pomůžeme.",
"desc": "Zadejte vaši emailovou adresu níže a my vám s tím pomůžeme.",
"fields": {
"email": {
"label": "Emailová adresa",
Expand Down Expand Up @@ -3581,7 +3581,6 @@
},
"modals": {
"enable-2fa": {
"title": "Set up two-factor authentication",
"1": {
"header": "Download and install an authenticator app",
"desc": "We recommend <0>LastPass Authenticator</0>, <1>Authy</1> or <2>Google Authenticator</2>."
Expand All @@ -3594,7 +3593,8 @@
"3": {
"header": "Enter the code generated by your authenticator app",
"input-placeholder": "Authentication code"
}
},
"title": "Set up two-factor authentication"
},
"disable-2fa": {
"title": "Disable two-factor authentication",
Expand Down Expand Up @@ -4242,4 +4242,4 @@
"Pacific/Apia": "(GMT+14:00) Apia",
"Pacific/Kiritimati": "(GMT+14:00) Kiritimati"
}
}
}
18 changes: 9 additions & 9 deletions locales/da_DK.json
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@
"security": "Security",
"limits": "Limits",
"accounts": "Accounts",
"apikeys": "API\u00A0keys"
"apikeys": "API keys"
}
},
"staking": {
Expand Down Expand Up @@ -340,7 +340,7 @@
"query-errors": {
"failed": "Failed to load.",
"failed-button": "Failed to load",
"failed-please-try": "<0>Failed to load. Please\u00A0</0><1>retry</1>.",
"failed-please-try": "<0>Failed to load. Please </0><1>retry</1>.",
"why-this-may-happening": "Find out why this may have happened <0>here.</0>"
},
"datetime": {
Expand Down Expand Up @@ -715,7 +715,7 @@
}
},
"favorite-bar": {
"empty": "<0>Your favorite markets</0>\u00A0appear as links here.",
"empty": "<0>Your favorite markets</0> appear as links here.",
"tips": "<0>Tip</0> <1>Add favorite markets as links here.</1> <2 />"
},
"market-graphs": {
Expand Down Expand Up @@ -912,7 +912,7 @@
"my-orders": {
"auth": "Sign in to view your orders.",
"signed-out": {
"title": "<0>Get started</0><1>\u00A0with Nash</1>",
"title": "<0>Get started</0><1> with Nash</1>",
"subtitle": "Create an account in under a minute – no KYC required!"
},
"no-results": {
Expand Down Expand Up @@ -1071,12 +1071,12 @@
"sign-in": "Sign in",
"sign-out": "Sign out",
"password-strength": {
"label": "Password strength",
"0": "Very weak",
"1": "Weak",
"2": "Medium",
"3": "Strong",
"4": "Very strong"
"4": "Very strong",
"label": "Password strength"
},
"password-form": {
"password": {
Expand Down Expand Up @@ -1176,7 +1176,7 @@
"forgot-password": {
"tab-title": "Forgotten password",
"header": "Forgotten your password?",
"desc": "Enter your email address below and we’ll get you back\u00A0on\u00A0track.",
"desc": "Enter your email address below and we’ll get you back on track.",
"fields": {
"email": {
"label": "Email address",
Expand Down Expand Up @@ -3581,7 +3581,6 @@
},
"modals": {
"enable-2fa": {
"title": "Set up two-factor authentication",
"1": {
"header": "Download and install an authenticator app",
"desc": "We recommend <0>LastPass Authenticator</0>, <1>Authy</1> or <2>Google Authenticator</2>."
Expand All @@ -3594,7 +3593,8 @@
"3": {
"header": "Enter the code generated by your authenticator app",
"input-placeholder": "Authentication code"
}
},
"title": "Set up two-factor authentication"
},
"disable-2fa": {
"title": "Disable two-factor authentication",
Expand Down
Loading

0 comments on commit 037ade5

Please sign in to comment.