Skip to content

Commit

Permalink
Resolves BulkPublisher country/lang issue
Browse files Browse the repository at this point in the history
  • Loading branch information
cmiqueo committed Dec 13, 2024
1 parent 3b9e6ce commit 831aea8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/send-to-caas/send-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ const getBulkPublishLangAttr = async (options) => {
};

const getCountryAndLang = async (options) => {
const langStr = window.location.pathname === '/tools/send-to-caas/bulkpublisher.html'
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 831aea8

Please sign in to comment.