Skip to content

Commit

Permalink
fixed locale call in landing pages
Browse files Browse the repository at this point in the history
  • Loading branch information
iconstantin-bd committed Feb 5, 2025
1 parent 16d5e8b commit 04a1ad5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _src-lp/scripts/vendor/product.js
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ export class Locale {
}

// Fetch locale based on the country
const localeResponse = await fetch(`${API_BASE}${API_ROOT}/${country}/locales`);
const localeResponse = await fetch(`${API_BASE}${API_ROOT}/countries/${country}/locales`);
if (!localeResponse.ok) {
console.error(`Failed to fetch locales: ${localeResponse.statusText}`);
return locale; // Return default locale in case of error
Expand Down

0 comments on commit 04a1ad5

Please sign in to comment.