Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
feat(i18n): add japanese translations (#408)
  • Loading branch information
ykzts committed Mar 13, 2021
1 parent d3c4bb1 commit d4034b4
Show file tree
Hide file tree
Showing 12 changed files with 456 additions and 6 deletions.
12 changes: 6 additions & 6 deletions website/docs/installation.md
Expand Up @@ -2,17 +2,17 @@
title: Installation Guide
---

## Using the Docker
## Using the Docker {#using-the-docker}

The Manael recommends running on [Docker](https://www.docker.com/). A Docker image is published on [Docker Hub](https://hub.docker.com/).

Get it with `docker pull manael/manael:latest` command before running the Manael with the Docker. Using the Docker eliminates a need to add unnecessary files to your environment.

## Using a built binary
## Using a built binary {#using-a-built-binary}

You can download the Manael built for 64bit GNU/Linux.

### 1. Create a working directory
### 1. Create a working directory {#1-create-a-working-directory}

First, create a working directory to extract the downloaded file when installing Manael.

Expand All @@ -21,7 +21,7 @@ $ mkdir manael
$ cd manael
```

### 2. Download
### 2. Download {#2-download}

Download the latest version of Manael (`manael_1.x.y_Linux_x86_64.tar.gz`) from [release page](https://github.com/manaelproxy/manael/releases). Then, extract the downloaded file to the directory created in 1.

Expand All @@ -30,15 +30,15 @@ $ wget https://github.com/manaelproxy/manael/releases/download/v1.x.y/manael_1.x
$ tar xf manael_1.x.y_Linux_x86_64.tar.gz
```

### 3. Install
### 3. Install {#3-install}

Use the `install` command to copy the file. You can do the same thing with the `cp` and `mv` commands, but using the `install` command gives the executable the appropriate execution permissions.

```console
$ sudo install manael /usr/local/bin
```

## Build from a source code
## Build from a source code {#build-from-a-source-code}

A source code is hosted on [GitHub](https://github.com/manaelproxy/manael). The Manael is written in [Go](https://golang.org/).

Expand Down
21 changes: 21 additions & 0 deletions website/docusaurus.config.js
@@ -1,6 +1,23 @@
/**
* @type {import('@docusaurus/types').DocusaurusConfig}
*/
module.exports = {
baseUrl: '/',
favicon: 'img/manael.png',
i18n: {
defaultLocale: 'en',
localeConfigs: {
en: {
label: 'English'
},
ja: {
label: '日本語'
}
},
locales: ['en', 'ja']
},
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'warn',
organizationName: 'manaelproxy',
presets: [
[
Expand Down Expand Up @@ -32,6 +49,10 @@ module.exports = {
position: 'left',
to: 'docs/'
},
{
type: 'localeDropdown',
position: 'right'
},
{
href: 'https://github.com/manaelproxy/manael',
label: 'GitHub',
Expand Down
158 changes: 158 additions & 0 deletions website/i18n/en/code.json
@@ -0,0 +1,158 @@
{
"theme.NotFound.title": {
"message": "Page Not Found",
"description": "The title of the 404 page"
},
"theme.NotFound.p1": {
"message": "We could not find what you were looking for.",
"description": "The first paragraph of the 404 page"
},
"theme.NotFound.p2": {
"message": "Please contact the owner of the site that linked you to the original URL and let them know their link is broken.",
"description": "The 2nd paragraph of the 404 page"
},
"theme.AnnouncementBar.closeButtonAriaLabel": {
"message": "Close",
"description": "The ARIA label for close button of announcement bar"
},
"theme.blog.paginator.navAriaLabel": {
"message": "Blog list page navigation",
"description": "The ARIA label for the blog pagination"
},
"theme.blog.paginator.newerEntries": {
"message": "Newer Entries",
"description": "The label used to navigate to the newer blog posts page (previous page)"
},
"theme.blog.paginator.olderEntries": {
"message": "Older Entries",
"description": "The label used to navigate to the older blog posts page (next page)"
},
"theme.blog.post.readingTime.plurals": {
"message": "One min read|{readingTime} min read",
"description": "Pluralized label for \"{readingTime} min read\". Use as much plural forms (separated by \"|\") as your language support (see https://www.unicode.org/cldr/cldr-aux/charts/34/supplemental/language_plural_rules.html)"
},
"theme.tags.tagsListLabel": {
"message": "Tags:",
"description": "The label alongside a tag list"
},
"theme.blog.post.readMore": {
"message": "Read More",
"description": "The label used in blog post item excerpts to link to full blog posts"
},
"theme.blog.post.paginator.navAriaLabel": {
"message": "Blog post page navigation",
"description": "The ARIA label for the blog posts pagination"
},
"theme.blog.post.paginator.newerPost": {
"message": "Newer Post",
"description": "The blog post button label to navigate to the newer/previous post"
},
"theme.blog.post.paginator.olderPost": {
"message": "Older Post",
"description": "The blog post button label to navigate to the older/next post"
},
"theme.tags.tagsPageTitle": {
"message": "Tags",
"description": "The title of the tag list page"
},
"theme.blog.post.plurals": {
"message": "One post|{count} posts",
"description": "Pluralized label for \"{count} posts\". Use as much plural forms (separated by \"|\") as your language support (see https://www.unicode.org/cldr/cldr-aux/charts/34/supplemental/language_plural_rules.html)"
},
"theme.blog.tagTitle": {
"message": "{nPosts} tagged with \"{tagName}\"",
"description": "The title of the page for a blog tag"
},
"theme.tags.tagsPageLink": {
"message": "View All Tags",
"description": "The label of the link targeting the tag list page"
},
"theme.CodeBlock.copyButtonAriaLabel": {
"message": "Copy code to clipboard",
"description": "The ARIA label for copy code blocks button"
},
"theme.CodeBlock.copied": {
"message": "Copied",
"description": "The copied button label on code blocks"
},
"theme.CodeBlock.copy": {
"message": "Copy",
"description": "The copy button label on code blocks"
},
"theme.docs.sidebar.expandButtonTitle": {
"message": "Expand sidebar",
"description": "The ARIA label and title attribute for expand button of doc sidebar"
},
"theme.docs.sidebar.expandButtonAriaLabel": {
"message": "Expand sidebar",
"description": "The ARIA label and title attribute for expand button of doc sidebar"
},
"theme.docs.paginator.navAriaLabel": {
"message": "Docs pages navigation",
"description": "The ARIA label for the docs pagination"
},
"theme.docs.paginator.previous": {
"message": "Previous",
"description": "The label used to navigate to the previous doc"
},
"theme.docs.paginator.next": {
"message": "Next",
"description": "The label used to navigate to the next doc"
},
"theme.docs.sidebar.responsiveCloseButtonLabel": {
"message": "Close menu",
"description": "The ARIA label for close button of mobile doc sidebar"
},
"theme.docs.sidebar.responsiveOpenButtonLabel": {
"message": "Open menu",
"description": "The ARIA label for open button of mobile doc sidebar"
},
"theme.docs.sidebar.collapseButtonTitle": {
"message": "Collapse sidebar",
"description": "The title attribute for collapse button of doc sidebar"
},
"theme.docs.sidebar.collapseButtonAriaLabel": {
"message": "Collapse sidebar",
"description": "The title attribute for collapse button of doc sidebar"
},
"theme.docs.versions.unreleasedVersionLabel": {
"message": "This is unreleased documentation for {siteTitle} {versionLabel} version.",
"description": "The label used to tell the user that he's browsing an unreleased doc version"
},
"theme.docs.versions.unmaintainedVersionLabel": {
"message": "This is documentation for {siteTitle} {versionLabel}, which is no longer actively maintained.",
"description": "The label used to tell the user that he's browsing an unmaintained doc version"
},
"theme.docs.versions.latestVersionSuggestionLabel": {
"message": "For up-to-date documentation, see the {latestVersionLink} ({versionLabel}).",
"description": "The label userd to tell the user that he's browsing an unmaintained doc version"
},
"theme.docs.versions.latestVersionLinkLabel": {
"message": "latest version",
"description": "The label used for the latest version suggestion link label"
},
"theme.common.editThisPage": {
"message": "Edit this page",
"description": "The link label to edit the current page"
},
"theme.common.headingLinkTitle": {
"message": "Direct link to heading",
"description": "Title for link to heading"
},
"theme.lastUpdated.atDate": {
"message": " on {date}",
"description": "The words used to describe on which date a page has been last updated"
},
"theme.lastUpdated.byUser": {
"message": " by {user}",
"description": "The words used to describe by who the page has been last updated"
},
"theme.lastUpdated.lastUpdatedAtBy": {
"message": "Last updated{atDate}{byUser}",
"description": "The sentence used to display when a page has been last updated, and by who"
},
"theme.common.skipToMainContent": {
"message": "Skip to main content",
"description": "The skip to content label used for accessibility, allowing to rapidly navigate to main content with keyboard tab/enter navigation"
}
}
10 changes: 10 additions & 0 deletions website/i18n/en/docusaurus-plugin-content-docs/current.json
@@ -0,0 +1,10 @@
{
"version.label": {
"message": "Next",
"description": "The label for version current"
},
"sidebar.docs.category.Getting Started": {
"message": "Getting Started",
"description": "The label for category Getting Started in sidebar docs"
}
}
6 changes: 6 additions & 0 deletions website/i18n/en/docusaurus-theme-classic/footer.json
@@ -0,0 +1,6 @@
{
"copyright": {
"message": "Copyright © 2018 The Manael Authors.",
"description": "The footer copyright"
}
}
14 changes: 14 additions & 0 deletions website/i18n/en/docusaurus-theme-classic/navbar.json
@@ -0,0 +1,14 @@
{
"title": {
"message": "Manael",
"description": "The title in the navbar"
},
"item.label.Docs": {
"message": "Docs",
"description": "Navbar item with label Docs"
},
"item.label.GitHub": {
"message": "GitHub",
"description": "Navbar item with label GitHub"
}
}

1 comment on commit d4034b4

@vercel
Copy link

@vercel vercel bot commented on d4034b4 Mar 13, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.