Skip to content

Commit

Permalink
fix(designer): Fix issue where some strings wouldn't be localized in …
Browse files Browse the repository at this point in the history
…azure portal and power automate (#4213)
  • Loading branch information
hartra344 committed Feb 17, 2024
1 parent 62a51d2 commit 620ba95
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion libs/services/intl/src/IntlProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,9 @@ const loadLocaleData = async (locale: string): Promise<Record<string, string> |
messages = await import('./compiled-lang/strings.json');
break;
}
return { ...messages };
//any strings with a key that has symbols gets compiled to be in the default object rather than exported individually as a module
const defaultMessages = messages.default ?? {};
return { ...messages, ...defaultMessages };
};

export const IntlProvider: React.FC<IntlProviderProps> = ({ locale, defaultLocale, children, onError }) => {
Expand Down

0 comments on commit 620ba95

Please sign in to comment.