Skip to content

Commit

Permalink
[MWPW-164327] BulkPublisher BETA does not detect non-US lang & locale (
Browse files Browse the repository at this point in the history
…#3379)

* 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 81a5770.

* 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>
  • Loading branch information
3 people authored Jan 9, 2025
1 parent dd15662 commit 5ed9985
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tools/send-to-caas/send-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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('-') || [];
Expand Down

0 comments on commit 5ed9985

Please sign in to comment.