Giter VIP home page Giter VIP logo

office-tool-docs's Introduction

Office Tool Plus Documentation

Office Tool Plus repository: Office Tool

Help with translation

git clone https://github.com/YerongAI/Office-Tool-docs.git

cd Office-Tool-docs

yarn install

# Init local website.
yarn docs:dev

How to translate?

Make a folder and named to your culture, like de-de.

In the docs folder, copy activate, deploy, others and start folders to the new folder, copy README.md too.

Then translate all the .md files to your language.

Configure components

For more information, see Internationalization.

Go to docs -> .vuepress folder, open config.js, configure locales like that:

// The key is the path for the locale to be nested under.
'/de-de/': {
    lang: 'de-DE', // this will be set as the lang attribute on <html>
    title: 'Office Tool Plus Docs', // Translate it.
    description: 'Office Tool Plus documentation.' // Translate it.
}

Change themeConfig -> locales like that:

'/de-de/': {
    selectText: 'Languages', // Translate it.
    label: 'English', // Set to your language.
    editLinkText: 'Edit this page on GitHub', // Translate it.
    serviceWorker: {
        updatePopup: {
            message: "New content is available.", // Translate it.
            buttonText: "Refresh" // Translate it.
        }
    },
    nav: [
        // Remember to set the culture (ll-cc), and translate the text attributes.
        { text: 'Start', link: '/de-de/start/' },
        { text: 'Deploy', link: '/de-de/deploy/' },
        { text: 'Activate', link: '/de-de/activate/' },
        { text: 'More', link: '/de-de/others/toolbox' },
        { text: 'Blog (Chinese)', link: 'https://www.coolhub.top' },
        {
            text: 'Group', items: [
                { text: 'Telegram', link: 'https://otp.landian.vip/grouplink/telegram.html' }
            ]
        }
    ],
    sidebar: {
        // Remember to set the culture (ll-cc).
        '/de-de/start/': [
            '',
            'download',
            'requirement'
        ],
        '/de-de/deploy/': [
            '',
            'deploy',
            'create-iso',
            'faq'
        ],
        '/de-de/activate/': [
            '',
            'faq'
        ],
        '/de-de/others/': [
            'toolbox',
            'converter',
            ''
        ],
        '/de-de/': [
            ''
        ]
    }
},

office-tool-docs's People

Contributors

chiyi4488 avatar humenth avatar williamli0623 avatar yerongai avatar

Stargazers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.