Allow language selection (#191)

* Add dropdown for language

* Use vue-i18n to translate strings

* Tweak header styling

* Add Chinese languages in

* Typo

* Get language from browser (#193)

* adaptive system language

* Modify the adaptive system language

* Remove dead code

* Delete lang default values

* Move browser language detection to util

* Remove todos

* Fix global PHP dropdown

Co-authored-by: 墨娘 <61287199+moniang@users.noreply.github.com>
This commit is contained in:
Matt (IPv4) Cowley
2020-12-11 16:54:12 +00:00
committed by GitHub
parent 7d3290d850
commit ff88e2f322
53 changed files with 539 additions and 434 deletions

View File

@@ -46,5 +46,5 @@ export default {
reverseProxy: '反向代理',
reverseProxyLower: '反向代理',
restrict: '限制',
listen: '監聽',
path: '路徑',
};

View File

@@ -29,6 +29,9 @@ import common from '../common';
export default {
title: `${common.nginx} 配寘`,
description: `配寘高性能、安全、穩定的${common.nginx}服務器的最簡單方法。`,
en: '英語',
zhCN: '簡體中文',
zhTW: '繁體中文',
singleColumnMode: '垂直模式',
splitColumnMode: '水准模式',
perWebsiteConfig: '網站配寘',

View File

@@ -31,5 +31,4 @@ export default {
reverseProxyCannotBeEnabledWithPhp: `${common.reverseProxy}在啟用${common.php}時無法啟用。`,
reverseProxyCannotBeEnabledWithPython: `${common.reverseProxy}在啟用${common.python}時無法啟用。`,
enableReverseProxy: `${common.enable} ${common.reverseProxyLower}`,
path: '路徑',
};

View File

@@ -31,6 +31,5 @@ export default {
fallbackRoutingPhpPath: `後備路由${common.php}路徑`,
legacyPhpRouting: `傳統${common.php}路由`,
enableLegacyRouting: `${common.enable}傳統路由`,
path: '路徑',
routing: '路由設定',
};

View File

@@ -26,13 +26,12 @@ THE SOFTWARE.
export default {
domain: '網站',
path: '路徑',
documentRoot: '運行目錄',
oneOrMoreOtherDomainsAreAlsoNamed: '發現了重復的域名',
thisWillCauseIssuesWithConfigGeneration: '這將導致生成配置出現問題。',
wwwSubdomain: 'www 子域名',
cdnSubdomain: 'CDN 子域名',
redirectSubdomains: '子域名重定向',
routing: '路由設定',
server: '服務',
listen: '監聽',
};