Skip to content

Commit

Permalink
Merge pull request #459 from bitdefender/fix-vlaicu-lp-for-nl
Browse files Browse the repository at this point in the history
fixed locale call in landing pages
  • Loading branch information
inastase authored Feb 5, 2025
2 parents 16d5e8b + 04a1ad5 commit b581c83
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 b581c83

Please sign in to comment.