How to use the docusaurus/lib/server/translate.js.translate function in docusaurus

To help you get started, we’ve selected a few docusaurus examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github verdaccio / website / website / pages / en / help-with-translations.js View on Github external
/**
 * Copyright (c) 2017-present, Facebook, Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */

const React = require('react');

const CompLibrary = require('docusaurus/lib/core/CompLibrary.js');
const Container = CompLibrary.Container;
const GridBlock = CompLibrary.GridBlock;

const translate = require('docusaurus/lib/server/translate.js').translate;

const siteConfig = require(process.cwd() + '/siteConfig.js');

class Help extends React.Component {
  render() {
    const supportLinks = [
      {
        content: (
          
            Learn more using the [documentation on this
            site.](/docs/en/installation.html)
          
        ),
        title: Browse Docs,
      },
      {
github verdaccio / website / website / pages / en / help.js View on Github external
/**
 * Copyright (c) 2017-present, Facebook, Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */

const React = require('react');

const translate = require("docusaurus/lib/server/translate.js").translate;
const CompLibrary = require('docusaurus/lib/core/CompLibrary.js');
const Container = CompLibrary.Container;
const GridBlock = CompLibrary.GridBlock;

const siteConfig = require(process.cwd() + '/siteConfig.js');

class Help extends React.Component {
  render() {
    const supportLinks = [
      {
        content:
          Learn more about Verdaccio using the [documentation on this site.](/docs/en/installation.html),
        title: Browse Docs,
      },
      {
        content: You can follow and contact us on + ' [Twitter](https://twitter.com/verdaccio_npm).',
github verdaccio / website / website / pages / en / index.js View on Github external
const React = require('react');

const CompLibrary = require('docusaurus/lib/core/CompLibrary.js');
const translate = require("docusaurus/lib/server/translate.js").translate;
const translation = require('docusaurus/lib/server/translation.js');
const Container = CompLibrary.Container;
const GridBlock = CompLibrary.GridBlock;

const siteConfig = require(process.cwd() + '/siteConfig.js');

const createShowcase = (userList) => {
  return userList
    .filter((user) => {
      if (user.pinned) {
        return user;
      }
    })
    .map((user, i) => {
    return (
      <a rel="noopener" href="{user.infoLink}"></a>
github verdaccio / website / website / pages / en / users.js View on Github external
const React = require('react');
const CompLibrary = require('docusaurus/lib/core/CompLibrary.js');
const Container = CompLibrary.Container;
const translate = require("docusaurus/lib/server/translate.js").translate;

const siteConfig = require(process.cwd() + '/siteConfig.js');

const createShowcase = (userList) =&gt; {
  return userList.map((user, i) =&gt; {
    return (
      <a rel="noopener" href="{user.infoLink}">
        <img title="{user.caption}" alt="{user.caption}" src="{siteConfig.baseUrl">
      </a>
    );
  });
}
class Users extends React.Component {
  render() {

    return (

docusaurus

Easy to Maintain Open Source Documentation Websites

MIT
Latest version published 4 years ago

Package Health Score

72 / 100
Full package analysis