Moved to https://source.joinmastodon.org/mastodon/joinmastodon
Eugen Rochko ec3acb7cf5 Update sponsors | vor 11 Monaten | |
---|---|---|
.github | vor 1 Jahr | |
components | vor 1 Jahr | |
data | vor 11 Monaten | |
locales | vor 1 Jahr | |
pages | vor 1 Jahr | |
public | vor 1 Jahr | |
styles | vor 1 Jahr | |
types | vor 1 Jahr | |
utils | vor 1 Jahr | |
.dockerignore | vor 1 Jahr | |
.editorconfig | vor 2 Jahren | |
.eslintrc.json | vor 2 Jahren | |
.gitignore | vor 1 Jahr | |
.nvmrc | vor 1 Jahr | |
.prettierignore | vor 2 Jahren | |
.prettierrc | vor 1 Jahr | |
CONTRIBUTING.md | vor 1 Jahr | |
Dockerfile | vor 1 Jahr | |
README.md | vor 1 Jahr | |
crowdin.yml | vor 1 Jahr | |
linear.mjs | vor 1 Jahr | |
next-env.d.ts | vor 2 Jahren | |
next.config.js | vor 1 Jahr | |
package.json | vor 1 Jahr | |
patreon.mjs | vor 1 Jahr | |
postcss.config.js | vor 2 Jahren | |
tailwind.config.js | vor 1 Jahr | |
tsconfig.json | vor 2 Jahren | |
yarn.lock | vor 1 Jahr |
Informational site for the Mastodon project
Submit translations here: https://crowdin.com/project/joinmastodon
To build the site, you'll need to have Node.js version 16 installed, which you can download from their website or install via tools like fnm
or nvm
. For dependency management, yarn
is used, it should be automatically be installed when you install Node.js, if it's not available you can use corepack enable
and corepack prepare yarn@1
to install it.
yarn
yarn run dev
See /package.json
for more scripts.
See CONTRIBUTING for more information. All interactions with this and other repositories that are part of the Mastodon project are subject to the Mastodon Code of Conduct.
Submit translations at Crowdin.
Translations are managed via Crowdin and distributed with react-intl. The basic translation workflow is:
<FormattedMessage>
componentlocales/en.json
by running yarn extract
locales/en.json
) are made available for translation for other languages. Any new translated messages are downloaded back to the repo into corresponding locale files (e.g. locales/es.json
).getStaticProps()
(example).Localized versions of each page are hosted at dedicated URLs, making it easier for web crawling in users' preferred language. (docs)
Raster images should be added at the maximum resolution they'll be displayed at. If art direction is not required, mobile images will be generated automatically. (docs)
Next.js should be hosted using a Node.js server. (see instructions). While it absolutely can exported to static HTML,
are the primary benefits of a Node.js server for this project.
For now, Node 16 LTS is recommended for building the site until support for Node 18 is provided by Squoosh.