From bb9a69edfede00cb30cfcbc9213489ca48101cf6 Mon Sep 17 00:00:00 2001 From: Hannah Wolfe Date: Thu, 7 Nov 2024 13:04:45 +0000 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20Added=20i18n=20for=20portal,=20news?= =?UTF-8?q?letters,=20search,=20comments,=20etc=20(#21547)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ref https://ghost.org/changelog/internationalization/ closes: https://linear.app/ghost/issue/ENG-1038/make-month-and-year-translatable - This takes our automatic translations feature out of beta - Translations are available in ~60 languages, although many are not yet complete - Translations cover portal, comments, search, newsletter emails and member transactional emails - If you find a missing translation, you can contribute it in the Ghost repo, by editing the files here: https://github.com/TryGhost/Ghost/tree/main/ghost/i18n/locales - This feature was created 100% by the Ghost community Co-authored-by: Cathy Sarisky <42299862+cathysarisky@users.noreply.github.com> --- ghost/core/core/shared/labs.js | 2 +- .../admin/__snapshots__/settings.test.js.snap | 2 +- .../__snapshots__/ghost_head.test.js.snap | 154 +++++++++--------- 3 files changed, 79 insertions(+), 79 deletions(-) diff --git a/ghost/core/core/shared/labs.js b/ghost/core/core/shared/labs.js index 03e17834f5..461c11e6db 100644 --- a/ghost/core/core/shared/labs.js +++ b/ghost/core/core/shared/labs.js @@ -16,6 +16,7 @@ const messages = { const GA_FEATURES = [ 'audienceFeedback', 'collections', + 'i18n', 'themeErrorsNotification', 'outboundLinkTagging', 'announcementBar', @@ -26,7 +27,6 @@ const GA_FEATURES = [ // input for the "labs" setting value const BETA_FEATURES = [ 'additionalPaymentMethods', - 'i18n', 'activitypub', 'stripeAutomaticTax', 'webmentions', diff --git a/ghost/core/test/e2e-api/admin/__snapshots__/settings.test.js.snap b/ghost/core/test/e2e-api/admin/__snapshots__/settings.test.js.snap index a6211d4237..c8e9f30e88 100644 --- a/ghost/core/test/e2e-api/admin/__snapshots__/settings.test.js.snap +++ b/ghost/core/test/e2e-api/admin/__snapshots__/settings.test.js.snap @@ -1155,7 +1155,7 @@ exports[`Settings API Edit Can edit a setting 2: [headers] 1`] = ` Object { "access-control-allow-origin": "http://127.0.0.1:2369", "cache-control": "no-cache, private, no-store, must-revalidate, max-stale=0, post-check=0, pre-check=0", - "content-length": "4431", + "content-length": "4445", "content-type": "application/json; charset=utf-8", "content-version": StringMatching /v\\\\d\\+\\\\\\.\\\\d\\+/, "etag": StringMatching /\\(\\?:W\\\\/\\)\\?"\\(\\?:\\[ !#-\\\\x7E\\\\x80-\\\\xFF\\]\\*\\|\\\\r\\\\n\\[\\\\t \\]\\|\\\\\\\\\\.\\)\\*"/, diff --git a/ghost/core/test/unit/frontend/helpers/__snapshots__/ghost_head.test.js.snap b/ghost/core/test/unit/frontend/helpers/__snapshots__/ghost_head.test.js.snap index 0a7861aff5..f686b3fa2f 100644 --- a/ghost/core/test/unit/frontend/helpers/__snapshots__/ghost_head.test.js.snap +++ b/ghost/core/test/unit/frontend/helpers/__snapshots__/ghost_head.test.js.snap @@ -67,7 +67,7 @@ Object { - - + ", @@ -275,7 +275,7 @@ Object { - + ", } @@ -286,7 +286,7 @@ Object { "rendered": " - + @@ -299,7 +299,7 @@ Object { "rendered": " - + ", } @@ -373,7 +373,7 @@ Object { - + ", } @@ -446,7 +446,7 @@ Object { - + ", } @@ -779,7 +779,7 @@ Object { - - + ", @@ -894,7 +894,7 @@ Object { - - + ", } @@ -1623,7 +1623,7 @@ Object { - + ", @@ -1693,7 +1693,7 @@ Object { - + ", @@ -1745,7 +1745,7 @@ Object { - + ", @@ -1797,7 +1797,7 @@ Object { - + ", @@ -1848,7 +1848,7 @@ Object { - - + ", } @@ -1962,7 +1962,7 @@ Object { - - + ", @@ -2077,7 +2077,7 @@ Object { - - + ", } @@ -2191,7 +2191,7 @@ Object { - - + ", @@ -2307,7 +2307,7 @@ Object { - + ", } @@ -2357,7 +2357,7 @@ Object { - - + ", @@ -2587,7 +2587,7 @@ Object { - + ", } @@ -2637,8 +2637,8 @@ Object { - - + + ", @@ -2686,7 +2686,7 @@ Object { - + ", } @@ -2724,7 +2724,7 @@ Object { - + ", } @@ -2751,7 +2751,7 @@ Object { - + ", } @@ -2802,7 +2802,7 @@ Object { - + ", } @@ -2852,7 +2852,7 @@ Object { - - + ", } @@ -2967,7 +2967,7 @@ Object { - + @@ -3019,7 +3019,7 @@ Object { - - + ", @@ -3198,7 +3198,7 @@ Object { .gh-post-upgrade-cta a.gh-btn:hover { opacity: 0.92; } - + ", @@ -3249,7 +3249,7 @@ Object { - - + ", @@ -3581,7 +3581,7 @@ Object { - + ", } @@ -3646,7 +3646,7 @@ Object { - + ", } @@ -3660,7 +3660,7 @@ Object { - + ", @@ -3675,7 +3675,7 @@ Object { - + ", @@ -3690,7 +3690,7 @@ Object { - + @@ -3706,7 +3706,7 @@ Object { - + ", @@ -3791,7 +3791,7 @@ Object { - + ", } @@ -3807,7 +3807,7 @@ Object { - + ", } @@ -3833,7 +3833,7 @@ Object { - + ", } @@ -3884,7 +3884,7 @@ Object { - + ", } @@ -3897,7 +3897,7 @@ Object { - + ", } @@ -3910,7 +3910,7 @@ Object { - + ", } @@ -3971,7 +3971,7 @@ Object { - + ", @@ -4023,7 +4023,7 @@ Object { - + ", @@ -4046,7 +4046,7 @@ Object { - + ", } @@ -4111,7 +4111,7 @@ Object { - + ", } @@ -4162,7 +4162,7 @@ Object { - + ", } @@ -4184,7 +4184,7 @@ Object { - + ", } @@ -4197,7 +4197,7 @@ Object { - + ", } @@ -4212,7 +4212,7 @@ Object { - + ", } @@ -4227,7 +4227,7 @@ Object { - + ", } @@ -4279,7 +4279,7 @@ Object { - + ", } @@ -4329,7 +4329,7 @@ Object { - + ", } @@ -4410,7 +4410,7 @@ Object { - + ", } @@ -4537,7 +4537,7 @@ Object { - + ", } @@ -4618,7 +4618,7 @@ Object { - + ", } @@ -4699,7 +4699,7 @@ Object { - + ", } @@ -4768,7 +4768,7 @@ Object { - + ", } @@ -4841,7 +4841,7 @@ Object { - + ", } @@ -4914,7 +4914,7 @@ Object { - + ", } @@ -4987,7 +4987,7 @@ Object { - + ", } @@ -5061,7 +5061,7 @@ Object { - + ", } @@ -5127,7 +5127,7 @@ Object { - + ", } @@ -5175,7 +5175,7 @@ Object { - + ", } @@ -5227,7 +5227,7 @@ Object { - + ", }