From 97b175ab4d672af4a4f485011768177c2f10751f Mon Sep 17 00:00:00 2001 From: Ippei Sumida Date: Thu, 16 Jun 2022 23:37:27 +0900 Subject: [PATCH] Add Japanese translation (#368) * Add Japanese. * Change copyright's year 20** to 2022. * update translations in ja. - templates.globalSections.performance.disableHtmlCaching - templates.globalSections.performance.enableDisableHtmlCaching * Change copyright's year 20** to 2022 every languages.js. * correct according to review findings. --- src/nginxconfig/i18n/de/languages.js | 3 +- src/nginxconfig/i18n/en/languages.js | 3 +- src/nginxconfig/i18n/es/languages.js | 3 +- src/nginxconfig/i18n/fr/languages.js | 3 +- src/nginxconfig/i18n/ja/common.js | 48 ++++++++++++++++ src/nginxconfig/i18n/ja/index.js | 31 ++++++++++ src/nginxconfig/i18n/ja/languages.js | 38 +++++++++++++ src/nginxconfig/i18n/ja/templates/app.js | 39 +++++++++++++ .../i18n/ja/templates/callouts/contribute.js | 30 ++++++++++ .../i18n/ja/templates/callouts/droplet.js | 30 ++++++++++ .../i18n/ja/templates/callouts/index.js | 30 ++++++++++ .../ja/templates/domain_sections/https.js | 48 ++++++++++++++++ .../ja/templates/domain_sections/index.js | 38 +++++++++++++ .../ja/templates/domain_sections/logging.js | 32 +++++++++++ .../ja/templates/domain_sections/onion.js | 36 ++++++++++++ .../i18n/ja/templates/domain_sections/php.js | 57 +++++++++++++++++++ .../ja/templates/domain_sections/presets.js | 33 +++++++++++ .../ja/templates/domain_sections/python.js | 36 ++++++++++++ .../ja/templates/domain_sections/restrict.js | 30 ++++++++++ .../domain_sections/reverse_proxy.js | 34 +++++++++++ .../ja/templates/domain_sections/routing.js | 35 ++++++++++++ .../ja/templates/domain_sections/server.js | 37 ++++++++++++ src/nginxconfig/i18n/ja/templates/footer.js | 39 +++++++++++++ .../ja/templates/global_sections/docker.js | 41 +++++++++++++ .../ja/templates/global_sections/https.js | 52 +++++++++++++++++ .../ja/templates/global_sections/index.js | 37 ++++++++++++ .../ja/templates/global_sections/logging.js | 41 +++++++++++++ .../ja/templates/global_sections/nginx.js | 32 +++++++++++ .../templates/global_sections/performance.js | 44 ++++++++++++++ .../ja/templates/global_sections/python.js | 32 +++++++++++ .../global_sections/reverse_proxy.js | 36 ++++++++++++ .../ja/templates/global_sections/security.js | 32 +++++++++++ .../ja/templates/global_sections/tools.js | 53 +++++++++++++++++ src/nginxconfig/i18n/ja/templates/index.js | 35 ++++++++++++ src/nginxconfig/i18n/ja/templates/setup.js | 30 ++++++++++ .../ja/templates/setup_sections/certbot.js | 39 +++++++++++++ .../ja/templates/setup_sections/download.js | 40 +++++++++++++ .../ja/templates/setup_sections/go_live.js | 33 +++++++++++ .../i18n/ja/templates/setup_sections/index.js | 32 +++++++++++ .../i18n/ja/templates/setup_sections/ssl.js | 34 +++++++++++ src/nginxconfig/i18n/pl/languages.js | 3 +- src/nginxconfig/i18n/pt-br/languages.js | 3 +- src/nginxconfig/i18n/ru/languages.js | 3 +- src/nginxconfig/i18n/zh-cn/languages.js | 3 +- src/nginxconfig/i18n/zh-tw/languages.js | 3 +- src/nginxconfig/util/language_packs.js | 1 + 46 files changed, 1363 insertions(+), 9 deletions(-) create mode 100644 src/nginxconfig/i18n/ja/common.js create mode 100644 src/nginxconfig/i18n/ja/index.js create mode 100644 src/nginxconfig/i18n/ja/languages.js create mode 100644 src/nginxconfig/i18n/ja/templates/app.js create mode 100644 src/nginxconfig/i18n/ja/templates/callouts/contribute.js create mode 100644 src/nginxconfig/i18n/ja/templates/callouts/droplet.js create mode 100644 src/nginxconfig/i18n/ja/templates/callouts/index.js create mode 100644 src/nginxconfig/i18n/ja/templates/domain_sections/https.js create mode 100644 src/nginxconfig/i18n/ja/templates/domain_sections/index.js create mode 100644 src/nginxconfig/i18n/ja/templates/domain_sections/logging.js create mode 100644 src/nginxconfig/i18n/ja/templates/domain_sections/onion.js create mode 100644 src/nginxconfig/i18n/ja/templates/domain_sections/php.js create mode 100644 src/nginxconfig/i18n/ja/templates/domain_sections/presets.js create mode 100644 src/nginxconfig/i18n/ja/templates/domain_sections/python.js create mode 100644 src/nginxconfig/i18n/ja/templates/domain_sections/restrict.js create mode 100644 src/nginxconfig/i18n/ja/templates/domain_sections/reverse_proxy.js create mode 100644 src/nginxconfig/i18n/ja/templates/domain_sections/routing.js create mode 100644 src/nginxconfig/i18n/ja/templates/domain_sections/server.js create mode 100644 src/nginxconfig/i18n/ja/templates/footer.js create mode 100644 src/nginxconfig/i18n/ja/templates/global_sections/docker.js create mode 100644 src/nginxconfig/i18n/ja/templates/global_sections/https.js create mode 100644 src/nginxconfig/i18n/ja/templates/global_sections/index.js create mode 100644 src/nginxconfig/i18n/ja/templates/global_sections/logging.js create mode 100644 src/nginxconfig/i18n/ja/templates/global_sections/nginx.js create mode 100644 src/nginxconfig/i18n/ja/templates/global_sections/performance.js create mode 100644 src/nginxconfig/i18n/ja/templates/global_sections/python.js create mode 100644 src/nginxconfig/i18n/ja/templates/global_sections/reverse_proxy.js create mode 100644 src/nginxconfig/i18n/ja/templates/global_sections/security.js create mode 100644 src/nginxconfig/i18n/ja/templates/global_sections/tools.js create mode 100644 src/nginxconfig/i18n/ja/templates/index.js create mode 100644 src/nginxconfig/i18n/ja/templates/setup.js create mode 100644 src/nginxconfig/i18n/ja/templates/setup_sections/certbot.js create mode 100644 src/nginxconfig/i18n/ja/templates/setup_sections/download.js create mode 100644 src/nginxconfig/i18n/ja/templates/setup_sections/go_live.js create mode 100644 src/nginxconfig/i18n/ja/templates/setup_sections/index.js create mode 100644 src/nginxconfig/i18n/ja/templates/setup_sections/ssl.js diff --git a/src/nginxconfig/i18n/de/languages.js b/src/nginxconfig/i18n/de/languages.js index 371f35f..3723da9 100644 --- a/src/nginxconfig/i18n/de/languages.js +++ b/src/nginxconfig/i18n/de/languages.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 @@ -34,4 +34,5 @@ export default { ru: 'Russisch', pl: 'Polnisch', de: 'Deutsch', + ja: 'Japanisch', }; diff --git a/src/nginxconfig/i18n/en/languages.js b/src/nginxconfig/i18n/en/languages.js index eb3b7f1..5cb3060 100644 --- a/src/nginxconfig/i18n/en/languages.js +++ b/src/nginxconfig/i18n/en/languages.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 @@ -34,4 +34,5 @@ export default { ru: 'Russian', pl: 'Polish', de: 'German', + ja: 'Japanese', }; diff --git a/src/nginxconfig/i18n/es/languages.js b/src/nginxconfig/i18n/es/languages.js index 44490eb..1311a5b 100644 --- a/src/nginxconfig/i18n/es/languages.js +++ b/src/nginxconfig/i18n/es/languages.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 @@ -34,4 +34,5 @@ export default { ru: 'Ruso', pl: 'Polaco', de: 'Alemán', + ja: 'Japonés', }; diff --git a/src/nginxconfig/i18n/fr/languages.js b/src/nginxconfig/i18n/fr/languages.js index ded825f..4316d64 100644 --- a/src/nginxconfig/i18n/fr/languages.js +++ b/src/nginxconfig/i18n/fr/languages.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 @@ -34,4 +34,5 @@ export default { ru: 'Russe', pl: 'Polonais', de: 'Allemand', + ja: 'Japonais', }; diff --git a/src/nginxconfig/i18n/ja/common.js b/src/nginxconfig/i18n/ja/common.js new file mode 100644 index 0000000..17904e6 --- /dev/null +++ b/src/nginxconfig/i18n/ja/common.js @@ -0,0 +1,48 @@ +/* +Copyright 2022 DigitalOcean + +This code is licensed under the MIT License. +You may obtain a copy of the License at +https://github.com/digitalocean/nginxconfig.io/blob/master/LICENSE or https://mit-license.org/ + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and / or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions : + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. +*/ + +export default { + back: '戻る', + next: '次へ', + enable: '有効にする', + php: 'PHP', + ssl: 'SSL', + nginx: 'NGINX', + http: 'HTTP', + https: 'HTTPS', + letsEncrypt: 'Let\'s Encrypt', + python: 'Python', + wordPress: 'WordPress', + drupal: 'Drupal', + magento: 'Magento', + joomla: 'Joomla', + django: 'Django', + logging: 'ログ', + reverseProxy: 'リバースプロキシ', + reverseProxyLower: 'リバースプロキシ', + restrict: '制限', + path: 'パス', +}; diff --git a/src/nginxconfig/i18n/ja/index.js b/src/nginxconfig/i18n/ja/index.js new file mode 100644 index 0000000..997a0b9 --- /dev/null +++ b/src/nginxconfig/i18n/ja/index.js @@ -0,0 +1,31 @@ +/* +Copyright 2022 DigitalOcean + +This code is licensed under the MIT License. +You may obtain a copy of the License at +https://github.com/digitalocean/nginxconfig.io/blob/master/LICENSE or https://mit-license.org/ + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and / or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions : + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. +*/ + +import common from './common'; +import languages from './languages'; +import templates from './templates'; + +export default { common, languages, templates }; diff --git a/src/nginxconfig/i18n/ja/languages.js b/src/nginxconfig/i18n/ja/languages.js new file mode 100644 index 0000000..c164518 --- /dev/null +++ b/src/nginxconfig/i18n/ja/languages.js @@ -0,0 +1,38 @@ +/* +Copyright 2022 DigitalOcean + +This code is licensed under the MIT License. +You may obtain a copy of the License at +https://github.com/digitalocean/nginxconfig.io/blob/master/LICENSE or https://mit-license.org/ + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and / or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions : + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. +*/ + +export default { + en: '英語', + es: 'スペイン語', + zhCN: '中国語 (簡体字)', + zhTW: '中国語 (繁体字)', + ptBR: 'ポルトガル語 (ブラジル)', + fr: 'フランス語', + ru: 'ロシア語', + pl: 'ポーランド語', + de: 'ドイツ語', + ja: '日本語', +}; diff --git a/src/nginxconfig/i18n/ja/templates/app.js b/src/nginxconfig/i18n/ja/templates/app.js new file mode 100644 index 0000000..d735fb6 --- /dev/null +++ b/src/nginxconfig/i18n/ja/templates/app.js @@ -0,0 +1,39 @@ +/* +Copyright 2022 DigitalOcean + +This code is licensed under the MIT License. +You may obtain a copy of the License at +https://github.com/digitalocean/nginxconfig.io/blob/master/LICENSE or https://mit-license.org/ + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and / or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions : + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. +*/ + +import common from '../common'; + +export default { + title: `${common.nginx}設定`, + description: `パフォーマンス、安全性、安定性に優れた ${common.nginx} サーバーを簡単に構成できます。`, + singleColumnMode: 'シングルカラムモード', + splitColumnMode: '並列表示モード', + perWebsiteConfig: 'Webサイトごとの設定', + addSite: 'サイトを追加する', + globalConfig: 'グローバル設定', + setup: 'セットアップ', + configFiles: '設定ファイル', +}; diff --git a/src/nginxconfig/i18n/ja/templates/callouts/contribute.js b/src/nginxconfig/i18n/ja/templates/callouts/contribute.js new file mode 100644 index 0000000..6312749 --- /dev/null +++ b/src/nginxconfig/i18n/ja/templates/callouts/contribute.js @@ -0,0 +1,30 @@ +/* +Copyright 2022 DigitalOcean + +This code is licensed under the MIT License. +You may obtain a copy of the License at +https://github.com/digitalocean/nginxconfig.io/blob/master/LICENSE or https://mit-license.org/ + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and / or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions : + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. +*/ + +export default { + wantToContributeChanges: '👋 新機能や変更の提案や実装、翻訳をしてみませんか?', + getInvolvedOnGitHub: 'GitHub で参加しよう', +}; diff --git a/src/nginxconfig/i18n/ja/templates/callouts/droplet.js b/src/nginxconfig/i18n/ja/templates/callouts/droplet.js new file mode 100644 index 0000000..a7a0032 --- /dev/null +++ b/src/nginxconfig/i18n/ja/templates/callouts/droplet.js @@ -0,0 +1,30 @@ +/* +Copyright 2022 DigitalOcean + +This code is licensed under the MIT License. +You may obtain a copy of the License at +https://github.com/digitalocean/nginxconfig.io/blob/master/LICENSE or https://mit-license.org/ + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and / or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions : + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. +*/ + +export default { + lookingForAPlaceToDeploy: '👋 この新しい設定のデプロイ先をお探しですか?', + tryOutDigitalOceansDroplet: 'DigitalOceanの NGINXを使ったLEMP Droplet を試してみましょう', +}; diff --git a/src/nginxconfig/i18n/ja/templates/callouts/index.js b/src/nginxconfig/i18n/ja/templates/callouts/index.js new file mode 100644 index 0000000..af823bb --- /dev/null +++ b/src/nginxconfig/i18n/ja/templates/callouts/index.js @@ -0,0 +1,30 @@ +/* +Copyright 2022 DigitalOcean + +This code is licensed under the MIT License. +You may obtain a copy of the License at +https://github.com/digitalocean/nginxconfig.io/blob/master/LICENSE or https://mit-license.org/ + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and / or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions : + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. +*/ + +import droplet from './droplet'; +import contribute from './contribute'; + +export default { droplet, contribute }; diff --git a/src/nginxconfig/i18n/ja/templates/domain_sections/https.js b/src/nginxconfig/i18n/ja/templates/domain_sections/https.js new file mode 100644 index 0000000..966066f --- /dev/null +++ b/src/nginxconfig/i18n/ja/templates/domain_sections/https.js @@ -0,0 +1,48 @@ +/* +Copyright 2022 DigitalOcean + +This code is licensed under the MIT License. +You may obtain a copy of the License at +https://github.com/digitalocean/nginxconfig.io/blob/master/LICENSE or https://mit-license.org/ + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and / or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions : + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. +*/ + +import common from '../../common'; + +export default { + enableEncryptedSslConnection: `暗号化された ${common.ssl} 接続を${common.enable}`, + http2: `${common.http}/2`, + enableHttp2Connections: `${common.http}/2 接続を${common.enable}`, + http3: `${common.http}/3`, + enableHttp3Connections: `${common.http}/3 接続を${common.enable}`, + forceHttps: `${common.https}を強制する`, + hsts: 'HSTS', + enableStrictTransportSecurity: `Strict Transport Security を${common.enable}, HTTPS接続が必要`, + enableIncludeSubDomains: `includeSubDomains ディレクティブを${common.enable}, 全てのサブドメインでHTTPS接続が必要`, + enablePreload: `プリロードディレクティブを${common.enable}, HTTPS接続のみを常に行うようブラウザに指示します`, + certificationType: '証明書', + customCertificate: 'カスタム証明書', + letsEncryptEmail: `${common.letsEncrypt} Eメールアドレス`, + http3IsANonStandardModule: 'HTTP/3 は NGINX の標準モジュールではありません, くわしくは ', + http3NginxQuicReadme: 'NGINX QUIC readme', + http3OrThe: ' もしくは ', + http3CloudflareQuicheProject: 'Cloudflare quicheプロジェクト', + http3ForBuildingNginxWithHttp3: ' のHTTP/3を使ったNGINXの構築方法を確認してください!', +}; diff --git a/src/nginxconfig/i18n/ja/templates/domain_sections/index.js b/src/nginxconfig/i18n/ja/templates/domain_sections/index.js new file mode 100644 index 0000000..070501d --- /dev/null +++ b/src/nginxconfig/i18n/ja/templates/domain_sections/index.js @@ -0,0 +1,38 @@ +/* +Copyright 2022 DigitalOcean + +This code is licensed under the MIT License. +You may obtain a copy of the License at +https://github.com/digitalocean/nginxconfig.io/blob/master/LICENSE or https://mit-license.org/ + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and / or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions : + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. +*/ + +import https from './https'; +import logging from './logging'; +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'; +import restrict from './restrict'; +import onion from './onion'; + +export default { https, logging, php, presets, python, reverseProxy, routing, server, restrict, onion }; diff --git a/src/nginxconfig/i18n/ja/templates/domain_sections/logging.js b/src/nginxconfig/i18n/ja/templates/domain_sections/logging.js new file mode 100644 index 0000000..b1ff230 --- /dev/null +++ b/src/nginxconfig/i18n/ja/templates/domain_sections/logging.js @@ -0,0 +1,32 @@ +/* +Copyright 2022 DigitalOcean + +This code is licensed under the MIT License. +You may obtain a copy of the License at +https://github.com/digitalocean/nginxconfig.io/blob/master/LICENSE or https://mit-license.org/ + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and / or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions : + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. +*/ + +import common from '../../common'; + +export default { + byDomain: '(ドメインごと)', + enableForThisDomain: `このドメインで${common.enable}`, +}; diff --git a/src/nginxconfig/i18n/ja/templates/domain_sections/onion.js b/src/nginxconfig/i18n/ja/templates/domain_sections/onion.js new file mode 100644 index 0000000..decd6fd --- /dev/null +++ b/src/nginxconfig/i18n/ja/templates/domain_sections/onion.js @@ -0,0 +1,36 @@ +/* +Copyright 2022 DigitalOcean + +This code is licensed under the MIT License. +You may obtain a copy of the License at +https://github.com/digitalocean/nginxconfig.io/blob/master/LICENSE or https://mit-license.org/ + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and / or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions : + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. +*/ + +const onion = 'Onion'; + +export default { + onion, + onionLocation: `${onion} location`, + provideAnOnionLocationToSetOnionLocationHeader: 'サイトのOnion-Locationヘッダを設定するために、Onion locationアドレスを提供する。', + letsVisitorsKnownOnionServicesIsAvailable: 'これにより、あなたのサイトのオニオンサービス版がTorブラウザで利用可能であることをサイト訪問者に知らせます。', + learnMoreAboutOnionServices: 'Onion サービスについて詳しくはこちら', + onionLocationExpectedToEndWithOnion: 'Onion location アドレスは通常 `.onion` で終わります。', +}; diff --git a/src/nginxconfig/i18n/ja/templates/domain_sections/php.js b/src/nginxconfig/i18n/ja/templates/domain_sections/php.js new file mode 100644 index 0000000..cae645e --- /dev/null +++ b/src/nginxconfig/i18n/ja/templates/domain_sections/php.js @@ -0,0 +1,57 @@ +/* +Copyright 2022 DigitalOcean + +This code is licensed under the MIT License. +You may obtain a copy of the License at +https://github.com/digitalocean/nginxconfig.io/blob/master/LICENSE or https://mit-license.org/ + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and / or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions : + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. +*/ + +import common from '../../common'; + +export default { + phpIsDisabled: `${common.php} は無効です。`, + phpCannotBeEnabledWithReverseProxy: `リバースプロキシが有効な場合は、${common.php} を有効にすることはできません。`, + phpCannotBeEnabledWithPython: `${common.python} が有効な場合は、 ${common.php} を有効にすることはできません。`, + enablePhp: `${common.php} を${common.enable}`, + wordPressRules: `${common.wordPress} ルール`, + enableWordPressRules: `${common.wordPress} 用ルールを${common.enable}`, + drupalRules: `${common.drupal} ルール`, + enableDrupalRules: `${common.drupal} 用ルールを${common.enable}`, + magentoRules: `${common.magento} ルール`, + enableMagentoRules: `${common.magento} 用ルールを${common.enable}`, + joomlaRules: `${common.joomla} ルール`, + enableJoomlaRules: `${common.joomla} 用ルールを${common.enable}`, + phpServer: `${common.php} サーバ`, + phpBackupServer: `${common.php} バックアップサーバ`, + tcp: 'TCP', + hhvmSocket: 'HHVM socket', + php5Socket: '5.x socket', + php70Socket: '7.0 socket', + php71Socket: '7.1 socket', + php72Socket: '7.2 socket', + php73Socket: '7.3 socket', + php74Socket: '7.4 socket', + php80Socket: '8.0 socket', + php81Socket: '8.1 socket', + phpSocket: 'PHP socket', + custom: 'カスタム', + disabled: '無効', +}; diff --git a/src/nginxconfig/i18n/ja/templates/domain_sections/presets.js b/src/nginxconfig/i18n/ja/templates/domain_sections/presets.js new file mode 100644 index 0000000..9d3785a --- /dev/null +++ b/src/nginxconfig/i18n/ja/templates/domain_sections/presets.js @@ -0,0 +1,33 @@ +/* +Copyright 2022 DigitalOcean + +This code is licensed under the MIT License. +You may obtain a copy of the License at +https://github.com/digitalocean/nginxconfig.io/blob/master/LICENSE or https://mit-license.org/ + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and / or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions : + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. +*/ + +export default { + presets: 'プリセット', + itLooksLikeYouCustomisedTheConfig: 'このドメインの設定をカスタマイズしているようです。新しいプリセットを選択すると、カスタマイズした設定の一部がリセットまたは変更される場合があります。', + frontend: 'フロントエンド', + nodeJs: 'Node.js', + singlePageApplication: 'シングルページアプリケーション(SPA)', +}; diff --git a/src/nginxconfig/i18n/ja/templates/domain_sections/python.js b/src/nginxconfig/i18n/ja/templates/domain_sections/python.js new file mode 100644 index 0000000..ebe1342 --- /dev/null +++ b/src/nginxconfig/i18n/ja/templates/domain_sections/python.js @@ -0,0 +1,36 @@ +/* +Copyright 2022 DigitalOcean + +This code is licensed under the MIT License. +You may obtain a copy of the License at +https://github.com/digitalocean/nginxconfig.io/blob/master/LICENSE or https://mit-license.org/ + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and / or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions : + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. +*/ + +import common from '../../common'; + +export default { + pythonIsDisabled: `${common.python} は無効です。`, + pythonCannotBeEnabledWithReverseProxy: `リバースプロキシが有効な場合は、${common.python} を有効にすることはできません。`, + pythonCannotBeEnabledWithPhp: `${common.php} が有効な場合は、 ${common.python} を有効にすることはできません。`, + enablePython: `${common.python}を${common.enable}`, + djangoRules: `${common.django} ルール`, + enableDjangoRules: `${common.django} 用ルールを${common.enable}`, +}; diff --git a/src/nginxconfig/i18n/ja/templates/domain_sections/restrict.js b/src/nginxconfig/i18n/ja/templates/domain_sections/restrict.js new file mode 100644 index 0000000..119fc20 --- /dev/null +++ b/src/nginxconfig/i18n/ja/templates/domain_sections/restrict.js @@ -0,0 +1,30 @@ +/* +Copyright 2022 DigitalOcean + +This code is licensed under the MIT License. +You may obtain a copy of the License at +https://github.com/digitalocean/nginxconfig.io/blob/master/LICENSE or https://mit-license.org/ + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and / or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions : + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. +*/ + +export default { + disableForThisDomain: 'このドメインで無効にする', + responseCode: 'レスポンスコード', +}; diff --git a/src/nginxconfig/i18n/ja/templates/domain_sections/reverse_proxy.js b/src/nginxconfig/i18n/ja/templates/domain_sections/reverse_proxy.js new file mode 100644 index 0000000..d7add45 --- /dev/null +++ b/src/nginxconfig/i18n/ja/templates/domain_sections/reverse_proxy.js @@ -0,0 +1,34 @@ +/* +Copyright 2022 DigitalOcean + +This code is licensed under the MIT License. +You may obtain a copy of the License at +https://github.com/digitalocean/nginxconfig.io/blob/master/LICENSE or https://mit-license.org/ + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and / or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions : + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. +*/ + +import common from '../../common'; + +export default { + reverseProxyIsDisabled: `${common.reverseProxy} は無効です。`, + reverseProxyCannotBeEnabledWithPhp: `${common.php} が有効な場合は、 ${common.reverseProxy} を有効にすることはできません。`, + reverseProxyCannotBeEnabledWithPython: `${common.python} が有効な場合は、 ${common.reverseProxy} を有効にすることはできません。`, + enableReverseProxy: `${common.reverseProxyLower}を${common.enable}`, +}; diff --git a/src/nginxconfig/i18n/ja/templates/domain_sections/routing.js b/src/nginxconfig/i18n/ja/templates/domain_sections/routing.js new file mode 100644 index 0000000..719fe11 --- /dev/null +++ b/src/nginxconfig/i18n/ja/templates/domain_sections/routing.js @@ -0,0 +1,35 @@ +/* +Copyright 2022 DigitalOcean + +This code is licensed under the MIT License. +You may obtain a copy of the License at +https://github.com/digitalocean/nginxconfig.io/blob/master/LICENSE or https://mit-license.org/ + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and / or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions : + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. +*/ + +import common from '../../common'; + +export default { + fallbackRouting: 'フォールバックルーティング', + fallbackRoutingPhpPath: `フォールバックルーティング ${common.php} パス`, + legacyPhpRouting: `レガシーな ${common.php} ルーティング`, + enableLegacyRouting: `レガシーなルーティングを${common.enable}`, + routing: 'ルーティング', +}; diff --git a/src/nginxconfig/i18n/ja/templates/domain_sections/server.js b/src/nginxconfig/i18n/ja/templates/domain_sections/server.js new file mode 100644 index 0000000..c6073cb --- /dev/null +++ b/src/nginxconfig/i18n/ja/templates/domain_sections/server.js @@ -0,0 +1,37 @@ +/* +Copyright 2022 DigitalOcean + +This code is licensed under the MIT License. +You may obtain a copy of the License at +https://github.com/digitalocean/nginxconfig.io/blob/master/LICENSE or https://mit-license.org/ + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and / or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions : + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. +*/ + +export default { + domain: 'ドメイン', + documentRoot: 'ドキュメントルート', + oneOrMoreOtherDomainsAreAlsoNamed: 'このドメインは別の設定で利用されています', + thisWillCauseIssuesWithConfigGeneration: 'これは、設定ファイル生成で問題を引き起こします。', + wwwSubdomain: 'www サブドメイン', + cdnSubdomain: 'CDN サブドメイン', + redirectSubdomains: 'リダイレクトサブドメイン', + server: 'サーバ', + listen: 'リッスン', +}; diff --git a/src/nginxconfig/i18n/ja/templates/footer.js b/src/nginxconfig/i18n/ja/templates/footer.js new file mode 100644 index 0000000..c2db52b --- /dev/null +++ b/src/nginxconfig/i18n/ja/templates/footer.js @@ -0,0 +1,39 @@ +/* +Copyright 2022 DigitalOcean + +This code is licensed under the MIT License. +You may obtain a copy of the License at +https://github.com/digitalocean/nginxconfig.io/blob/master/LICENSE or https://mit-license.org/ + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and / or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions : + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. +*/ + +export default { + backToTop: 'TOPへ戻る', + thisToolIs: 'このツールは', + openSourceOnGitHub: 'オープンソースとしてGitHub上に', + underThe: '', + mit: 'MIT', + license: 'ライセンスで公開されています。', + weWelcomeFeedbackAndContributions: 'リードバックやコントリビュートは大歓迎です。', + originallyCreatedBy: 'オリジナル開発者: ', + balintSzekeres: 'Bálint Szekeres', + maintainedBy: 'メンテナンス: ', + digitalOcean: 'DigitalOcean', +}; diff --git a/src/nginxconfig/i18n/ja/templates/global_sections/docker.js b/src/nginxconfig/i18n/ja/templates/global_sections/docker.js new file mode 100644 index 0000000..f51bb0e --- /dev/null +++ b/src/nginxconfig/i18n/ja/templates/global_sections/docker.js @@ -0,0 +1,41 @@ +/* +Copyright 2022 DigitalOcean + +This code is licensed under the MIT License. +You may obtain a copy of the License at +https://github.com/digitalocean/nginxconfig.io/blob/master/LICENSE or https://mit-license.org/ + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and / or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions : + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. +*/ + +import common from '../../common'; + +const docker = 'Docker'; +const dockerfile = 'Dockerfile'; + +export default { + docker, + dockerfile, + dockerCompose: `${docker} Compose`, + applyDockerTweaks: `${docker} の調整を適用する`, + applyDockerTweaksForNginx: `${common.nginx} を ${docker} 上で動作させるため、設定の微調整を適用します。`, + applyDockerTweaksExplainer: `${common.nginx} ユーザを nginx に、 pid を /var/run/nginx.pid に変更してください。`, + includeDockerfile: `${common.nginx} を ${docker} 上で動作させるための ${dockerfile} を含む`, + includeDockerCompose: `${common.nginx} with docker-compose で動作させるための docker-compose.yaml を含む`, +}; diff --git a/src/nginxconfig/i18n/ja/templates/global_sections/https.js b/src/nginxconfig/i18n/ja/templates/global_sections/https.js new file mode 100644 index 0000000..4d8d494 --- /dev/null +++ b/src/nginxconfig/i18n/ja/templates/global_sections/https.js @@ -0,0 +1,52 @@ +/* +Copyright 2022 DigitalOcean + +This code is licensed under the MIT License. +You may obtain a copy of the License at +https://github.com/digitalocean/nginxconfig.io/blob/master/LICENSE or https://mit-license.org/ + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and / or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions : + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. +*/ + +import common from '../../common'; + +const mozilla = 'Mozilla'; +const ipv4 = 'IPv4'; +const ipv6 = 'IPv6'; + +export default { + sslProfile: `${common.ssl} プロファイル`, + httpsMustBeEnabledOnOneSite: `グローバルな ${common.https} の設定を行うには、少なくとも1つのサイトで ${common.https} が有効になっている必要があります。`, + portReuse: 'Reuseport', + enableReuseOfPort: `ワーカーごとにリスニングソケットを生成するために reuseport を${common.enable}`, + ocspDnsResolvers: 'OCSP DNS Resolvers', + cloudflareResolver: 'Cloudflare Resolver', + googlePublicDns: 'Google Public DNS', + openDns: 'OpenDNS', + quad9: 'Quad9', + verisign: 'Verisign', + letsEncryptWebroot: `${common.letsEncrypt} webrootディレクトリ`, + letsEncryptCertRoot: `${common.letsEncrypt} 証明書ディレクトリ`, + mozillaModern: `${mozilla} Modern`, + mozillaIntermediate: `${mozilla} Intermediate`, + mozillaOld: `${mozilla} Old`, + ipv4Only: `${ipv4} のみ`, + ipv6Only: `${ipv6} のみ`, + ipv4AndIpv6: `${ipv4} と ${ipv6}`, +}; diff --git a/src/nginxconfig/i18n/ja/templates/global_sections/index.js b/src/nginxconfig/i18n/ja/templates/global_sections/index.js new file mode 100644 index 0000000..e87a3b3 --- /dev/null +++ b/src/nginxconfig/i18n/ja/templates/global_sections/index.js @@ -0,0 +1,37 @@ +/* +Copyright 2022 DigitalOcean + +This code is licensed under the MIT License. +You may obtain a copy of the License at +https://github.com/digitalocean/nginxconfig.io/blob/master/LICENSE or https://mit-license.org/ + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and / or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions : + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. +*/ + +import https from './https'; +import logging from './logging'; +import nginx from './nginx'; +import performance from './performance'; +import python from './python'; +import reverseProxy from './reverse_proxy'; +import security from './security'; +import tools from './tools'; +import docker from './docker'; + +export default { https, logging, nginx, performance, python, reverseProxy, security, tools, docker }; diff --git a/src/nginxconfig/i18n/ja/templates/global_sections/logging.js b/src/nginxconfig/i18n/ja/templates/global_sections/logging.js new file mode 100644 index 0000000..0a85911 --- /dev/null +++ b/src/nginxconfig/i18n/ja/templates/global_sections/logging.js @@ -0,0 +1,41 @@ +/* +Copyright 2022 DigitalOcean + +This code is licensed under the MIT License. +You may obtain a copy of the License at +https://github.com/digitalocean/nginxconfig.io/blob/master/LICENSE or https://mit-license.org/ + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and / or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions : + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. +*/ + +import common from '../../common'; + +export default { + enableFileNotFoundErrorLogging: `FILE NOT FOUND エラーのロギングを${common.enable}`, + logformat: 'log_format', + enableCloudflare: 'デフォルトのログフォーマットに Cloudflare のリクエストヘッダを追加する', + cfRay: 'CF-Ray', + cfConnectingIp: 'CF-Connecting-IP', + xForwardedFor: 'X-Forwarded-For', + xForwardedProto: 'X-Forwarded-Proto', + trueClientIp: 'True-Client-IP', + cfIpCountry: 'CF-IPCountry', + cfVisitor: 'CF-Visitor', + cdnLoop: 'CDN-Loop', +}; diff --git a/src/nginxconfig/i18n/ja/templates/global_sections/nginx.js b/src/nginxconfig/i18n/ja/templates/global_sections/nginx.js new file mode 100644 index 0000000..cbb6ae4 --- /dev/null +++ b/src/nginxconfig/i18n/ja/templates/global_sections/nginx.js @@ -0,0 +1,32 @@ +/* +Copyright 2022 DigitalOcean + +This code is licensed under the MIT License. +You may obtain a copy of the License at +https://github.com/digitalocean/nginxconfig.io/blob/master/LICENSE or https://mit-license.org/ + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and / or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions : + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. +*/ + +import common from '../../common'; + +export default { + nginxConfigDirectory: `${common.nginx} 設定ディレクトリ`, + mb: 'MB', +}; diff --git a/src/nginxconfig/i18n/ja/templates/global_sections/performance.js b/src/nginxconfig/i18n/ja/templates/global_sections/performance.js new file mode 100644 index 0000000..1445c97 --- /dev/null +++ b/src/nginxconfig/i18n/ja/templates/global_sections/performance.js @@ -0,0 +1,44 @@ +/* +Copyright 2022 DigitalOcean + +This code is licensed under the MIT License. +You may obtain a copy of the License at +https://github.com/digitalocean/nginxconfig.io/blob/master/LICENSE or https://mit-license.org/ + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and / or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions : + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. +*/ + +import common from '../../common'; + +export default { + disableHtmlCaching: 'HTML キャッシュの無効化', + enableDisableHtmlCaching: 'HTML キャッシュを無効にする', + gzipCompression: 'Gzip 圧縮', + enableGzipCompression: `gzip 圧縮を${common.enable}`, + brotliCompression: 'Brotli 圧縮', + enableBrotliCompression: `brotli 圧縮を${common.enable}`, + brotliIsANonStandardModule: 'Brotli はNGINXの標準モジュールではありません, くわしくは ', + brotliGoogleNgxBrotliProject: 'Google ngx_brotli プロジェクト', + brotliForBuildingNginxWithBrotli: ' のBrotliを使ったNGINXの構築方法を確認してください!', + expirationForAssets: 'アセットの有効期限', + expirationForMedia: 'メディアの有効期限', + expirationForSvgs: 'SVG の有効期限', + expirationForFonts: 'フォントの有効期限', + performance: 'パフォーマンス', +}; diff --git a/src/nginxconfig/i18n/ja/templates/global_sections/python.js b/src/nginxconfig/i18n/ja/templates/global_sections/python.js new file mode 100644 index 0000000..e2eba65 --- /dev/null +++ b/src/nginxconfig/i18n/ja/templates/global_sections/python.js @@ -0,0 +1,32 @@ +/* +Copyright 2022 DigitalOcean + +This code is licensed under the MIT License. +You may obtain a copy of the License at +https://github.com/digitalocean/nginxconfig.io/blob/master/LICENSE or https://mit-license.org/ + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and / or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions : + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. +*/ + +import common from '../../common'; + +export default { + pythonServer: `${common.python} サーバ`, + pythonMustBeEnabledOnOneSite: `グローバルな ${common.python} の設定を行うには、少なくとも1つのサイトで ${common.python} が有効になっている必要があります。`, +}; diff --git a/src/nginxconfig/i18n/ja/templates/global_sections/reverse_proxy.js b/src/nginxconfig/i18n/ja/templates/global_sections/reverse_proxy.js new file mode 100644 index 0000000..ede7c87 --- /dev/null +++ b/src/nginxconfig/i18n/ja/templates/global_sections/reverse_proxy.js @@ -0,0 +1,36 @@ +/* +Copyright 2022 DigitalOcean + +This code is licensed under the MIT License. +You may obtain a copy of the License at +https://github.com/digitalocean/nginxconfig.io/blob/master/LICENSE or https://mit-license.org/ + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and / or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions : + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. +*/ + +import common from '../../common'; + +const legacyXForwarded = 'Legacy X-Forwarded-* headers'; + +export default { + reverseProxyMustBeEnabledOnOneSite: `グローバルな ${common.reverseProxyLower} の設定を行うには、少なくとも1つのサイトで ${common.reverseProxy} が有効になっている必要があります。`, + seconds: '秒', + passOn: `${legacyXForwarded} が渡されます`, + remove: `${legacyXForwarded} は積極的に削除されます`, +}; diff --git a/src/nginxconfig/i18n/ja/templates/global_sections/security.js b/src/nginxconfig/i18n/ja/templates/global_sections/security.js new file mode 100644 index 0000000..2ff5593 --- /dev/null +++ b/src/nginxconfig/i18n/ja/templates/global_sections/security.js @@ -0,0 +1,32 @@ +/* +Copyright 2022 DigitalOcean + +This code is licensed under the MIT License. +You may obtain a copy of the License at +https://github.com/digitalocean/nginxconfig.io/blob/master/LICENSE or https://mit-license.org/ + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and / or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions : + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. +*/ + +import common from '../../common'; + +export default { + whenUsingWordPressUnsafeEvalIsOftenRequiredToAllowFunctionality: `${common.wordPress} を利用している場合、 script-src 'self' 'unsafe-inline' 'unsafe-eval'; は、管理画面を正しく機能させるために、コンテンツセキュリティポリシーで要求されることが多いようです。`, + security: 'セキュリティ', +}; diff --git a/src/nginxconfig/i18n/ja/templates/global_sections/tools.js b/src/nginxconfig/i18n/ja/templates/global_sections/tools.js new file mode 100644 index 0000000..ad1fb52 --- /dev/null +++ b/src/nginxconfig/i18n/ja/templates/global_sections/tools.js @@ -0,0 +1,53 @@ +/* +Copyright 2022 DigitalOcean + +This code is licensed under the MIT License. +You may obtain a copy of the License at +https://github.com/digitalocean/nginxconfig.io/blob/master/LICENSE or https://mit-license.org/ + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and / or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions : + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. +*/ + +import common from '../../common'; + +export default { + modularizedStructure: 'モジュール化された構造', + enableModularizedConfigFiles: `モジュール化された設定ファイルを${common.enable}`, + symlinkVhost: 'Symlink vhost', + enableSymLinksFrom: `シンボリックリンク を${common.enable} from`, + to: 'to', + shareConfiguration: '設定を共有する', + resetConfiguration: '設定をリセットする', + resetGlobalConfig: 'グローバル設定をリセットする', + resetAllDomains: '全てのドメインをリセットする', + removeAllDomains: '全てのドメインを削除する', + resetAllDomainsConfig: '全てのドメインの設定をリセットする', + resetDomainConfig: 'ドメインの設定をリセットする', + removeDomain: 'ドメインを削除する', + yesImSure: 'はい、大丈夫です', + noCancel: 'いいえ、キャンセルします', + tools: 'ツール', + resetGlobalConfigBody: 'グローバル設定の全ての設定をリセットします、よろしいですか?', + resetAllDomainsConfigBody: '全てのドメインの設定をリセットします、よろしいですか?', + removeAllDomainsBody: '全てのドメインを削除します、よろしいですか?', + areYouSureYouWantToResetAllConfigurationOptionsForThe: '次のドメインの設定をリセットします、よろしいですか?', + domain: '', + areYouSureYouWantToRemoveThe: '次のドメインの設定を削除します、よろしいですか?', + domainConfiguration: '', +}; diff --git a/src/nginxconfig/i18n/ja/templates/index.js b/src/nginxconfig/i18n/ja/templates/index.js new file mode 100644 index 0000000..f74847d --- /dev/null +++ b/src/nginxconfig/i18n/ja/templates/index.js @@ -0,0 +1,35 @@ +/* +Copyright 2022 DigitalOcean + +This code is licensed under the MIT License. +You may obtain a copy of the License at +https://github.com/digitalocean/nginxconfig.io/blob/master/LICENSE or https://mit-license.org/ + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and / or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions : + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. +*/ + +import app from './app'; +import setup from './setup'; +import footer from './footer'; +import domainSections from './domain_sections'; +import globalSections from './global_sections'; +import setupSections from './setup_sections'; +import callouts from './callouts'; + +export default { app, setup, footer, domainSections, globalSections, setupSections, callouts }; diff --git a/src/nginxconfig/i18n/ja/templates/setup.js b/src/nginxconfig/i18n/ja/templates/setup.js new file mode 100644 index 0000000..6c98b57 --- /dev/null +++ b/src/nginxconfig/i18n/ja/templates/setup.js @@ -0,0 +1,30 @@ +/* +Copyright 2022 DigitalOcean + +This code is licensed under the MIT License. +You may obtain a copy of the License at +https://github.com/digitalocean/nginxconfig.io/blob/master/LICENSE or https://mit-license.org/ + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and / or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions : + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. +*/ + +export default { + downloadConfig: '設定をダウンロードする', + copyBase64: 'Base64でコピーする', +}; diff --git a/src/nginxconfig/i18n/ja/templates/setup_sections/certbot.js b/src/nginxconfig/i18n/ja/templates/setup_sections/certbot.js new file mode 100644 index 0000000..fdfa458 --- /dev/null +++ b/src/nginxconfig/i18n/ja/templates/setup_sections/certbot.js @@ -0,0 +1,39 @@ +/* +Copyright 2022 DigitalOcean + +This code is licensed under the MIT License. +You may obtain a copy of the License at +https://github.com/digitalocean/nginxconfig.io/blob/master/LICENSE or https://mit-license.org/ + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and / or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions : + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. +*/ + +import common from '../../common'; + +const certbot = 'Certbot'; + +export default { + commentOutSslDirectivesInConfiguration: `設定中の ${common.ssl} 関連ディレクティブをコメントアウトします:`, + reloadYourNginxServer: `${common.nginx} サーバをリロードします:`, + obtainSslCertificatesFromLetsEncrypt: `${certbot} を利用して、 ${common.ssl} 証明書を ${common.letsEncrypt} から取得します:`, + uncommentSslDirectivesInConfiguration: `設定中の ${common.ssl} 関連ディレクティブのコメントアウトを外します:`, + configureCertbotToReloadNginxOnCertificateRenewal: `証明書の更新に成功したら ${certbot} が ${common.nginx} をリロードするように設定します:`, + certbotDoesNotNeedToBeSetupForYourConfiguration: `${certbot} は、${common.nginx}の設定に合わせて設定する必要はありません。`, + certbot, +}; diff --git a/src/nginxconfig/i18n/ja/templates/setup_sections/download.js b/src/nginxconfig/i18n/ja/templates/setup_sections/download.js new file mode 100644 index 0000000..721a3b3 --- /dev/null +++ b/src/nginxconfig/i18n/ja/templates/setup_sections/download.js @@ -0,0 +1,40 @@ +/* +Copyright 2022 DigitalOcean + +This code is licensed under the MIT License. +You may obtain a copy of the License at +https://github.com/digitalocean/nginxconfig.io/blob/master/LICENSE or https://mit-license.org/ + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and / or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions : + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. +*/ + +import common from '../../common'; + +export default { + downloadTheGeneratedConfig: '生成された設定ファイルをダウンロードします:', + andUploadItToYourServers: 'そして、ご利用のサーバの以下のディレクトリに設定ファイルを アップロードします', + directory: '。', + or: 'もしくは、', + copyBase64StringOfCompressedConfig: '設定が圧縮されたbase64文字列をコピーし', + pasteItInYourServersCommandLineAndExecute: '、 サーバのコマンドラインにペーストして実行します', + navigateToYourNginxConfigurationDirectoryOnYourServer: `サーバの ${common.nginx} の設定ディレクトリへ移動します:`, + createABackupOfYourCurrentNginxConfiguration: `現在の ${common.nginx} の設定をバックアップします:`, + extractTheNewCompressedConfigurationArchiveUsingTar: 'tar を使って、新しい設定の入った圧縮ファイルを展開します:', + download: 'ダウンロード', +}; diff --git a/src/nginxconfig/i18n/ja/templates/setup_sections/go_live.js b/src/nginxconfig/i18n/ja/templates/setup_sections/go_live.js new file mode 100644 index 0000000..39623f5 --- /dev/null +++ b/src/nginxconfig/i18n/ja/templates/setup_sections/go_live.js @@ -0,0 +1,33 @@ +/* +Copyright 2022 DigitalOcean + +This code is licensed under the MIT License. +You may obtain a copy of the License at +https://github.com/digitalocean/nginxconfig.io/blob/master/LICENSE or https://mit-license.org/ + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and / or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions : + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. +*/ + +import common from '../../common'; + +export default { + letsGoLive: '起動しよう!', + reloadNginxToLoadInYourNewConfiguration: `${common.nginx} をリロードして新しい設定を反映します:`, + goLive: '起動!', +}; diff --git a/src/nginxconfig/i18n/ja/templates/setup_sections/index.js b/src/nginxconfig/i18n/ja/templates/setup_sections/index.js new file mode 100644 index 0000000..8008ab4 --- /dev/null +++ b/src/nginxconfig/i18n/ja/templates/setup_sections/index.js @@ -0,0 +1,32 @@ +/* +Copyright 2022 DigitalOcean + +This code is licensed under the MIT License. +You may obtain a copy of the License at +https://github.com/digitalocean/nginxconfig.io/blob/master/LICENSE or https://mit-license.org/ + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and / or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions : + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. +*/ + +import certbot from './certbot'; +import download from './download'; +import goLive from './go_live'; +import ssl from './ssl'; + +export default { certbot, download, goLive, ssl }; diff --git a/src/nginxconfig/i18n/ja/templates/setup_sections/ssl.js b/src/nginxconfig/i18n/ja/templates/setup_sections/ssl.js new file mode 100644 index 0000000..ff3a2fd --- /dev/null +++ b/src/nginxconfig/i18n/ja/templates/setup_sections/ssl.js @@ -0,0 +1,34 @@ +/* +Copyright 2022 DigitalOcean + +This code is licensed under the MIT License. +You may obtain a copy of the License at +https://github.com/digitalocean/nginxconfig.io/blob/master/LICENSE or https://mit-license.org/ + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and / or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions : + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. +*/ + +import common from '../../common'; + +export default { + generateDiffieHellmanKeysByRunningThisCommandOnYourServer: 'サーバでこのコマンドを実行して Diffie-Hellman keys を生成します:', + createACommonAcmeChallengeDirectoryForLetsEncrypt: `共通の ACME-challenge ディレクトリを作成します (${common.letsEncrypt} の場合):`, + noAdditionalStepsAreNeededToSetUpSslForNginx: `${common.ssl} を ${common.nginx} の構成に設定するための追加の手順は必要ありません。`, + sslInit: `${common.ssl} 初期設定`, +}; diff --git a/src/nginxconfig/i18n/pl/languages.js b/src/nginxconfig/i18n/pl/languages.js index e200812..e6beb15 100644 --- a/src/nginxconfig/i18n/pl/languages.js +++ b/src/nginxconfig/i18n/pl/languages.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 @@ -34,4 +34,5 @@ export default { ru: 'Rosyjski', pl: 'Polski', de: 'Niemiecki', + ja: 'Japoński', }; diff --git a/src/nginxconfig/i18n/pt-br/languages.js b/src/nginxconfig/i18n/pt-br/languages.js index f06d3be..345efa8 100644 --- a/src/nginxconfig/i18n/pt-br/languages.js +++ b/src/nginxconfig/i18n/pt-br/languages.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 @@ -34,4 +34,5 @@ export default { ru: 'Russa', pl: 'Polonês', de: 'Alemão', + ja: 'Japonês', }; diff --git a/src/nginxconfig/i18n/ru/languages.js b/src/nginxconfig/i18n/ru/languages.js index 9528433..b883074 100644 --- a/src/nginxconfig/i18n/ru/languages.js +++ b/src/nginxconfig/i18n/ru/languages.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 @@ -34,4 +34,5 @@ export default { ru: 'Русский', pl: 'Польский', de: 'Немецкий', + ja: 'Японский', }; diff --git a/src/nginxconfig/i18n/zh-cn/languages.js b/src/nginxconfig/i18n/zh-cn/languages.js index 2a90c33..6c9a5fe 100644 --- a/src/nginxconfig/i18n/zh-cn/languages.js +++ b/src/nginxconfig/i18n/zh-cn/languages.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 @@ -34,4 +34,5 @@ export default { ru: '俄语', pl: '波兰语', de: '德语', + ja: '日语', }; diff --git a/src/nginxconfig/i18n/zh-tw/languages.js b/src/nginxconfig/i18n/zh-tw/languages.js index eab92af..9355d98 100644 --- a/src/nginxconfig/i18n/zh-tw/languages.js +++ b/src/nginxconfig/i18n/zh-tw/languages.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 @@ -34,4 +34,5 @@ export default { ru: '俄語', pl: '波蘭語', de: '德語', + ja: '日語', }; diff --git a/src/nginxconfig/util/language_packs.js b/src/nginxconfig/util/language_packs.js index 98ee8c7..41ff37c 100644 --- a/src/nginxconfig/util/language_packs.js +++ b/src/nginxconfig/util/language_packs.js @@ -43,6 +43,7 @@ export const availablePacks = Object.freeze([ 'en', 'es', 'fr', + 'ja', 'pl', 'ptBR', 'ru',