From 85910e7794ceed7c904b6cd2f14d1de76ab4b917 Mon Sep 17 00:00:00 2001 From: MattIPv4 Date: Tue, 2 Jun 2020 16:12:05 +0100 Subject: [PATCH] Move top level template strings to i18n --- src/nginxconfig/i18n/en/templates/app.js | 9 ++++++++- src/nginxconfig/i18n/en/templates/domain.js | 20 +++++++++++++++++++ src/nginxconfig/i18n/en/templates/global.js | 20 +++++++++++++++++++ src/nginxconfig/i18n/en/templates/index.js | 5 ++++- src/nginxconfig/i18n/en/templates/setup.js | 22 +++++++++++++++++++++ src/nginxconfig/templates/app.vue | 14 ++++++------- src/nginxconfig/templates/domain.vue | 4 ++-- src/nginxconfig/templates/global.vue | 4 ++-- src/nginxconfig/templates/setup.vue | 8 ++++---- 9 files changed, 89 insertions(+), 17 deletions(-) create mode 100644 src/nginxconfig/i18n/en/templates/domain.js create mode 100644 src/nginxconfig/i18n/en/templates/global.js create mode 100644 src/nginxconfig/i18n/en/templates/setup.js diff --git a/src/nginxconfig/i18n/en/templates/app.js b/src/nginxconfig/i18n/en/templates/app.js index 13090ea..48edbca 100644 --- a/src/nginxconfig/i18n/en/templates/app.js +++ b/src/nginxconfig/i18n/en/templates/app.js @@ -17,5 +17,12 @@ limitations under the License. export default { title: 'NGINXConfig', description: 'The easiest way to configure a performant, secure, and stable NGINX server.', - oss: 'This tool is {link|open-source on GitHub|https://github.com/do-community/nginxconfig-vue} under the {link|Apache-2.0|https://github.com/do-community/nginxconfig-vue/blob/master/LICENSE} license! We welcome feedback and contributions.', + singleColumnMode: 'Single column mode', + splitColumnMode: 'Split column mode', + perWebsiteConfig: 'Per-website config', + addSite: 'Add site', + globalConfig: 'Global config', + setup: 'Setup', + configFiles: 'Config files', + oss: 'This tool is {link|open-source on GitHub|https://github.com/digitalocean/nginxconfig.io} under the {link|Apache-2.0|https://github.com/digitalocean/nginxconfig.io/blob/master/LICENSE} license! We welcome feedback and contributions.', }; diff --git a/src/nginxconfig/i18n/en/templates/domain.js b/src/nginxconfig/i18n/en/templates/domain.js new file mode 100644 index 0000000..3b7637d --- /dev/null +++ b/src/nginxconfig/i18n/en/templates/domain.js @@ -0,0 +1,20 @@ +/* +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 { + back: 'Back', + next: 'Next', +}; diff --git a/src/nginxconfig/i18n/en/templates/global.js b/src/nginxconfig/i18n/en/templates/global.js new file mode 100644 index 0000000..3b7637d --- /dev/null +++ b/src/nginxconfig/i18n/en/templates/global.js @@ -0,0 +1,20 @@ +/* +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 { + back: 'Back', + next: 'Next', +}; diff --git a/src/nginxconfig/i18n/en/templates/index.js b/src/nginxconfig/i18n/en/templates/index.js index 4b76023..913a8a6 100644 --- a/src/nginxconfig/i18n/en/templates/index.js +++ b/src/nginxconfig/i18n/en/templates/index.js @@ -15,8 +15,11 @@ limitations under the License. */ import app from './app'; +import domain from './domain'; +import global from './global'; +import setup from './setup'; import domainSections from './domain_sections'; import globalSections from './global_sections'; import setupSections from './setup_sections'; -export default { app, domainSections, globalSections, setupSections }; +export default { app, domain, global, setup, domainSections, globalSections, setupSections }; diff --git a/src/nginxconfig/i18n/en/templates/setup.js b/src/nginxconfig/i18n/en/templates/setup.js new file mode 100644 index 0000000..a5a6ec9 --- /dev/null +++ b/src/nginxconfig/i18n/en/templates/setup.js @@ -0,0 +1,22 @@ +/* +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 { + back: 'Back', + next: 'Next', + downloadConfig: 'Download Config', + copyBase64: 'Copy Base64', +}; diff --git a/src/nginxconfig/templates/app.vue b/src/nginxconfig/templates/app.vue index edd9256..6ee0349 100644 --- a/src/nginxconfig/templates/app.vue +++ b/src/nginxconfig/templates/app.vue @@ -24,10 +24,10 @@ limitations under the License. @@ -35,7 +35,7 @@ limitations under the License.
-

Per-website config

+

{{ i18n.templates.app.perWebsiteConfig }}

@@ -60,15 +60,15 @@ limitations under the License. > -

Global config

+

{{ i18n.templates.app.globalConfig }}

-

Setup

+

{{ i18n.templates.app.setup }}

-

Config files

+

{{ i18n.templates.app.configFiles }}

diff --git a/src/nginxconfig/templates/global.vue b/src/nginxconfig/templates/global.vue index 36f08c0..c1afedd 100644 --- a/src/nginxconfig/templates/global.vue +++ b/src/nginxconfig/templates/global.vue @@ -34,10 +34,10 @@ limitations under the License.
diff --git a/src/nginxconfig/templates/setup.vue b/src/nginxconfig/templates/setup.vue index ddcb394..43391af 100644 --- a/src/nginxconfig/templates/setup.vue +++ b/src/nginxconfig/templates/setup.vue @@ -35,17 +35,17 @@ limitations under the License.
- Download Config - Copy Base64 + {{ i18n.templates.setup.downloadConfig }} + {{ i18n.templates.setup.copyBase64 }}