solana-foundation / developer-content

Collection of Developer content for exploring, learning, and building in the Solana ecosystem.
https://solana.com/developers
94 stars 136 forks source link

[i18n] remove i18n prefixes on `record._raw` #149

Closed nickfrosty closed 5 months ago

nickfrosty commented 5 months ago

Problem

the "edit on github" buttons on locale specific pages use an invalid link due to contentlayer including the i18n locale prefix in _raw.sourceFilePath

Summary of Changes

strip out the i18n prefix from the record._raw attributes since all github files are only in the base language of english (and therefore do not have this prefix)