diff --git a/src/nginxconfig/i18n/de/templates/app.js b/src/nginxconfig/i18n/de/templates/app.js index 14933c91..eed31c94 100644 --- a/src/nginxconfig/i18n/de/templates/app.js +++ b/src/nginxconfig/i18n/de/templates/app.js @@ -1,5 +1,5 @@ /* -Copyright 2021 DigitalOcean +Copyright 2022 DigitalOcean This code is licensed under the MIT License. You may obtain a copy of the License at @@ -36,4 +36,5 @@ export default { globalConfig: 'Globale Konfiguration', setup: 'Setup', configFiles: 'Konfigurationsdateien', + copied: 'kopiert', }; diff --git a/src/nginxconfig/i18n/en/templates/app.js b/src/nginxconfig/i18n/en/templates/app.js index 71c36077..66fbfc17 100644 --- a/src/nginxconfig/i18n/en/templates/app.js +++ b/src/nginxconfig/i18n/en/templates/app.js @@ -1,5 +1,5 @@ /* -Copyright 2020 DigitalOcean +Copyright 2022 DigitalOcean This code is licensed under the MIT License. You may obtain a copy of the License at @@ -36,4 +36,5 @@ export default { globalConfig: 'Global config', setup: 'Setup', configFiles: 'Config files', + copied: 'Copied', }; diff --git a/src/nginxconfig/i18n/es/templates/app.js b/src/nginxconfig/i18n/es/templates/app.js index 95b727ff..d10755b0 100644 --- a/src/nginxconfig/i18n/es/templates/app.js +++ b/src/nginxconfig/i18n/es/templates/app.js @@ -1,5 +1,5 @@ /* -Copyright 2021 DigitalOcean +Copyright 2022 DigitalOcean This code is licensed under the MIT License. You may obtain a copy of the License at @@ -36,4 +36,5 @@ export default { globalConfig: 'Configuración global', setup: 'Configuración', configFiles: 'Archivos de configuración', + copied: 'Copiado', }; diff --git a/src/nginxconfig/i18n/fr/templates/app.js b/src/nginxconfig/i18n/fr/templates/app.js index 05fefb02..3d516512 100644 --- a/src/nginxconfig/i18n/fr/templates/app.js +++ b/src/nginxconfig/i18n/fr/templates/app.js @@ -1,5 +1,5 @@ /* -Copyright 2021 DigitalOcean +Copyright 2022 DigitalOcean This code is licensed under the MIT License. You may obtain a copy of the License at @@ -36,4 +36,5 @@ export default { globalConfig: 'Configuration globale', setup: 'Configurer', configFiles: 'Fichiers de configuration', + copied: 'Copié', }; diff --git a/src/nginxconfig/i18n/ja/templates/app.js b/src/nginxconfig/i18n/ja/templates/app.js index d735fb69..b5d24670 100644 --- a/src/nginxconfig/i18n/ja/templates/app.js +++ b/src/nginxconfig/i18n/ja/templates/app.js @@ -36,4 +36,5 @@ export default { globalConfig: 'グローバル設定', setup: 'セットアップ', configFiles: '設定ファイル', + copied: 'コピーしました', }; diff --git a/src/nginxconfig/i18n/pl/templates/app.js b/src/nginxconfig/i18n/pl/templates/app.js index dd19bba3..137fe143 100644 --- a/src/nginxconfig/i18n/pl/templates/app.js +++ b/src/nginxconfig/i18n/pl/templates/app.js @@ -1,5 +1,5 @@ /* -Copyright 2021 DigitalOcean +Copyright 2022 DigitalOcean This code is licensed under the MIT License. You may obtain a copy of the License at @@ -36,4 +36,5 @@ export default { globalConfig: 'Konfiguracja globalna', setup: 'Setup', configFiles: 'Pliki konfiguracyjne', + copied: 'Skopiowane', }; diff --git a/src/nginxconfig/i18n/pt-br/templates/app.js b/src/nginxconfig/i18n/pt-br/templates/app.js index 627a0a4d..03002232 100644 --- a/src/nginxconfig/i18n/pt-br/templates/app.js +++ b/src/nginxconfig/i18n/pt-br/templates/app.js @@ -1,5 +1,5 @@ /* -Copyright 2020 DigitalOcean +Copyright 2022 DigitalOcean This code is licensed under the MIT License. You may obtain a copy of the License at @@ -36,4 +36,5 @@ export default { globalConfig: 'Configuração global', setup: 'Configurar', configFiles: 'Arquivos de configuração', + copied: 'Copiado', }; diff --git a/src/nginxconfig/i18n/ru/templates/app.js b/src/nginxconfig/i18n/ru/templates/app.js index c2bb15cb..119b77fb 100644 --- a/src/nginxconfig/i18n/ru/templates/app.js +++ b/src/nginxconfig/i18n/ru/templates/app.js @@ -1,5 +1,5 @@ /* -Copyright 2021 DigitalOcean +Copyright 2022 DigitalOcean This code is licensed under the MIT License. You may obtain a copy of the License at @@ -36,4 +36,5 @@ export default { globalConfig: 'Глобальная конфигурация', setup: 'Настройка', configFiles: 'Файлы конфигурации', + copied: 'Скопировано', }; diff --git a/src/nginxconfig/i18n/zh-cn/templates/app.js b/src/nginxconfig/i18n/zh-cn/templates/app.js index 7c382f0a..14b37bcb 100644 --- a/src/nginxconfig/i18n/zh-cn/templates/app.js +++ b/src/nginxconfig/i18n/zh-cn/templates/app.js @@ -1,5 +1,5 @@ /* -Copyright 2020 DigitalOcean +Copyright 2022 DigitalOcean This code is licensed under the MIT License. You may obtain a copy of the License at @@ -36,4 +36,5 @@ export default { globalConfig: '全局配置', setup: '使用配置', configFiles: '配置文件', + copied: '已复制', }; diff --git a/src/nginxconfig/i18n/zh-tw/templates/app.js b/src/nginxconfig/i18n/zh-tw/templates/app.js index caa0c94a..266d48f9 100644 --- a/src/nginxconfig/i18n/zh-tw/templates/app.js +++ b/src/nginxconfig/i18n/zh-tw/templates/app.js @@ -36,4 +36,5 @@ export default { globalConfig: '全域設定', setup: '使用設定', configFiles: '設定檔', + copied: '已復制', }; diff --git a/src/nginxconfig/templates/setup.vue b/src/nginxconfig/templates/setup.vue index c1091090..c9be8a1c 100644 --- a/src/nginxconfig/templates/setup.vue +++ b/src/nginxconfig/templates/setup.vue @@ -150,9 +150,7 @@ THE SOFTWARE. return this.tarContents().base64(path); }, setupCopy(elm) { - const originalText = elm.textContent; - - const resetText = () => { + const resetText = (originalText) => { setTimeout(() => { elm.textContent = originalText; }, 5000); @@ -163,14 +161,16 @@ THE SOFTWARE. }); clipboard.on('success', e => { - elm.textContent = 'Copied'; + const originalTextCopy = elm.textContent; + elm.textContent = this.$t('templates.app.copied'); e.clearSelection(); - resetText(); + resetText(originalTextCopy); }); clipboard.on('error', () => { + const originalTextCopy = elm.textContent; elm.textContent = 'Press Ctrl + C to copy'; - resetText(); + resetText(originalTextCopy); }); }, showTab(target) {