Skip to content

Commit

Permalink
A-1208586834272224 | Intl support for micro-frontends (#1016)
Browse files Browse the repository at this point in the history
  • Loading branch information
Arjun-Go authored Oct 24, 2024
1 parent 58673cb commit 4d20f7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion micro-frontends/src/next-ui/Components/i18n/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export const getTranslations = async (locale) => {
const fileName = `locale_${locale}.json`;

try {
return await fetchTranslations(`${NEXT_UI_CONFIG_PATH}${translationsBaseUrl}/micro-frontends-dist/${fileName}`);
return await fetchTranslations(`${NEXT_UI_CONFIG_PATH}${translationsBaseUrl}/micro-frontends-dist/next-ui/${fileName}`);
} catch (error) {
console.warn(`Primary translation file not found, falling back to secondary: ${error.message}`);
return await fetchTranslations(`${BASE_URL}${translationsBaseUrl}/${fileName}`);
Expand Down

0 comments on commit 4d20f7e

Please sign in to comment.