From 4a2e7887a2d771194885a260624decaf7386bcb9 Mon Sep 17 00:00:00 2001 From: Thomas Date: Wed, 8 Feb 2023 10:23:42 +0100 Subject: [PATCH] Merge pull request #11709 from overleaf/jpa-cleanup-more-locales [web] scripts: translations: exclude more places from i18n tracking GitOrigin-RevId: bd2204c59b73638358348c0742cc3b2cb45f248a --- services/web/locales/en.json | 2 -- services/web/scripts/translations/cleanupUnusedLocales.js | 7 +++++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/services/web/locales/en.json b/services/web/locales/en.json index 0a62d56d71..fdcb24d852 100644 --- a/services/web/locales/en.json +++ b/services/web/locales/en.json @@ -1635,8 +1635,6 @@ "x_price_for_first_month": "<0>__price__ for your first month", "x_price_for_first_year": "<0>__price__ for your first year", "x_price_for_y_months": "<0>__price__ for your first __discountMonths__ months", - "x_price_per_month": "<0>__price__ per month", - "x_price_per_year": "<0>__price__ per year", "year": "year", "yes_move_me_to_personal_plan": "Yes, move me to the Personal plan", "yes_that_is_correct": "Yes, that’s correct", diff --git a/services/web/scripts/translations/cleanupUnusedLocales.js b/services/web/scripts/translations/cleanupUnusedLocales.js index 6489a8447b..2613cf876e 100644 --- a/services/web/scripts/translations/cleanupUnusedLocales.js +++ b/services/web/scripts/translations/cleanupUnusedLocales.js @@ -26,6 +26,8 @@ async function main() { // - exclude locales files // - exclude public assets // - exclude third-party dependencies + // - exclude scripts + // - exclude tests // - read all the source files ` find . -type f \ @@ -33,8 +35,9 @@ async function main() { -not -path './frontend/extracted-translations.json' \ -not -path './locales/*' \ -not -path './public/*' \ - -not -path '*node_modules/*' \ - -not -path ./scripts/ukamf/ukfederation-metadata.xml \ + -not -path '*/node_modules/*' \ + -not -path '*/scripts/*' \ + -not -path '*/tests/*' \ | xargs cat `, {