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: 'Reverse proxy',
reverseProxyLower: 'reverse proxy',
restrict: 'Restrict',
listen: 'listen',
path: 'Path',
};

View File

@@ -29,6 +29,9 @@ import common from '../common';
export default {
title: `${common.nginx}Config`,
description: `The easiest way to configure a performant, secure, and stable ${common.nginx} server.`,
en: 'English',
zhCN: 'Chinese (simplified)',
zhTW: 'Chinese (traditional)',
singleColumnMode: 'Single column mode',
splitColumnMode: 'Split column mode',
perWebsiteConfig: 'Per-website config',

View File

@@ -31,5 +31,4 @@ export default {
reverseProxyCannotBeEnabledWithPhp: `${common.reverseProxy} cannot be enabled whilst ${common.php} is enabled.`,
reverseProxyCannotBeEnabledWithPython: `${common.reverseProxy} cannot be enabled whilst ${common.python} is enabled.`,
enableReverseProxy: `${common.enable} ${common.reverseProxyLower}`,
path: 'Path',
};

View File

@@ -31,6 +31,5 @@ export default {
fallbackRoutingPhpPath: `Fallback routing ${common.php} path`,
legacyPhpRouting: `Legacy ${common.php} routing`,
enableLegacyRouting: `${common.enable} legacy routing`,
path: 'Path',
routing: 'Routing',
};

View File

@@ -26,13 +26,12 @@ THE SOFTWARE.
export default {
domain: 'Domain',
path: 'Path',
documentRoot: 'Document root',
oneOrMoreOtherDomainsAreAlsoNamed: 'One or more other domains are also named',
thisWillCauseIssuesWithConfigGeneration: 'This will cause issues with config generation.',
wwwSubdomain: 'www subdomain',
cdnSubdomain: 'CDN subdomain',
redirectSubdomains: 'Redirect subdomains',
routing: 'Routing',
server: 'Server',
listen: 'listen',
};