From 5ed998540567fc33512d797b46c8a65106191057 Mon Sep 17 00:00:00 2001 From: cmiqueo <64917520+cmiqueo@users.noreply.github.com> Date: Thu, 9 Jan 2025 01:16:57 -0800 Subject: [PATCH] [MWPW-164327] BulkPublisher BETA does not detect non-US lang & locale (#3379) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Revert "MWPW-140452 - Icon authoring in milo using the federal repo a… (#3357) Revert "MWPW-140452 - Icon authoring in milo using the federal repo and individual SVG assets (#3259)" This reverts commit 81a5770cecc2a17f07efe5229c65b71d2dbb9bb4. * MWPW-163075: Updates local caas-tags file with the latest tags * MWPW-163075: Updates local caas-tags file with the latest tags II * Resolves BulkPublisher country/lang issue * MWPW-164327: Splits PR into two, one of each bug * MWPW-164327: Splits PR into two, one of each bug * MWPW-164327: Splits PR into two, one of each bug * MWPW-164327: Splits PR into two, one of each bug * MWPW-164327: modifies file matching logic * MWPW-164327: modifies file matching logic --------- Co-authored-by: milo-pr-merge[bot] <169241390+milo-pr-merge[bot]@users.noreply.github.com> Co-authored-by: Okan Sahin <39759830+mokimo@users.noreply.github.com> --- tools/send-to-caas/send-utils.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/send-to-caas/send-utils.js b/tools/send-to-caas/send-utils.js index f05d118a2f..8f578a0444 100644 --- a/tools/send-to-caas/send-utils.js +++ b/tools/send-to-caas/send-utils.js @@ -306,7 +306,8 @@ const getBulkPublishLangAttr = async (options) => { }; const getCountryAndLang = async (options) => { - const langStr = window.location.pathname === '/tools/send-to-caas/bulkpublisher.html' + /* c8 ignore next */ + const langStr = window.location.pathname.includes('/tools/send-to-caas/bulkpublisher') ? await getBulkPublishLangAttr(options) : (LOCALES[window.location.pathname.split('/')[1]] || LOCALES['']).ietf; const langAttr = langStr?.toLowerCase().split('-') || [];