Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: i18n #970

Draft
wants to merge 18 commits into
base: dev
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions apps/shell/.tolgeerc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
const AVAILABLE_LOCALES = ['en', 'ar', 'id', 'ru', 'tr'];
const ALL_NAMESPACES = [
'authz',
'common',
'faucet',
'governance',
'main',
'staking',
'uc-dao',
'utils',
];

module.exports = {
$schema: 'https://tolgee.io/cli-schema.json',
projectId: 3,
apiKey: process.env.TOLGEE_API_KEY,
apiUrl: process.env.TOLGEE_API_URL,
format: 'JSON_TOLGEE',
patterns: ['../../libs/**/*.ts?(x)', '../../apps/shell/src/**/*.ts?(x)'],
defaultNamespace: 'common',
parser: 'react',
push: {
files: AVAILABLE_LOCALES.flatMap((locale) => {
return ALL_NAMESPACES.map((namespace) => {
return {
path: `./messages/${namespace}/${locale}.json`,
language: locale,
namespace,
};
});
}),
forceMode: 'OVERRIDE',
tagNewKeys: ['development'],
},
pull: {
path: './messages',
languages: AVAILABLE_LOCALES,
namespaces: ALL_NAMESPACES,
fileStructureTemplate: '{namespace}/{languageTag}.{extension}',
},
};
3 changes: 0 additions & 3 deletions apps/shell/messages/ar.json

This file was deleted.

29 changes: 29 additions & 0 deletions apps/shell/messages/authz/en.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"access-granted-to-you": "Access you have been granted",
"access-you-granted": "Access you have granted",
"five-years": "5 Years",
"grant-access": "Grant access",
"grant-loading": "Grant in progress",
"grant-period": "Grant period",
"grant-success": "Grant successful",
"grant-type": "Grant type",
"grantee": "Grantee",
"grantee-address": "Grantee address",
"granter": "Granter",
"hundred-years": "100 Years",
"invalid-grantee-wallet-message": "You should enter valid grantee wallet to see info",
"memo": "Memo",
"message": "Message",
"one-month": "1 Month",
"one-week": "1 Week",
"one-year": "1 Year",
"revoke-button": "Revoke",
"revoke-loading": "Revoke in progress",
"revoke-success": "Revoke successful",
"selected-grantee": "Selected grantee",
"six-months": "6 Months",
"submit-proposal": "Submit Proposal",
"three-months": "3 Months",
"valid-thru": "Valid thru",
"vote": "Vote"
}
12 changes: 12 additions & 0 deletions apps/shell/messages/authz/ru.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"access-you-granted" : "Доступ, который вы предоставили",
"five-years" : "5 лет",
"hundred-years" : "100 лет",
"one-month" : "1 месяц",
"one-week" : "1 неделя",
"one-year" : "1 год",
"revoke-button" : "Отозвать",
"revoke-loading" : "Отзыв в процессе",
"six-months" : "6 месяцев",
"three-months" : "3 месяца"
}
114 changes: 114 additions & 0 deletions apps/shell/messages/common/en.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,114 @@
{
"active-status": "Active",
"add-memo": "Add memo",
"add-your-memo": "Add your memo",
"address": "Address",
"address-conversion-title": "Address Conversion",
"all-rights-reserved": ". All rights reserved",
"amount-error-min": "Bellow minimal value",
"amount-error-more-than-have": "More than you have",
"authz": "Authz",
"available": "Available",
"balance": "Balance",
"cancel-button": "Cancel",
"claim-all-rewards": "Claim all rewards",
"click-to-copy-value": "Click to copy {value}",
"complete-captcha-message": "Please complete the captcha to continue",
"complete-captcha-title": "Complete the captcha",
"confirm-button": "Confirm",
"confirm-delegation": "Confirm delegation",
"connect-wallet-button": "Connect wallet",
"connect-wallet-message": "You should connect wallet first",
"continue-button": "Continue",
"copied": "Copied!",
"dao-amount": "UnitedContributorsDAO: {amount}",
"days": "Days",
"delegate": "Delegate",
"deposit": "Deposit",
"deposit-end": "Deposit end",
"deposit-period": "Deposit Period",
"deposit-total-from-min": "{totalDeposit} {symbol} from {minDeposit} {symbol}",
"description": "Description",
"disconnect": "Disconnect",
"enter-amount": "Enter Amount",
"enter-text": "Enter text",
"failed": "Failed",
"faucet": "Faucet",
"fee": "Fee",
"fetching-proposals": "Fetching proposals",
"go-back": "Go back",
"governance": "Governance",
"grant-access": "Grant access",
"grant-loading": "Grant in progress",
"grant-period": "Grant period",
"grant-success": "Grant successful",
"grant-type": "Grant type",
"grantee-address": "Grantee address",
"haqq-network": "HAQQ Network",
"hide-info": "Hide Info",
"hours": "Hours",
"inactive-status": "Inactive",
"info": "Info",
"invalid-grantee-wallet-message": "You should enter valid grantee wallet to see info",
"jailed-status": "Jailed",
"liquid-staked-amount": "Liquid Staked: {amount}",
"low-balance-message": "Not enough balance for the commission fee. Transfer funds to your account to proceed.",
"low-balance-title": "Low balance",
"max": "Max",
"memo": "Memo",
"min-amount-to-claim-rewards": "Minimum amount to claim rewards is {amount} ISLM",
"minutes-shortened": "Min",
"my-account": "My account",
"my-balance": "My balance",
"my-delegations": "My delegations",
"name": "Name",
"nothing-found": "Nothing found",
"open-in-haqq-wallet": "Open in HAQQ Wallet",
"page-not-found": "Page not found",
"passed": "Passed",
"redelegate": "Redelegate",
"rejected": "Rejected",
"rewards": "Rewards",
"scan-with-haqq-wallet": "Scan with HAQQ Wallet",
"search-by-name": "Search by name",
"seconds-shortened": "Sec",
"select-network": "Select network",
"select-wallet-heading": "Select wallet",
"selected-grantee": "Selected grantee",
"send-button": "Send",
"show-info": "Show Info",
"something-went-wrong": "Something went wrong!",
"staked": "Staked",
"staked-amount": "Staked: {amount}",
"staking": "Staking",
"status": "Status",
"testnet-banner": "You are on test network",
"to-the-address": " - to the address <b>{address}</b> ?",
"tools": "Tools",
"top-validators-warning-message": "You are attempting to delegate to a validator that ranks in the\n top {votingPowerPercent}% by voting power. Delegating to highly\n ranked validators might centralize voting power and potentially\n reduce the network's decentralization. Please ensure you\n understand the implications before proceeding.",
"total-deposit": "Total deposit",
"try-again": "Try again",
"uc-dao": "UC DAO",
"unbonding": "Unbonding",
"unbonding-amount": "Unbonding: {amount}",
"undelegate": "Undelegate",
"unsupported-network-message": "Your current action cannot be performed as the application is connected to an unsupported network. Please select one of the supported networks from the list below to proceed.",
"unsupported-network-title": "Unsupported <br /> Network",
"utils": "Utils",
"version": "version: ",
"vested-amount": "Vested: {amount}",
"vote-option-abstain": "Abstain",
"vote-option-no": "No",
"vote-option-no-with-veto": "No with veto",
"vote-option-yes": "Yes",
"voting": "Voting",
"voting-end": "Voting end",
"voting-power": "Voting power",
"voting-results": "Voting results",
"voting-start": "Voting Start",
"voting-status": "Voting status",
"wallet-connect": "WalletConnect",
"warning": "Warning",
"you-deposited": "You Deposited: <span>{amount}</span>",
"you-voted": "You voted:"
}
19 changes: 19 additions & 0 deletions apps/shell/messages/common/ru.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"address": "Адрес",
"balance": "Баланс",
"cancel-button": "Отмена",
"click-to-copy-value": "Нажмите, чтобы скопировать {value}",
"connect-wallet-button": "Подключить кошелек",
"copied": "Скопировано!",
"description": "Описание",
"disconnect": "Отключить",
"min-amount-to-claim-rewards": "Минимальная сумма для получения вознаграждения составляет {amount} ISLM",
"my-balance": "Мой баланс",
"my-delegations": "Мои делегации",
"nothing-found": "Ничего не найдено",
"page-not-found": "Страница не найдена",
"rewards": "Награды",
"send-button": "Отправить",
"status": "Статус",
"try-again": "Попробуйте еще раз"
}
3 changes: 0 additions & 3 deletions apps/shell/messages/en.json

This file was deleted.

11 changes: 11 additions & 0 deletions apps/shell/messages/faucet/en.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"claim-tokens" : "Claim tokens",
"faucet" : "Faucet",
"github" : "Github",
"login-github" : "Login with github",
"next-token-request-available" : "Next request tokens available after",
"request-tokens" : "Request tokens",
"switch-chain" : "Switch to {chain}",
"tokens-claimed" : "Tokens claimed",
"wallet" : "Wallet"
}
6 changes: 6 additions & 0 deletions apps/shell/messages/faucet/ru.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"faucet": "Кран",
"login-github": "Войти через github",
"request-tokens": "Запросить токены",
"switch-chain": "Переключиться на {chain}"
}
30 changes: 30 additions & 0 deletions apps/shell/messages/governance/en.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"cast-vote": "Cast your vote",
"change-vote-message": "You can change your vote while the voting is in progress",
"created-at": "Created at (GMT)",
"dates": "Dates",
"deposit-end-gmt": "Deposit end (GMT)",
"enter-deposit-message": "Enter the amount you want to deposit",
"fetching-proposal-details": "Fetching proposal details",
"parameter-changes": "Parameter changes",
"proposal-deposit-alert": "If the proposal does not collect the required number of deposits in a certain time, it will reject",
"proposal-types": {
"cancel-software-upgrade": "Cancel software upgrade",
"client-update": "Client update",
"parameter-change": "Parameter change",
"register-coin": "Register coin",
"register-erc20": "Register ERC20",
"software-upgrade": "Software upgrade",
"text": "Text"
},
"quorum": "Quorum",
"show-all-dates": "Show all dates",
"turnout": "Turnout",
"upgrade-plan": "Upgrade plan",
"vote-end": "Vote end (GMT)",
"vote-fail-error": "For some reason your vote failed.",
"vote-in-progress": "Vote in progress",
"vote-start": "Vote start (GMT)",
"vote-will-count": "Your vote will be counted!!!",
"your-balance": "Your balance: {balance} {symbol}"
}
5 changes: 5 additions & 0 deletions apps/shell/messages/governance/ru.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"vote-in-progress": "Голосование в процессе",
"vote-will-count": "Ваш голос будет учтен!!!",
"your-balance": "Ваш баланс: {balance} {symbol}"
}
3 changes: 0 additions & 3 deletions apps/shell/messages/id.json

This file was deleted.

19 changes: 19 additions & 0 deletions apps/shell/messages/main/en.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"accounts" : "Accounts",
"active-out-of-total" : "{active} <span>out of {total}</span>",
"active-validators" : "Active validators",
"available-for-stake" : "Available: {amount}",
"available-staking" : "Available for staking",
"fetching-validators" : "Fetching validators list",
"latest-proposals" : "Latest proposals",
"link-to-governance" : "Go to Governance",
"link-to-staking" : "Go to Staking",
"liquid-staked" : "Liquid staked",
"locked" : "Locked: {amount}",
"no-delegations" : "You don't have any active delegations",
"regular-staked" : "Regular staked",
"shell-title" : "Shell",
"staking-balance-popup-message" : "In regular staking you can use coins in liquid staking",
"total-staked" : "Total staked",
"total-supply" : "Total supply"
}
59 changes: 59 additions & 0 deletions apps/shell/messages/staking/en.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
{
"amount-error-more-than-delegation": "More than your delegation",
"annualized-yield": "Annual percentage yield",
"apy": "APY",
"attention-withdrawal-warning": "{count, plural, other {Attention! If in the future you want to withdraw the staked funds, it will take {count} days}}",
"commission": "Commission",
"confirm-redelegation": "Confirm redelegation",
"confirm-undelegation": "Confirm undelegation",
"current": "Current",
"delegation-declined": "Delegation declined",
"delegation-progress": "Delegation in progress",
"delegation-success": "Delegation successful",
"email": "E-mail",
"estimated-fee": "Estimated fee",
"explorer-link": "Explorer link",
"fee-asc": "By fee (a-z)",
"fee-desc": "By fee (z-a)",
"fetching-validators-message": "Fetching validators list",
"funds-undelegated-in-days": "{count, plural, one {The funds will be undelegated within # day} other {The funds will be undelegated within # days}}",
"get-my-rewards": "Get my rewards",
"get-rewards": "Get rewards",
"liquid-staking": "Liquid staking",
"max": "Max",
"max-change": "Max Change",
"memo-placeholder": "Add your memo",
"my-delegation": "My delegation",
"my-rewards": "My rewards",
"my-stake": "My stake",
"name-asc": "By name (a-z)",
"name-desc": "By name (z-a)",
"nothing-found": "Nothing found",
"power-asc": "By power (a-z)",
"power-desc": "By power (z-a)",
"random": "Random",
"redelegate-amount": "Redelegation amount",
"redelegate-progress": "Redelegate in progress",
"redelegate-success": "Redelegation successful",
"regular-staking": "Regular staking",
"reward": "Reward",
"rewards-claim-in-progress": "Rewards claim in progress",
"rewards-claimed": "Rewards claimed",
"rewards-progress": "Rewards claim in progress",
"select-new-validator": "Select new validator",
"show-inactive": "Show inactive",
"sort-by": "Sorting by",
"stISLM-in-ISLM": "stISLM in ISLM",
"stride-address-required": "Stride address is required to delegate",
"undelegate-process": "Undelegate in process",
"undelegation-declined": "Undelegation declined",
"undelegation-progress": "Undelegation in progress",
"undelegation-success": "Undelegation successful",
"use-stride-address-placeholder": "Use your Stride address here",
"validator": "Validator",
"validator-inactive-warning": "While the validator is inactive, you will not be able to receive a reward.",
"validator-info-loading": "Fetching validator information",
"validators": "Validators",
"website": "Website",
"you-will-get": "What you'll get:"
}
11 changes: 11 additions & 0 deletions apps/shell/messages/staking/ru.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"commission": "Комиссия",
"delegation-success": "Делегация прошла успешно",
"my-rewards": "Мои награды",
"stISLM-in-ISLM": "stISLM в ISLM",
"validator": "Валидатор",
"validator-info-loading": "Получение информации о валидаторе",
"validators": "Валидаторы",
"website": "Веб-сайт",
"you-will-get": "Что вы получите:"
}
3 changes: 0 additions & 3 deletions apps/shell/messages/tr.json

This file was deleted.

Loading