1.0.0 • Published 5 years ago

gitbook-plugin-i18n-revised v1.0.0

Weekly downloads
1
License
Apache-2.0
Repository
github
Last release
5 years ago

plugin-i18n

This plugin adds i18n buttons in the GitBook website toolbar to implement i18n according different url.

Use this plugin

add a book.json configuration to use this plugin:

{
    plugins: ["i18n"]
}

Configuration

This plugin can be configured in the book.json:

configuration is:

{
    "pluginsConfig": {
        "i18n": {
            "all": [
                "english", "chinese"
            ],
            "ChineseUrl": "../zh-CN",
            "EnglishUrl": "../en-US"
        }
    }
}