Skip to content

Commit

Permalink
Merge pull request #142 from terreng/ja
Browse files Browse the repository at this point in the history
Add Japanese
  • Loading branch information
terreng authored Jun 7, 2023
2 parents d18f0fe + 8fb2862 commit 80ccf97
Show file tree
Hide file tree
Showing 13 changed files with 269 additions and 19 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Simple Web Server

[Download](https://simplewebserver.org/download/) • [Documentation](https://simplewebserver.org/docs/options.html) • [Build from source](https://simplewebserver.org/docs/build.html) • [Chinese (中文简介)](/README_zh-CN.md) • [Russian (Русский)](/README_ru.md)
[Download](https://simplewebserver.org/download/) • [Documentation](https://simplewebserver.org/docs/options.html) • [Build from source](https://simplewebserver.org/docs/build.html) • [Chinese (中文简介)](/README_zh-CN.md) • [Russian (Русский)](/README_ru.md) • [Japanese (日本語)](/README_ja.md)

Create local web servers in just a few clicks with an easy to use interface. Built with Electron.

Expand Down
15 changes: 15 additions & 0 deletions README_ja.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Simple Web Server

[ダウンロード](https://simplewebserver.org/download/) • [ドキュメント](https://simplewebserver.org/docs/options.html) • [ソースからビルド](https://simplewebserver.org/docs/build.html) • [英語 (English)](/README.md) • [中国語 (中文简介)](/README_zh-CN.md) • [ロシア語 (Русский)](/README_ru.md)

簡単UIでほんの数クリックだけでローカルウェブサーバーを作れます。開発にはElectronを使用。

特長:
- 設定が簡単
- 同時に複数のサーバーを動かせます。
- 単一ページアプリ(SPA)のサポート
- サーバーのバックグラウンド実行可能

![スクリーンショット](https://user-images.githubusercontent.com/11605395/163694811-46e3b79c-a187-4c78-b622-6250a6d5d9d0.jpeg)

Simple Web Server は [Web Server for Chrome](https://github.com/kzahel/web-server-chrome) の後継です。
2 changes: 1 addition & 1 deletion WSC/FileSystem.js
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ class FileSystem {
stats = fs.statSync(mainPath);
} catch(e) {
bookmarks.release(bm);
throw new Error('Error checking entry');
throw e;
}
bookmarks.release(bm);
if (!stats.isDirectory()) {
Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@
<div style="
text-align: center;
padding-bottom: 10px;
">{lang.version} 1.2.7&nbsp; • &nbsp;<a href="javascript:openLicenses()" style="
">{lang.version} 1.2.8&nbsp; • &nbsp;<a href="javascript:openLicenses()" style="
color: var(--text-primary);
text-decoration: none;
">MIT License</a></div>
Expand Down
6 changes: 5 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const version = 1002007;
const version = 1002008;
const install_source = "website"; //"website" | "microsoftstore" | "macappstore"
const {app, BrowserWindow, ipcMain, Menu, Tray, dialog, shell, nativeTheme} = require('electron');
const {networkInterfaces} = require('os');
Expand Down Expand Up @@ -448,6 +448,10 @@ function getLanguage() {
language = "zh_CN";
break;
}
if (system_langs[i].indexOf("ja") == 0) {
language = "ja";
break;
}
}
}

Expand Down
140 changes: 139 additions & 1 deletion lang.js

Large diffs are not rendered by default.

9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "simple-web-server",
"productName": "Simple Web Server",
"version": "1.2.7",
"version": "1.2.8",
"main": "index.js",
"description": "Create a local web server in just a few clicks with an easy to use interface. A continuation of Web Server for Chrome, built with Electron.",
"author": {
Expand Down Expand Up @@ -55,7 +55,7 @@
"make_all_windows_appx": "npm run make_windows_appx_x64 && npm run make_windows_appx_ia32 && npm run make_windows_appx_arm64"
},
"build": {
"buildVersion": "25",
"buildVersion": "26",
"appId": "org.simplewebserver.simplewebserver",
"productName": "Simple Web Server",
"copyright": "MIT License",
Expand Down Expand Up @@ -98,7 +98,8 @@
"electronLanguages": [
"en",
"ru",
"zh_CN"
"zh_CN",
"ja"
]
},
"mas": {
Expand Down Expand Up @@ -138,7 +139,7 @@
"applicationId": "org.simplewebserver.simplewebserver",
"identityName": "50257Terren.SimpleWebServer",
"publisher": "CN=823B8264-37A4-4589-B252-9E44611E01EB",
"languages": ["en-US", "zh-CN", "ru"]
"languages": ["en-US", "zh-CN", "ru", "ja"]
}
},
"devDependencies": {
Expand Down
63 changes: 63 additions & 0 deletions website/src/.vuepress/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ module.exports = {
'/ru/': {
lang: 'ru',
description: 'Создавайте локальный веб-сервер в несколько кликов с помощью простого интерфейса.'
},
'/ja/': {
lang: 'ja',
description: '簡単UIでほんの数クリックだけでローカルウェブサーバーを作れます。'
}
},
themeConfig: {
Expand Down Expand Up @@ -208,6 +212,65 @@ module.exports = {
]
}
},
'/ja/': {
label: '日本',
selectText: '言語',
nav: [
{
text: 'Download',
link: '/download.html',
},
{
text: 'Documentation',
link: '/docs/options.html'
},
{
text: 'GitHub',
link: 'https://github.com/terreng/simple-web-server'
}
],
sidebar: {
'/docs/': [
{
title: 'Configuration',
collapsable: false,
children: [
'options',
'settings',
]
},
{
title: 'Guides',
collapsable: false,
children: [
'config file',
'https',
'logs',
'build',
'wsc'
]
},
{
title: 'Plugins',
collapsable: false,
children: [
'plugins',
'plugin manifest file',
'plugin script'
]
},
{
title: 'Advanced Guides',
collapsable: false,
children: [
'swsaccess',
'custom scripts',
'custom request handler',
]
}
]
}
},
},
sidebarDepth: 3,
repo: '',
Expand Down
10 changes: 5 additions & 5 deletions website/src/download.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@

<ms-store-badge productid="9PC6682RJCDD" style="margin-right: 10px;"></ms-store-badge><a href="https://apps.apple.com/us/app/simple-web-server/id1625925255?mt=12&amp;itsct=apps_box_badge&amp;itscg=30200" target="_blank" rel="noopener"><img src="/appstorebadge.svg" alt="Download on the Mac App Store" style="border-radius:13px;height: 60px;"></a>

Current version: **1.2.7** | [Older versions and release notes](https://github.com/terreng/simple-web-server/releases)
Current version: **1.2.8** | [Older versions and release notes](https://github.com/terreng/simple-web-server/releases)

## Direct download

### Windows

**Installer (.exe):** [64 bit](https://github.com/terreng/simple-web-server/releases/download/v1.2.7/Simple-Web-Server-Installer-1.2.7-x64.exe) | [32 bit](https://github.com/terreng/simple-web-server/releases/download/v1.2.7/Simple-Web-Server-Installer-1.2.7-ia32.exe) | [ARM](https://github.com/terreng/simple-web-server/releases/download/v1.2.7/Simple-Web-Server-Installer-1.2.7-arm64.exe)
**Installer (.exe):** [64 bit](https://github.com/terreng/simple-web-server/releases/download/v1.2.8/Simple-Web-Server-Installer-1.2.8-x64.exe) | [32 bit](https://github.com/terreng/simple-web-server/releases/download/v1.2.8/Simple-Web-Server-Installer-1.2.8-ia32.exe) | [ARM](https://github.com/terreng/simple-web-server/releases/download/v1.2.8/Simple-Web-Server-Installer-1.2.8-arm64.exe)

**Portable (.zip):** [64 bit](https://github.com/terreng/simple-web-server/releases/download/v1.2.7/Simple-Web-Server-1.2.7-win.zip) | [32 bit](https://github.com/terreng/simple-web-server/releases/download/v1.2.7/Simple-Web-Server-1.2.7-ia32-win.zip) | [ARM](https://github.com/terreng/simple-web-server/releases/download/v1.2.7/Simple-Web-Server-1.2.7-arm64-win.zip)
**Portable (.zip):** [64 bit](https://github.com/terreng/simple-web-server/releases/download/v1.2.8/Simple-Web-Server-1.2.8-win.zip) | [32 bit](https://github.com/terreng/simple-web-server/releases/download/v1.2.8/Simple-Web-Server-1.2.8-ia32-win.zip) | [ARM](https://github.com/terreng/simple-web-server/releases/download/v1.2.8/Simple-Web-Server-1.2.8-arm64-win.zip)

[How to check if your computer is 32 bit or 64 bit](https://support.microsoft.com/en-us/windows/32-bit-and-64-bit-windows-frequently-asked-questions-c6ca9541-8dce-4d48-0415-94a3faa2e13d)

Expand All @@ -30,9 +30,9 @@ Current version: **1.2.7** | [Older versions and release notes](https://github.c

### macOS

**Installer (.dmg):** [Intel Chip](https://github.com/terreng/simple-web-server/releases/download/v1.2.7/Simple-Web-Server-1.2.7.dmg) | [Apple Silicon](https://github.com/terreng/simple-web-server/releases/download/v1.2.7/Simple-Web-Server-1.2.7-arm64.dmg) (Mac OSX 10.12+)
**Installer (.dmg):** [Intel Chip](https://github.com/terreng/simple-web-server/releases/download/v1.2.8/Simple-Web-Server-1.2.8.dmg) | [Apple Silicon](https://github.com/terreng/simple-web-server/releases/download/v1.2.8/Simple-Web-Server-1.2.8-arm64.dmg) (Mac OSX 10.12+)

**Standalone (.app inside .zip):** [Intel Chip](https://github.com/terreng/simple-web-server/releases/download/v1.2.7/Simple-Web-Server-1.2.7-mac.zip) | [Apple Silicon](https://github.com/terreng/simple-web-server/releases/download/v1.2.7/Simple-Web-Server-1.2.7-arm64-mac.zip)
**Standalone (.app inside .zip):** [Intel Chip](https://github.com/terreng/simple-web-server/releases/download/v1.2.8/Simple-Web-Server-1.2.8-mac.zip) | [Apple Silicon](https://github.com/terreng/simple-web-server/releases/download/v1.2.8/Simple-Web-Server-1.2.8-arm64-mac.zip)

[How to check if your Mac has an Intel processor or Apple silicon](https://support.apple.com/en-us/HT211814)

Expand Down
1 change: 1 addition & 0 deletions website/src/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,5 @@ features:
<div>Made with ❤️ by <a href="https://github.com/terreng" target="_blank">@terreng</a> and <a href="https://github.com/ethanaobrien" target="_blank">@ethanaobrien</a>.</div>
<div>A continuation of <a href="https://chrome.google.com/webstore/detail/web-server-for-chrome/ofhbbkphhbklhfoeikjpcbhemlocgigb" target="_blank">Web Server for Chrome</a> by <a href="https://github.com/kzahel" target="_blank">@kzahel</a>.</div>
<div>Chinese translations by <a href="https://github.com/antnesswcm" target="_blank">@antnesswcm</a>.</div>
<div>Japanese translations by <a href="https://github.com/ShinodaNaoki" target="_blank">@ShinodaNaoki</a>.</div>
</div>
24 changes: 24 additions & 0 deletions website/src/ja/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
home: true
heroImage: https://raw.githubusercontent.com/terreng/simple-web-server/main/images/icon.png
heroText: Simple Web Server
tagline: 簡単UIでほんの数クリックだけでローカルウェブサーバーを作れます
actionText: Download →
actionLink: /download/
features:
- title: 設定が簡単
details: ほんの数クリックだけでサーバーの設定を変えられます。
- title: 複数実行・バックグラウンド実行
details: 同時に複数のサーバーを動かせます。アプリを閉じてもサーバーは停止しないようにできます。
- title: シングルページアプリケーション
details: シングルクリックのSPA用にmod rewriteができます。
---
<div class="coming_from_wsc_banner"><a href="/docs/wsc.html">Web Server for Chromeからの移行ですか? →</a></div>
<img src="/images/screenshots.jpeg" style="width: 100%">

<div class="home_footer">
<div>Made with ❤️ by <a href="https://github.com/terreng" target="_blank">@terreng</a> and <a href="https://github.com/ethanaobrien" target="_blank">@ethanaobrien</a>.</div>
<div>A continuation of <a href="https://chrome.google.com/webstore/detail/web-server-for-chrome/ofhbbkphhbklhfoeikjpcbhemlocgigb" target="_blank">Web Server for Chrome</a> by <a href="https://github.com/kzahel" target="_blank">@kzahel</a>.</div>
<div>Chinese translations by <a href="https://github.com/antnesswcm" target="_blank">@antnesswcm</a>.</div>
<div>Japanese translations by <a href="https://github.com/ShinodaNaoki" target="_blank">@ShinodaNaoki</a>.</div>
</div>
10 changes: 5 additions & 5 deletions website/src/zh-CN/download.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@

<ms-store-badge productid="9PC6682RJCDD" style="margin-right: 10px;"></ms-store-badge><a href="https://apps.apple.com/us/app/simple-web-server/id1625925255?mt=12&itsct=apps_box_badge&itscg=30200" target="_blank" rel="noopener"><img src="/appstorebadge.svg" alt="通过 Mac App Store 获取" style="border-radius:13px;height: 60px;"></a>

当前版本: **1.2.7** | [历史版本和发行说明](https://github.com/terreng/simple-web-server/releases)
当前版本: **1.2.8** | [历史版本和发行说明](https://github.com/terreng/simple-web-server/releases)

## 直接下载

### Windows

**安装程序 (.exe):** [64 bit](https://github.com/terreng/simple-web-server/releases/download/v1.2.7/Simple-Web-Server-Installer-1.2.7-x64.exe) | [32 bit](https://github.com/terreng/simple-web-server/releases/download/v1.2.7/Simple-Web-Server-Installer-1.2.7-ia32.exe) | [ARM](https://github.com/terreng/simple-web-server/releases/download/v1.2.7/Simple-Web-Server-Installer-1.2.7-arm64.exe)
**安装程序 (.exe):** [64 bit](https://github.com/terreng/simple-web-server/releases/download/v1.2.8/Simple-Web-Server-Installer-1.2.8-x64.exe) | [32 bit](https://github.com/terreng/simple-web-server/releases/download/v1.2.8/Simple-Web-Server-Installer-1.2.8-ia32.exe) | [ARM](https://github.com/terreng/simple-web-server/releases/download/v1.2.8/Simple-Web-Server-Installer-1.2.8-arm64.exe)

**便携版本 (.zip):** [64 bit](https://github.com/terreng/simple-web-server/releases/download/v1.2.7/Simple-Web-Server-1.2.7-win.zip) | [32 bit](https://github.com/terreng/simple-web-server/releases/download/v1.2.7/Simple-Web-Server-1.2.7-ia32-win.zip) | [ARM](https://github.com/terreng/simple-web-server/releases/download/v1.2.7/Simple-Web-Server-1.2.7-arm64-win.zip)
**便携版本 (.zip):** [64 bit](https://github.com/terreng/simple-web-server/releases/download/v1.2.8/Simple-Web-Server-1.2.8-win.zip) | [32 bit](https://github.com/terreng/simple-web-server/releases/download/v1.2.8/Simple-Web-Server-1.2.8-ia32-win.zip) | [ARM](https://github.com/terreng/simple-web-server/releases/download/v1.2.8/Simple-Web-Server-1.2.8-arm64-win.zip)

[如何检查您的计算机是32位还是64位](https://support.microsoft.com/en-us/windows/32-bit-and-64-bit-windows-frequently-asked-questions-c6ca9541-8dce-4d48-0415-94a3faa2e13d)

Expand All @@ -31,9 +31,9 @@

### macOS

**安装程序 (.dmg):** [Intel处理器](https://github.com/terreng/simple-web-server/releases/download/v1.2.7/Simple-Web-Server-1.2.7.dmg) | [Apple处理器](https://github.com/terreng/simple-web-server/releases/download/v1.2.7/Simple-Web-Server-1.2.7-arm64.dmg) (Mac OSX 10.12+)
**安装程序 (.dmg):** [Intel处理器](https://github.com/terreng/simple-web-server/releases/download/v1.2.8/Simple-Web-Server-1.2.8.dmg) | [Apple处理器](https://github.com/terreng/simple-web-server/releases/download/v1.2.8/Simple-Web-Server-1.2.8-arm64.dmg) (Mac OSX 10.12+)

**独立版本(.app inside .zip):** [Intel处理器](https://github.com/terreng/simple-web-server/releases/download/v1.2.7/Simple-Web-Server-1.2.7-mac.zip) | [Apple处理器](https://github.com/terreng/simple-web-server/releases/download/v1.2.7/Simple-Web-Server-1.2.7-arm64-mac.zip)
**独立版本(.app inside .zip):** [Intel处理器](https://github.com/terreng/simple-web-server/releases/download/v1.2.8/Simple-Web-Server-1.2.8-mac.zip) | [Apple处理器](https://github.com/terreng/simple-web-server/releases/download/v1.2.8/Simple-Web-Server-1.2.8-arm64-mac.zip)

[如何检查您的Mac是Intel处理器还是Apple处理器](https://support.apple.com/en-us/HT211814)

Expand Down
4 changes: 4 additions & 0 deletions website/versions.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
{
"latest": "1002006",
"versions": {
"1002008": {
"name": "1.2.8",
"download": {"website": "https://simplewebserver.org/download", "microsoftstore": "https://apps.microsoft.com/store/detail/simple-web-server/9PC6682RJCDD", "macappstore": "https://apps.apple.com/us/app/simple-web-server/id1625925255"}
},
"1002007": {
"name": "1.2.7",
"download": {"website": "https://simplewebserver.org/download", "microsoftstore": "https://apps.microsoft.com/store/detail/simple-web-server/9PC6682RJCDD", "macappstore": "https://apps.apple.com/us/app/simple-web-server/id1625925255"}
Expand Down

0 comments on commit 80ccf97

Please sign in to comment.