diff --git a/src/nginxconfig/i18n/en/templates/domain_sections/index.js b/src/nginxconfig/i18n/en/templates/domain_sections/index.js index d1e2956..1e252d4 100644 --- a/src/nginxconfig/i18n/en/templates/domain_sections/index.js +++ b/src/nginxconfig/i18n/en/templates/domain_sections/index.js @@ -20,5 +20,7 @@ import php from './php'; import presets from './presets'; import python from './python'; import reverseProxy from './reverse_proxy'; +import routing from './routing'; +import server from './server'; -export default { https, logging, php, presets, python, reverseProxy }; +export default { https, logging, php, presets, python, reverseProxy, routing, server }; diff --git a/src/nginxconfig/i18n/en/templates/domain_sections/routing.js b/src/nginxconfig/i18n/en/templates/domain_sections/routing.js new file mode 100644 index 0000000..f68cd04 --- /dev/null +++ b/src/nginxconfig/i18n/en/templates/domain_sections/routing.js @@ -0,0 +1,25 @@ +/* +Copyright 2020 DigitalOcean + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +export default { + enable: 'enable', + fallbackRouting: 'Fallback routing', + fallbackRoutingPhpPath: 'Fallback routing PHP path', + legacyPhpRouting: 'Legacy PHP routing', + enableLegacyRouting: 'enable legacy routing', + path: 'Path', + routing: 'Routing', +}; diff --git a/src/nginxconfig/i18n/en/templates/domain_sections/server.js b/src/nginxconfig/i18n/en/templates/domain_sections/server.js new file mode 100644 index 0000000..7cb926c --- /dev/null +++ b/src/nginxconfig/i18n/en/templates/domain_sections/server.js @@ -0,0 +1,26 @@ +/* +Copyright 2020 DigitalOcean + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +export default { + domain: 'Domain', + path: 'Path', + documentRoot: 'Document root', + wwwSubdomain: 'www subdomain', + cdnSubdomain: 'CDN subdomain', + redirectSubdomains: 'Redirect subdomains', + routing: 'Routing', + server: 'Server', +}; diff --git a/src/nginxconfig/templates/domain_sections/routing.vue b/src/nginxconfig/templates/domain_sections/routing.vue index 9d52b9f..2bad533 100644 --- a/src/nginxconfig/templates/domain_sections/routing.vue +++ b/src/nginxconfig/templates/domain_sections/routing.vue @@ -26,7 +26,7 @@ limitations under the License.
- enable + {{ i18n.templates.domainSections.routing.enable }}
@@ -56,7 +56,7 @@ limitations under the License.
- +
@@ -82,7 +82,7 @@ limitations under the License.
- +
@@ -99,7 +99,7 @@ limitations under the License.
- +
@@ -107,7 +107,7 @@ limitations under the License.
- enable legacy routing + {{ i18n.templates.domainSections.routing.enableLegacyRouting }}
@@ -154,7 +154,7 @@ limitations under the License. export default { name: 'DomainRouting', // Component name - display: 'Routing', // Display name for tab + display: i18n.templates.domainSections.routing.routing, // Display name for tab key: 'routing', // Key for data in parent delegated: delegatedFromDefaults(defaults), // Data the parent will present here components: { diff --git a/src/nginxconfig/templates/domain_sections/server.vue b/src/nginxconfig/templates/domain_sections/server.vue index 5380a3c..c6e7d12 100644 --- a/src/nginxconfig/templates/domain_sections/server.vue +++ b/src/nginxconfig/templates/domain_sections/server.vue @@ -18,21 +18,21 @@ limitations under the License.
- +
- +
- +
@@ -41,7 +41,7 @@ limitations under the License.
- +
@@ -59,7 +59,7 @@ limitations under the License.
- +
@@ -77,7 +77,7 @@ limitations under the License.
- +
@@ -168,7 +168,7 @@ limitations under the License. export default { name: 'DomainServer', // Component name - display: 'Server', // Display name for tab + display: i18n.templates.domainSections.server.server, // Display name for tab key: 'server', // Key for data in parent delegated: delegatedFromDefaults(defaults), // Data the parent will present here components: {