ethereum / ethereum-org-website

Ethereum.org is a primary online resource for the Ethereum community.
https://ethereum.org/
MIT License
5.05k stars 4.81k forks source link

Remove unused translation strings from repo #10003

Closed corwintines closed 5 months ago

corwintines commented 1 year ago

Is your feature request related to a problem? Please describe.

Looking at the output from running the reorg-intl script, there are a lot of unused translations that should be removed from the repo.

Terminal output ethereum-org-website % yarn unused-translations yarn run v1.22.19 $ ts-node -O '{ "module": "commonjs" }' src/scripts/unusedTranslations.ts ============================== analyzing /Users/corwinsmith/Documents/ethereum-org-website/src/intl/en/common.json ... aria-toggle-menu-button key is not being used search-box-blank-state-text key is not being used search-eth-address key is not being used keys not used in this namespace: 3 ============================== analyzing /Users/corwinsmith/Documents/ethereum-org-website/src/intl/en/learn-quizzes.json ... keys not used in this namespace: 0 ============================== analyzing /Users/corwinsmith/Documents/ethereum-org-website/src/intl/en/page-about.json ... page-about-h2 key is not being used page-about-h3 key is not being used page-about-h3-1 key is not being used page-about-h3-2 key is not being used page-about-li-1 key is not being used page-about-li-2 key is not being used page-about-li-3 key is not being used page-about-li-4 key is not being used page-about-link-1 key is not being used page-about-link-2 key is not being used page-about-link-3 key is not being used page-about-link-4 key is not being used page-about-link-5 key is not being used page-about-link-6 key is not being used page-about-link-7 key is not being used page-about-p-1 key is not being used page-about-p-2 key is not being used page-about-p-3 key is not being used page-about-p-4 key is not being used page-about-p-5 key is not being used page-about-p-6 key is not being used page-about-p-7 key is not being used page-about-p-8 key is not being used keys not used in this namespace: 23 ============================== analyzing /Users/corwinsmith/Documents/ethereum-org-website/src/intl/en/page-assets.json ... page-assets-eth-glyph-video-dark key is not being used page-assets-eth-glyph-video-light key is not being used page-assets-hero-particles key is not being used keys not used in this namespace: 3 ============================== analyzing /Users/corwinsmith/Documents/ethereum-org-website/src/intl/en/page-community.json ... keys not used in this namespace: 0 ============================== analyzing /Users/corwinsmith/Documents/ethereum-org-website/src/intl/en/page-contributing-translation-program-acknowledgements.json ... keys not used in this namespace: 0 ============================== analyzing /Users/corwinsmith/Documents/ethereum-org-website/src/intl/en/page-contributing-translation-program-contributors.json ... keys not used in this namespace: 0 ============================== analyzing /Users/corwinsmith/Documents/ethereum-org-website/src/intl/en/page-dapps.json ... page-dapps-get-started-title key is not being used page-dapps-mobile-options-header key is not being used keys not used in this namespace: 2 ============================== analyzing /Users/corwinsmith/Documents/ethereum-org-website/src/intl/en/page-developers-docs.json ... layer-2-metis-note key is not being used keys not used in this namespace: 1 ============================== analyzing /Users/corwinsmith/Documents/ethereum-org-website/src/intl/en/page-developers-index.json ... page-developers-browse-tutorials key is not being used keys not used in this namespace: 1 ============================== analyzing /Users/corwinsmith/Documents/ethereum-org-website/src/intl/en/page-developers-learning-tools.json ... page-learning-tools-studio-description key is not being used page-learning-tools-vyperfun-description key is not being used page-learning-tools-vyperfun-logo-alt key is not being used keys not used in this namespace: 3 ============================== analyzing /Users/corwinsmith/Documents/ethereum-org-website/src/intl/en/page-developers-local-environment.json ... page-local-environment-openZeppelin-desc key is not being used page-local-environment-openZeppelin-logo-alt key is not being used keys not used in this namespace: 2 ============================== analyzing /Users/corwinsmith/Documents/ethereum-org-website/src/intl/en/page-developers-tutorials.json ... page-tutorial-beginner key is not being used page-tutorial-intermediate key is not being used page-tutorial-advanced key is not being used keys not used in this namespace: 3 ============================== analyzing /Users/corwinsmith/Documents/ethereum-org-website/src/intl/en/page-eth.json ... page-eth-ethhub-overview key is not being used page-eth-non-fungible-tokens-link key is not being used page-eth-not-only-crypto-desc-3 key is not being used page-eth-tokens-link key is not being used page-eth-video-alt key is not being used keys not used in this namespace: 5 ============================== analyzing /Users/corwinsmith/Documents/ethereum-org-website/src/intl/en/page-get-eth.json ... keys not used in this namespace: 0 ============================== analyzing /Users/corwinsmith/Documents/ethereum-org-website/src/intl/en/page-history.json ... keys not used in this namespace: 0 ============================== analyzing /Users/corwinsmith/Documents/ethereum-org-website/src/intl/en/page-index.json ... keys not used in this namespace: 0 ============================== analyzing /Users/corwinsmith/Documents/ethereum-org-website/src/intl/en/page-languages.json ... language-ar key is not being used language-az key is not being used language-bg key is not being used language-bn key is not being used language-ca key is not being used language-cs key is not being used language-da key is not being used language-el key is not being used language-en key is not being used language-es key is not being used language-fa key is not being used language-fi key is not being used language-fr key is not being used language-gl key is not being used language-gu key is not being used language-he key is not being used language-hi key is not being used language-hr key is not being used language-hu key is not being used language-id key is not being used language-ig key is not being used language-it key is not being used language-ka key is not being used language-kk key is not being used language-km key is not being used language-ko key is not being used language-lt key is not being used language-ml key is not being used language-mr key is not being used language-ms key is not being used language-nb key is not being used language-nl key is not being used language-ph key is not being used language-pl key is not being used language-pt key is not being used language-pt-br key is not being used language-ro key is not being used language-ru key is not being used language-se key is not being used language-sk key is not being used language-sl key is not being used language-sr key is not being used language-sw key is not being used language-th key is not being used language-ta key is not being used language-tr key is not being used language-uk key is not being used language-ur-in key is not being used language-uz key is not being used language-vi key is not being used language-zh key is not being used language-zh-tw key is not being used keys not used in this namespace: 52 ============================== analyzing /Users/corwinsmith/Documents/ethereum-org-website/src/intl/en/page-layer-2.json ... scaling-layer-1-with-shard-chains key is not being used keys not used in this namespace: 1 ============================== analyzing /Users/corwinsmith/Documents/ethereum-org-website/src/intl/en/page-learn.json ... keys not used in this namespace: 0 ============================== analyzing /Users/corwinsmith/Documents/ethereum-org-website/src/intl/en/page-roadmap-vision.json ... page-roadmap-vision-desc-3 key is not being used page-roadmap-vision-title-3 key is not being used keys not used in this namespace: 2 ============================== analyzing /Users/corwinsmith/Documents/ethereum-org-website/src/intl/en/page-run-a-node.json ... page-run-a-node-getting-started-software-title key is not being used page-run-a-node-glyph-alt-pnp key is not being used page-run-a-node-install-manually-title key is not being used page-run-a-node-install-manually-1 key is not being used keys not used in this namespace: 4 ============================== analyzing /Users/corwinsmith/Documents/ethereum-org-website/src/intl/en/page-stablecoins.json ... page-stablecoins-stablecoins-dapp-description-3 key is not being used page-stablecoins-stablecoins-meta-description key is not being used page-stablecoins-why-stablecoins-body key is not being used keys not used in this namespace: 3 ============================== analyzing /Users/corwinsmith/Documents/ethereum-org-website/src/intl/en/page-staking-deposit-contract.json ... keys not used in this namespace: 0 ============================== analyzing /Users/corwinsmith/Documents/ethereum-org-website/src/intl/en/page-staking.json ... page-staking-launchpad-widget-testnet-label key is not being used page-staking-launchpad-widget-mainnet-label key is not being used page-staking-withdrawals-important-notices key is not being used subscribe-to-ef-blog key is not being used keys not used in this namespace: 4 ============================== analyzing /Users/corwinsmith/Documents/ethereum-org-website/src/intl/en/page-upgrades-get-involved-bug-bounty.json ... page-upgrades-bug-bounty-docking key is not being used keys not used in this namespace: 1 ============================== analyzing /Users/corwinsmith/Documents/ethereum-org-website/src/intl/en/page-upgrades-get-involved.json ... page-upgrades-get-involved-btn-1 key is not being used page-upgrades-get-involved-btn-2 key is not being used page-upgrades-get-involved-btn-3 key is not being used page-upgrades-get-involved-bug-hunting key is not being used page-upgrades-get-involved-bug-hunting-desc key is not being used page-upgrades-get-involved-bug-li key is not being used page-upgrades-get-involved-bug-li-2 key is not being used page-upgrades-get-involved-bug-li-3 key is not being used page-upgrades-get-involved-bug-li-4 key is not being used page-upgrades-get-involved-desc-1 key is not being used page-upgrades-get-involved-desc-2 key is not being used page-upgrades-get-involved-desc-3 key is not being used page-upgrades-get-involved-ethresearch-3 key is not being used page-upgrades-get-involved-ethresearch-4 key is not being used page-upgrades-get-involved-how key is not being used page-upgrades-get-involved-how-desc key is not being used page-upgrades-get-involved-join key is not being used page-upgrades-get-involved-join-desc key is not being used page-upgrades-get-involved-meta-description key is not being used page-upgrades-get-involved-run-clients key is not being used page-upgrades-get-involved-run-clients-desc key is not being used page-upgrades-get-involved-run-clients-desc-link key is not being used page-upgrades-get-involved-run-clients-execution key is not being used page-upgrades-get-involved-run-clients-execution-desc key is not being used page-upgrades-get-involved-run-clients-consensus key is not being used page-upgrades-get-involved-run-clients-consensus-desc key is not being used page-upgrades-get-involved-stake key is not being used page-upgrades-get-involved-stake-desc key is not being used page-upgrades-get-involved-stake-eth key is not being used page-upgrades-get-involved-subtitle key is not being used page-upgrades-get-involved-title-1 key is not being used page-upgrades-get-involved-title-2 key is not being used page-upgrades-get-involved-title-3 key is not being used page-upgrades-get-involved-written-c-sharp key is not being used page-upgrades-get-involved-written-go key is not being used page-upgrades-get-involved-written-java key is not being used page-upgrades-get-involved-written-javascript key is not being used page-upgrades-get-involved-written-nim key is not being used page-upgrades-get-involved-written-rust key is not being used page-upgrades-get-involved-2 key is not being used keys not used in this namespace: 40 ============================== analyzing /Users/corwinsmith/Documents/ethereum-org-website/src/intl/en/page-upgrades-index.json ... consensus-client-besu-logo-alt key is not being used consensus-client-erigon-logo-alt key is not being used consensus-client-geth-logo-alt key is not being used consensus-client-lighthouse-logo-alt key is not being used consensus-client-lodestar-logo-alt key is not being used consensus-client-nethermind-logo-alt key is not being used consensus-client-nimbus-logo-alt key is not being used consensus-client-prysm-logo-alt key is not being used consensus-client-teku-logo-alt key is not being used page-upgrades-answer-1 key is not being used page-upgrades-answer-2 key is not being used page-upgrades-answer-4 key is not being used page-upgrades-beacon-chain-date key is not being used page-upgrades-beacon-chain-desc key is not being used page-upgrades-beacon-chain-estimate key is not being used page-upgrades-beacon-chain-title key is not being used page-upgrades-clients key is not being used page-upgrades-dive key is not being used page-upgrades-dive-desc key is not being used page-upgrades-docking key is not being used page-upgrades-merge-answer-1 key is not being used page-upgrades-merge-desc key is not being used page-upgrades-merge-estimate key is not being used page-upgrades-merge-mainnet key is not being used page-upgrades-eth-blog key is not being used page-upgrades-explore-btn key is not being used page-upgrades-get-involved-2 key is not being used page-upgrades-head-to-ethresearch key is not being used page-upgrades-help key is not being used page-upgrades-help-desc key is not being used page-upgrades-index-staking-desc key is not being used page-upgrades-index-staking-learn-desc key is not being used page-upgrades-index-staking-step-1 key is not being used page-upgrades-index-staking-step-1-btn key is not being used page-upgrades-index-staking-step-1-desc key is not being used page-upgrades-index-staking-step-2 key is not being used page-upgrades-index-staking-step-2-btn key is not being used page-upgrades-index-staking-step-2-desc key is not being used page-upgrades-index-staking-sustainability key is not being used page-upgrades-meta-desc key is not being used page-upgrades-meta-title key is not being used page-upgrades-question-1-title key is not being used page-upgrades-question-1-desc key is not being used page-upgrades-question-2-title key is not being used page-upgrades-question-2-desc key is not being used page-upgrades-question-3-answer-2a key is not being used page-upgrades-question-3-answer-2a-link key is not being used page-upgrades-question-3-answer-2b key is not being used page-upgrades-layer-2-rollups key is not being used page-upgrades-question-3-answer-3-link key is not being used page-upgrades-question-3-desc key is not being used page-upgrades-question-3-title key is not being used page-upgrades-question-4-answer-1 key is not being used page-upgrades-question-4-answer-3 key is not being used page-upgrades-question-4-answer-6 key is not being used page-upgrades-question-4-answer-7 key is not being used page-upgrades-question-4-title key is not being used page-upgrades-question-4-desc key is not being used page-upgrades-question-5-answer-1 key is not being used page-upgrades-question-5-desc key is not being used page-upgrades-question-5-title key is not being used page-upgrades-question-6-answer-3 key is not being used page-upgrades-question-6-answer-4 key is not being used page-upgrades-question-6-answer-5 key is not being used page-upgrades-question-6-title key is not being used page-upgrades-question-6-desc key is not being used page-upgrades-question-6-answer-1 key is not being used page-upgrades-question-6-answer-1-link key is not being used page-upgrades-question-6-answer-2 key is not being used page-upgrades-question-7-desc key is not being used page-upgrades-question-7-lighthouse key is not being used page-upgrades-question-7-lighthouse-lang key is not being used page-upgrades-question-7-lodestar key is not being used page-upgrades-question-7-lodestar-lang key is not being used page-upgrades-question-7-nimbus key is not being used page-upgrades-question-7-nimbus-lang key is not being used page-upgrades-question-7-prysm key is not being used page-upgrades-question-7-prysm-lang key is not being used page-upgrades-question-7-teams key is not being used page-upgrades-question-7-teku key is not being used page-upgrades-question-7-teku-lang key is not being used page-upgrades-question-7-title key is not being used page-upgrades-question-7-clients key is not being used page-upgrades-question-8-answer-1 key is not being used page-upgrades-question-8-answer-2 key is not being used page-upgrades-question-8-answer-3 key is not being used page-upgrades-question-8-answer-4 key is not being used page-upgrades-question-8-answer-6 key is not being used page-upgrades-question-8-desc key is not being used page-upgrades-question-8-title key is not being used page-upgrades-question-9-answer-1 key is not being used page-upgrades-question-9-answer-2 key is not being used page-upgrades-question-9-answer-3 key is not being used page-upgrades-question-9-answer-4 key is not being used page-upgrades-question-9-desc key is not being used page-upgrades-question-9-stake-eth key is not being used page-upgrades-question-9-title key is not being used page-upgrades-question-9-more key is not being used page-upgrades-question-10-title key is not being used page-upgrades-question-10-desc key is not being used page-upgrades-question-10-answer-0 key is not being used page-upgrades-question-10-answer-1 key is not being used page-upgrades-question-10-answer-1-link key is not being used page-upgrades-question-10-answer-2 key is not being used page-upgrades-question-10-answer-3 key is not being used page-upgrades-question-10-answer-5 key is not being used page-upgrades-question-10-answer-6 key is not being used page-upgrades-question-10-answer-7 key is not being used page-upgrades-question-10-answer-8 key is not being used page-upgrades-question-11-title key is not being used page-upgrades-question-11-desc key is not being used page-upgrades-question-11-answer-1 key is not being used page-upgrades-question-11-answer-2 key is not being used page-upgrades-question3-answer-1 key is not being used page-upgrades-scalable key is not being used page-upgrades-scalable-desc key is not being used page-upgrades-secure key is not being used page-upgrades-secure-desc key is not being used page-upgrades-shard-date key is not being used page-upgrades-shard-desc key is not being used page-upgrades-shard-estimate key is not being used page-upgrades-shard-lower key is not being used page-upgrades-shard-title key is not being used page-upgrades-stay-up-to-date key is not being used page-upgrades-stay-up-to-date-desc key is not being used page-upgrades-sustainable-desc key is not being used page-upgrades-take-part key is not being used page-upgrades-take-part-desc key is not being used page-upgrades-the-upgrades key is not being used page-upgrades-the-upgrades-desc key is not being used page-upgrades-unofficial-roadmap key is not being used page-upgrades-upgrade-desc key is not being used page-upgrades-energy-consumption key is not being used page-upgrades-upgrading key is not being used page-roadmap-vision-btn key is not being used page-upgrades-what-happened-to-eth2-title key is not being used page-upgrades-what-happened-to-eth2-1 key is not being used page-upgrades-what-happened-to-eth2-1-more key is not being used page-upgrades-what-happened-to-eth2-2 key is not being used page-upgrades-what-happened-to-eth2-3 key is not being used page-upgrades-what-happened-to-eth2-3-1 key is not being used page-upgrades-what-happened-to-eth2-3-2 key is not being used page-upgrades-what-happened-to-eth2-4 key is not being used page-upgrades-what-happened-to-eth2-5 key is not being used page-upgrades-why-cant-we-just-use-eth2-title key is not being used page-upgrades-why-cant-we-just-use-eth2-mental-models-title key is not being used page-upgrades-why-cant-we-just-use-eth2-mental-models-description key is not being used page-upgrades-why-cant-we-just-use-eth2-inclusivity-title key is not being used page-upgrades-why-cant-we-just-use-eth2-inclusivity-description key is not being used page-upgrades-why-cant-we-just-use-eth2-scam-prevention-title key is not being used page-upgrades-why-cant-we-just-use-eth2-scam-prevention-description key is not being used page-upgrades-why-cant-we-just-use-eth2-staking-clarity-title key is not being used page-upgrades-why-cant-we-just-use-eth2-staking-clarity-description key is not being used page-upgrades-what-to-do key is not being used page-upgrades-what-to-do-desc key is not being used page-upgrades-whats-next key is not being used page-upgrades-whats-next-desc key is not being used page-upgrades-whats-next-history key is not being used page-upgrades-whats-ethereum key is not being used page-upgrades-whats-new key is not being used page-upgrades-security-link key is not being used keys not used in this namespace: 161 ============================== analyzing /Users/corwinsmith/Documents/ethereum-org-website/src/intl/en/page-upgrades.json ... page-upgrades-shards-date key is not being used page-upgrades-pbs key is not being used page-upgrades-shard-title key is not being used consensus-run-beacon-chain key is not being used consensus-run-beacon-chain-desc key is not being used keys not used in this namespace: 5 ============================== analyzing /Users/corwinsmith/Documents/ethereum-org-website/src/intl/en/page-wallets-find-wallet.json ... page-find-wallet-choose-to-compare key is not being used page-stake-eth key is not being used keys not used in this namespace: 2 ============================== analyzing /Users/corwinsmith/Documents/ethereum-org-website/src/intl/en/page-wallets.json ... page-wallets-desc-2-link key is not being used keys not used in this namespace: 1 ============================== analyzing /Users/corwinsmith/Documents/ethereum-org-website/src/intl/en/page-what-is-ethereum.json ... keys not used in this namespace: 0 ============================== analyzing /Users/corwinsmith/Documents/ethereum-org-website/src/intl/en/template-usecase.json ... keys not used in this namespace: 0 total keys not used: 322 ✨ Done in 15.35s.

Describe the solution you'd like

Describe alternatives you've considered

None, these should be removed to save translation costs.

We should consider how to make this a regular part of the PR process so that we are catching this and saving on the translation costs sooner.

Additional context

No response

Would you like to work on this issue?

github-actions[bot] commented 1 year ago

This issue is stale because it has been open 45 days with no activity.