The js-ipfs Project Website.
TODO
You can do it in 2 steps:
In the file intl/config, add a line for your language. Example, if you were to add Portuguese to:
module.exports = {
defaultLocale: 'en',
availableLocales: [
{ acronym: 'en', fullForm: 'English' }
]
}
You would only have to add the new language to the availableLocales array:
module.exports = {
defaultLocale: 'en',
availableLocales: [
{ acronym: 'en', fullForm: 'English' },
{ acronym: 'pt', fullForm: 'Português (PT)' }
]
}
Copy one of the existing translations https://github.com/ipfs/js.ipfs.io/tree/master/intl/messages, rename it to the acronym of your language and then update each value to the correct translation. Example:
cp intl/messages/en.json intl/messages/pt.json
edit intl/messages/pt.json
# Now edit the file directly
When you are finished, submit it as a PR to this repo. Once it gets merged it will be live at js.ipfs.io
TODO