Enable Translations for docusaurus.io (#548)

There are some translations for Spanish for Docusaurus -- not complete, but still a good start to enable for our site.
I figure it is time to enable all the crucial features that the project provides for its main site, huh? 😄
This commit is contained in:
Joel Marcey 2018-04-12 08:10:41 -07:00 committed by GitHub
parent 2779bf3d0f
commit 4f669ccca2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 70 additions and 58 deletions

View file

@ -6,11 +6,10 @@
*/
const React = require('react');
const CompLibrary = require('../../core/CompLibrary.js');
const Container = CompLibrary.Container;
const siteConfig = require(process.cwd() + '/siteConfig.js');
const translate = require("../../server/translate.js").translate;
class Users extends React.Component {
render() {
@ -43,23 +42,25 @@ class Users extends React.Component {
<Container padding={['bottom', 'top']}>
<div className="showcaseSection">
<div className="prose">
<h1>Who is using Docusaurus?</h1>
<h1><translate>Who is using Docusaurus?</translate></h1>
<p>
<translate>
Docusaurus powers some of Facebook's popular{' '}
<a href="https://code.facebook.com/projects/">
open source projects
</a>.
</translate>
</p>
</div>
<div className="logos">{fbShowcase}</div>
<div className="prose">
<p>
Docusaurus is also used by open source projects of all sizes.
<translate>Docusaurus is also used by open source projects of all sizes.</translate>
</p>
</div>
<div className="logos">{showcase}</div>
<div className="prose">
<p>Is your project using Docusaurus?</p>
<p><translate>Is your project using Docusaurus?</translate></p>
<p>
Edit this page with a{' '}
<a href="https://github.com/facebook/docusaurus/edit/master/website/siteConfig.js">