diff --git a/src/nginxconfig/i18n/en/templates/domain_sections/index.js b/src/nginxconfig/i18n/en/templates/domain_sections/index.js index 57551d1..144bbe8 100644 --- a/src/nginxconfig/i18n/en/templates/domain_sections/index.js +++ b/src/nginxconfig/i18n/en/templates/domain_sections/index.js @@ -17,5 +17,6 @@ limitations under the License. import https from './https'; import logging from './logging'; import php from './php'; +import presets from './presets'; -export default { https, logging, php }; +export default { https, logging, php, presets }; diff --git a/src/nginxconfig/i18n/en/templates/domain_sections/php.js b/src/nginxconfig/i18n/en/templates/domain_sections/php.js index 5554444..2b44364 100644 --- a/src/nginxconfig/i18n/en/templates/domain_sections/php.js +++ b/src/nginxconfig/i18n/en/templates/domain_sections/php.js @@ -23,7 +23,7 @@ export default { wordPressRules: 'WordPress rules', enableWordPressRules: 'enable WordPress-specific rules', drupalRules: 'Drupal rules', - enableDrupalRules: ' enable Drupal-specific rules', + enableDrupalRules: 'enable Drupal-specific rules', magentoRules: 'Magento rules', - enableMagentoRules: ' enable Magento-specific rules', + enableMagentoRules: 'enable Magento-specific rules', }; diff --git a/src/nginxconfig/i18n/en/templates/domain_sections/presets.js b/src/nginxconfig/i18n/en/templates/domain_sections/presets.js new file mode 100644 index 0000000..2bbfb3a --- /dev/null +++ b/src/nginxconfig/i18n/en/templates/domain_sections/presets.js @@ -0,0 +1,28 @@ +/* +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 { + presets: 'Presets', + itLooksLikeYouCustomisedTheConfig: 'It looks like you\'ve customised the configuration for this domain. Choosing a new preset may reset or change some of the settings that you\'ve customised.', + frontend: 'Frontend', + php: 'PHP', + django: 'Django', + nodeJs: 'Node.js', + singlePageApplication: 'Single-page application', + wordPress: 'WordPress', + drupal: 'Drupal', + magento: 'Magento', +}; diff --git a/src/nginxconfig/templates/domain_sections/presets.vue b/src/nginxconfig/templates/domain_sections/presets.vue index 8a8a78d..e3444c5 100644 --- a/src/nginxconfig/templates/domain_sections/presets.vue +++ b/src/nginxconfig/templates/domain_sections/presets.vue @@ -17,7 +17,7 @@ limitations under the License.