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

Add Nigerian Pidgin to supported languages #10254

Merged
merged 4 commits into from
May 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
8 changes: 8 additions & 0 deletions i18n/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,14 @@
"langDir": "ltr",
"dateFormat": "MM/DD/YYYY"
},
{
"code": "pcm",
"hrefLang": "pcm",
"name": "Nigerian Pidgin",
"localName": "Nigerian Pidgin",
"langDir": "ltr",
"dateFormat": "DD/MM/YYYY"
},
{
"code": "ph",
"hrefLang": "fil",
Expand Down
1 change: 1 addition & 0 deletions src/intl/en/page-languages.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
"language-ms": "Malay",
"language-nb": "Norwegian",
"language-nl": "Dutch",
"language-pcm": "Nigerian Pidgin",
"language-ph": "Filipino",
"language-pl": "Polish",
"language-pt": "Portuguese",
Expand Down
204 changes: 204 additions & 0 deletions src/intl/pcm/common.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,204 @@
{
"account-abstraction": "Account abstraction",
"about-ethereum-org": "Abaut ethereum.org",
"about-us": "Abaut us",
"aria-toggle-search-button": "Press the search button",
"aria-toggle-menu-button": "Press menu button",
"zen-mode": "Zen mode",
"beacon-chain": "Beacon Chain",
"bridges": "Blockchain bridges",
"clear": "Clear",
"close": "Close",
"community": "Community",
"community-hub": "Community hub",
"community-menu": "Community menu",
"contact": "Contact",
"content-standardization": "Content standardization",
"contributing": "Contibute",
"contributors": "Contributors",
"contributors-thanks": "Everybody wey don coontribute to this page -- thank you!",
"cookie-policy": "Cookie policy",
"copied": "Copied",
"copy": "Copy",
"danksharding": "Danksharding",
"dark-mode": "Dark",
"data-provided-by": "Data source:",
"decentralized-applications-dapps": "Decentralized applications (dapps)",
"decentralized-science": "Decentralized science (DeSci)",
"devcon": "Devcon",
"developers": "Developers",
"developers-home": "Developers haus",
"docs": "Docs",
"docsearch-to-select": "To shuse",
"docsearch-to-navigate": "To dey navigat",
"docsearch-to-close": "To klose",
"docsearch-search-by": "Make yu search by",
"docsearch-start-recent-searches-title": "Risent",
"docsearch-start-no-recent-searches": "Nor risent searsh dey",
"docsearch-start-save-recent-search": "Make yu save dis searsh",
"docsearch-start-remove-recent-search": "Make yu komot dis search from history",
"docsearch-start-favorite-searches": "Favorit",
"docsearch-start-remove-favorite-search": "Make yu komot dis search from favorit",
"docsearch-no-results-text": "Nor rizut for",
"docsearch-no-results-suggested-query": "Try to dey search for",
"docsearch-no-results-missing": "Biliv dis kwery supose riturn rizuts?",
"docsearch-no-results-missing-link": "Make wi sabi.",
"docsearch-error-title": "Im nor fit find rizuts",
"docsearch-error-help": "Yu fit wont shek yor netwok koneshon.",
"documentation": "Documentation",
"down": "Down",
"ecosystem": "Ecosystem",
"edit-page": "Edit page",
"ef-blog": "Ethereum Foundation Blog",
"eips": "Ethereum improvement proposals",
"energy-consumption": "Ethereum energy consumption",
"enterprise": "Enterprise",
"enterprise-menu": "Enterprise menu",
"esp": "Ecosystem Support programme",
"eth-current-price": "Current ETH price (USD)",
"ethereum-bug-bounty": "Ethereum bug bounty program",
"consensus-when-shipping": "When e go ship?",
"ethereum-upgrades": "Ethereum upgrades",
"ethereum-brand-assets": "Ethereum brand assets",
"ethereum-online": "Communities wey dey online",
"ethereum-events": "Ethereum events",
"ethereum-foundation": "Ethereum Foundation",
"ethereum-foundation-logo": "Ethereum foundation logo",
"ethereum-glossary": "Ethereum glossary",
"ethereum-governance": "Ethereum governance",
"ethereum-logo": "Ethereum logo",
"ethereum-security": "Ethereum security and scam prevention",
"ethereum-support": "Ethereum support",
"ethereum-wallets": "Ethereum wallets",
"ethereum-whitepaper": "Ethereum whitepaper",
"feedback-widget-prompt": "Shey this page dey helpful?",
"feedback-card-prompt-page": "Shey this page dey helpful?",
"feedback-card-prompt-article": "Shey this article dey helpful?",
"feedback-card-prompt-tutorial": "Shey this tutorial dey helpful?",
"feedback-widget-thank-you-title": "Thank you for wetin you tell us!",
"feedback-widget-thank-you-subtitle": "Answer some questions make you make this page better.",
"feedback-widget-thank-you-subtitle-ext": "If you need any help, you fit reach out to the community on top our <a href=\"https://discord.gg/rZz26QWfCg\" target=\"_blank\">Discord</a>.",
"feedback-widget-thank-you-timing": "2-3 min",
"feedback-widget-thank-you-cta": "Open short survey",
"find-wallet": "Find wallet",
"future-proofing": "Future-proofing",
"get-eth": "Get ETH",
"get-involved": "Put hand",
"get-started": "Oya start",
"grants": "Grants",
"grant-programs": "Ecosystem Grant programs",
"guides-and-resources": "Community guides and resources",
"guides": "Guides",
"guides-hub": "Guides hub",
"history-of-ethereum": "Ethereum history",
"home": "Haus",
"how-ethereum-works": "The way wey ethereum dey work",
"how-to-register-an-ethereum-account": "How you fit register ethereum account",
"how-to-revoke-token-access": "How you fit revoke smart contract wey get access to your crypto funds",
"how-to-swap-tokens": "How you fit take swap tokens",
"how-to-use-a-bridge": "How you fit bridge tokens to layer2",
"how-to-use-a-wallet": "How to dey use wallet",
"image": "picture",
"in-this-section": "For this part",
"individuals": "Person",
"jobs": "Jobs",
"kraken-logo": "Kraken logo",
"language-resources": "Language resources",
"language-support": "Language support",
"languages": "Languages",
"last-24-hrs": "Last 24 hours",
"last-edit": "Last edit",
"layer-2": "Layer 2",
"learn": "Learn",
"learn-by-coding": "Learn by coding",
"learn-hub": "Learn Hub",
"learn-menu": "Learn menu",
"learn-more": "Learn more",
"less": "Less",
"light-mode": "Light",
"listing-policy-disclaimer": "All the product wey dey this page no be official endorsements and na based on infomation purpose we post am. If you wan add product or give us feedback on top the matter, raise the issue for Github.",
"loading": "Loading...",
"loading-error": "Loading error.",
"loading-error-refresh": "Error, abeg refresh.",
"logo": "logo",
"mainnet-ethereum": "Ethereum mainnet",
"more": "More",
"nav-developers": "Developers",
"nav-developers-docs": "Developers docs",
"nav-primary": "Primary",
"nfts": "NFTs",
"no": "No",
"on-this-page": "On this page",
"open-research": "Open research",
"page-last-updated": "Last time wey dem update this page",
"pbs": "Proposer-builder seperation",
"privacy-policy": "Privacy policy",
"private-ethereum": "Private ethereum",
"refresh": "Abeg refresh this page.",
"return-home": "go haus back",
"roadmap": "Ethereum roadmap",
"run-a-node": "Run node",
"rollup-component-website": "Website",
"rollup-component-developer-docs": "Developer docs",
"rollup-component-technology-and-risk-summary": "Technology and risk summary",
"scaling": "Scaling",
"search": "Search",
"search-ethereum-org": "Make yu search ethereum.org",
"secret-leader-election": "Secret leader election",
"search-box-blank-state-text": "Search away!",
"search-eth-address": "E be like ethereum address. We no dey provide info to address. try find am on top block explorer",
"search-no-results": "No result for wetin you dey find",
"single-slot-finality": "Single slot finality",
"statelessness": "Statelessness",
"see-contributors": "See contributors",
"set-up-local-env": "Set up your local level",
"sharding": "Sharding",
"show-all": "Show me eveything",
"show-less": "Show me small",
"site-description": "Ethereum na global decentralized platform for money and new applications. for ethereum, you fit write code wey dey control money, build applications wey everybody for this life for anywhere fit use.",
"site-title": "ethereum.org",
"skip-to-main-content": "Skip go main content",
"smart-contracts": "Smart contracts",
"stablecoins": "Stablecoins",
"stake-eth": "Stake ETH",
"staking": "Staking",
"style-guide": "Style guide",
"solo": "Solo Staking",
"saas": "Staking as a service",
"pools": "Pooled staking",
"withdrawals": "Staking withdrawals",
"terms-of-use": "Terms of use",
"translation-banner-body-new": "You dey look this page for English because we never finish to translate am yet. help us translate this content.",
"translation-banner-body-update": "New version of this page don dey but na only for English. Help us translate the latest one.",
"translation-banner-button-see-english": "See english",
"translation-banner-button-translate-page": "Translate page",
"translation-banner-title-new": "Help us translate this page",
"translation-banner-title-update": "Help us update this page",
"translation-banner-no-bugs-title": "No bugs for here!",
"translation-banner-no-bugs-content": "We no translate this page as we purposely leave am for english.",
"translation-banner-no-bugs-dont-show-again": "No show am again",
"try-using-search": "Try use the search take find wetin you dey find",
"tutorials": "Tutorials",
"up": "Up",
"use-ethereum": "Use Ethreum",
"use-ethereum-menu": "Use ethereum menu",
"user-experience": "User experience",
"verkle-trees": "Verkle trees",
"wallets": "Wallets",
"we-couldnt-find-that-page": "We no fit find that page",
"web3": "Wetin be web3?",
"web3-title": "Web3",
"website-last-updated": "Website last update",
"what-is-ether": "Wetin be ether (ETH)?",
"what-is-ethereum": "What is Ethereum?",
"defi-page": "Decentralied finance (Defi)",
"dao-page": "Decentralized autonomous organisations (DAOs)",
"nft-page": "Non-fungible tokens (NFTs)",
"decentralized-social-networks": "Decentralized social networks",
"decentralized-identity": "Decentralized identity",
"yes": "Yes",
"zero-knowledge-proofs": "Zero-knowledge proofs",
"ethereum-roadmap": "Ethereum roadmap",
"page-index-meta-title": "Home",
"page-developers-aria-label": "Developers' Menu"
}
77 changes: 77 additions & 0 deletions src/intl/pcm/page-index.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
{
"page-index-hero-image-alt": "Show of one city for fushure, wey dey reprisent ecosystem for Ethereum.",
"page-index-meta-description": "Ethereum na global decentralized platform for money and new new application. On this ethereum, you fit write code wey dey control money, and build different applications wey everybody for this world fit use.",
"page-index-meta-title": "Haus",
"page-index-title": "Welkom to Ethereum",
"page-index-description": "Ethereum na di komunity-run technology wey dey ginger cryptocurrency ether (ETH) and plenty applications wey dem decentralize.",
"page-index-title-button": "Play with Ethereum",
"page-index-get-started": "Oya start",
"page-index-get-started-description": "ethereum.org na yor portal wey dey take yu enta Ethereum world. Di tech dey new and dey always evolve - im dey helep show pipol way. Dis na wetin we rekomend make yu do if yu wont enta am.",
"page-index-get-started-image-alt": "Wetin dey show pesin wey dey work for computer.",
"page-index-get-started-wallet-title": "Make yu pick one wallet",
"page-index-get-started-wallet-description": "Wallet dey alow yu konet to Ethereum and dey manaj yor funds.",
"page-index-get-started-wallet-image-alt": "Wetin dey show robot with vault for body, wey dey reprisent one Ethereum wallet.",
"page-index-get-started-eth-title": "Oya ETH",
"page-index-get-started-eth-description": "ETH na di kurrency for Ethereum – yu fit yus am for aplikashons.",
"page-index-get-started-eth-image-alt": "Wetin dey show one group of pipol wey dey look ether (ETH) glyph with surprise.",
"page-index-get-started-dapps-title": "Yus one dapp",
"page-index-get-started-dapps-description": "Dapps na aplikashons wey dey run Ethereum. Si wetin you fit do.",
"page-index-get-started-dapps-image-alt": "Wi dey show one doge wey dey yus komputer.",
"page-index-get-started-devs-title": "Start to dey build",
"page-index-get-started-devs-description": "If yu wont start to dey code with Ethereum, wi don dokumentashon, tutorials and oda tins for awa divelopa portal.",
"page-index-get-started-devs-image-alt": "Wi dey show one hand wey dey kreat one ETH logo wey dem make with lego bricks.",
"page-index-what-is-ethereum": "What is Ethereum?",
"page-index-what-is-ethereum-description": "Ethereum na di technology wey be haus for digital money, world payments, and aplikashons. Di komunity don build betta digital ekonomy, bold new ways for kreator to dey make money online, and many more. Im open to evryone, anywia yu dey for di world - all yu need na internet.",
"page-index-what-is-ethereum-button": "What is Ethereum?",
"page-index-what-is-ethereum-secondary-button": "Plenty on digital money",
"page-index-what-is-ethereum-image-alt": "Wi dey show pesin wey dey look inside bazaar, wey supose reprisent Ethereum.",
"page-index-defi": "Financial system wey dey okay",
"page-index-defi-description": "Today, plenty pipol nor fit open bank akants, oda pipol don block oda pipol money. Ethereum decentralized finance (DeFi) system neva sleep abi do pashia. With one internet koneshon, yu fit send, kollet, borrow, chop betta interest, and even dey kollet money from anywia for dis life.",
"page-index-defi-button": "Explore DeFi",
"page-index-defi-image-alt": "Wi dey show hands wey dey give ETH symbol.",
"page-index-internet": "Internet wey open for evrybody",
"page-index-internet-description": "Today, wi gain access to 'fri' internet savis if wi surenda awa pesina data. Ethereum savis dey open to evrybody - yu just need one wallet. Dis na fri and izy way to set up, wey yu dey kontrol, and dey work without any pesina info.",
"page-index-internet-button": "Make yu yus di open internet",
"page-index-internet-secondary-button": "More about wallets",
"page-index-internet-image-alt": "Wi dey show one fushure komputer set up, wey Ethereum crystals dey run.",
"page-index-developers": "One new frontia for divelopment",
"page-index-developers-description": "Ethereum and im apps dey klear and dey open sourse. Yu fit fork code and yus di funshonality wey odas don already build. If yu nor wont learn new language yu fit just mix with open source code with Javascript and oda languages wey dey exist.",
"page-index-developers-button": "Diveloper portal",
"page-index-developers-code-examples": "Code eksampols",
"page-index-developers-code-example-title-0": "Yor own bank",
"page-index-developers-code-example-description-0": "You fit build bank wey dey run by logik wey yu don program.",
"page-index-developers-code-example-title-1": "Yor own kurrency",
"page-index-developers-code-example-description-1": "Yu fit kreat tokens wey you fit transfa and dey yus akross aplikashons.",
"page-index-developers-code-example-title-2": "Javascript Ethereum wallet",
"page-index-developers-code-example-description-2": "Yu fit yus di language wey exist to mix with Ethereum and oda aplikashons.",
"page-index-developers-code-example-title-3": "Open, pamishonless DNS",
"page-index-developers-code-example-description-3": "You fit imajin di savis wey wey dey exist again as decentralize, open aplikashons.",
"page-index-network-stats-title": "Ethereum today",
"page-index-network-stats-subtitle": "Di latest netwok statistics",
"page-index-network-stats-eth-price-description": "ETH price (USD)",
"page-index-network-stats-eth-price-explainer": "Di lastest price for 1 ether. Yu fit buy as small as 0.000000000000000001 - yu nor need buy di komplete 1 ETH.",
"page-index-network-stats-tx-day-description": "Today transactions",
"page-index-network-stats-tx-day-explainer": "Di numba of transashons wey dem don succesfully process for di network for di past 24 hours.",
"page-index-network-stats-value-defi-description": "Value wey dem lock inside DeFi (USD)",
"page-index-network-stats-value-defi-explainer": "Di money for decentralized finance (Defi) aplikashons, di Ethereum digital ekonomy.",
"page-index-network-stats-nodes-description": "Nodes",
"page-index-network-stats-nodes-explainer": "Na plenty Volunteers around di world dey run Ethereum, wi dem dey koll nodes.",
"page-index-touts-header": "Find ethereum.org",
"page-index-contribution-banner-title": "Contribute to ethereum.org",
"page-index-contribution-banner-description": "The website na open source with hundreds of community contributors. Yu fit propose edits to any of di kontent for dis site, wey sujest new tin abi helep us fix some yama-yama bugs.",
"page-index-contribution-banner-image-alt": "Ethereum logo wey dem yus lego bricks do.",
"page-index-contribution-banner-button": "More story if you wan contribute",
"page-index-tout-upgrades-title": "Upgrade weti you know",
"page-index-tout-upgrades-description": "The Ethereum roadmap get upgrades wey dey together so the network go fit dey more secure, sustainable and e fit fly.",
"page-index-tout-upgrades-image-alt": "We dey show how the spaceship go be with more power when Ethereum don upgrade.",
"page-index-tout-enterprise-title": "Ethereum for big big projects",
"page-index-tout-enterprise-description": "See how Ethereum fit take open new business models, help you reduce small cost for your business.",
"page-index-tout-enterprise-image-alt": "We dey show computer we dey come in the future.",
"page-index-tout-community-title": "The Ethereum community",
"page-index-tout-community-description": "Ethereum na about the community. Na different people from different places and interest dey threre. see how you fit join.",
"page-index-tout-community-image-alt": "We dey show different group of people wey dey work together.",
"page-index-nft": "Internet with different assets",
"page-index-nft-description": "Ethereum no be just for digital money oo. you fit trade anything wey you get if you put am as (NFTs). you fit turn your work to tokens and get money when dem resell am. Different things dey happen all the time.",
"page-index-nft-button": "More tori about NFTs",
"page-index-nft-alt": "Eth logo wey we dey use hologram show."
}
1 change: 1 addition & 0 deletions src/scripts/crowdin-import.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ const USER_SELECTION: UserSelectionObject = {
mr: [],
nb: [],
nl: [],
pcm: [],
ph: [],
pl: [],
pt: [],
Expand Down
16 changes: 8 additions & 8 deletions src/scripts/markdownChecker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,14 +80,14 @@ function sortMarkdownPathsIntoLanguages(paths: Array<string>): Languages {
}, {})

for (const path of paths) {
const isTranslation = path.includes("/translations/")
const langIndex = path.indexOf("/translations/") + 14
const isFourCharLang = path.includes("pt-br") || path.includes("zh-tw")
const charactersToSlice: number = isFourCharLang ? 5 : 2

const lang = isTranslation
? path.slice(langIndex, langIndex + charactersToSlice)
: "en"
const translationDir = "/translations/"
const isTranslation = path.includes(translationDir)
const langIndex = path.indexOf(translationDir) + translationDir.length

// RegEx to grab the root of the path (e.g. the lang code for translated files)
const regex = /^([^\/]+)\//
const match = path.substring(langIndex).match(regex)
const lang = isTranslation && match && match.length > 1 ? match[1] : "en"

if (LANG_ARG) {
if (LANG_ARG === lang) {
Expand Down
1 change: 1 addition & 0 deletions src/utils/languages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ export type Lang =
| "ms"
| "nl"
| "nb"
| "pcm"
| "ph"
| "pl"
| "pt"
Expand Down