Azure / LogicAppsUX

https://learn.microsoft.com/azure/logic-apps
MIT License
70 stars 71 forks source link

[@formatjs/intl Error MISSING_DATA] Missing locale data for locale: "gl-ES" in Intl.NumberFormat #3361

Open Ram-G opened 9 months ago

Ram-G commented 9 months ago

Describe the Bug with repro steps

  1. Open v3 designer in Power Automate.
  2. Change language to "galego" (gl-ES).
  3. Observe error banner at the top of the screen.

Expected:

Designer loads successfully.

Actual:

Designer fails to load and error banner is displayed with the following message:

Produciuse un erro ao renderizar [@formatjs/intl Error MISSING_DATA] Missing locale data for locale: "gl-ES" in Intl.NumberFormat. Using default locale: "gl-ES" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details

What type of Logic App Is this happening in?

Power Automate

Are you using new designer or old designer

New Designer

Did you refer to the TSG before filing this issue? https://aka.ms/lauxtsg

Yes

Workflow JSON

No response

Screenshots or Videos

image

Browser

Edge

Additional context

In parallel to filing this issue, I am creating a pull request to put in a stopgap fix to not throw error for this missing locale data. This means the designer loads, just with some english (or other fallback) text strings instead of in the desired language.

Stack trace I got for the error from code -- libs\designer\src\lib\core\DesignerProvider.tsx line 36:

{

"code": "MISSING_DATA"

}

"[@formatjs/intl Error MISSING_DATA] Missing locale data for locale: \"gl-ES\" in Intl.NumberFormat. Using default locale: \"gl-ES\" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details\n"

"Error: [@formatjs/intl Error MISSING_DATA] Missing locale data for locale: \"gl-ES\" in Intl.NumberFormat. Using default locale: \"gl-ES\" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details\n\n at new MissingDataError (https://local.flow.microsoft.com:44300/static/js/60.1d4c7473758b67afd2d6.chunk.js:466834:23)\n at createIntl (https://local.flow.microsoft.com:44300/static/js/60.1d4c7473758b67afd2d6.chunk.js:466571:17)\n at createIntl (https://local.flow.microsoft.com:44300/static/js/60.1d4c7473758b67afd2d6.chunk.js:702532:85)\n at new IntlProvider (https://local.flow.microsoft.com:44300/static/js/60.1d4c7473758b67afd2d6.chunk.js:702557:19)\n at constructClassInstance (https://local.flow.microsoft.com:44300/static/js/bundle.js:246245:18)\n at updateClassComponent (https://local.flow.microsoft.com:44300/static/js/bundle.js:250465:5)\n at beginWork (https://local.flow.microsoft.com:44300/static/js/bundle.js:251985:16)\n at beginWork$1 (https://local.flow.microsoft.com:44300/static/js/bundle.js:256544:14)\n at performUnitOfWork (https://local.flow.microsoft.com:44300/static/js/bundle.js:255519:12)\n at workLoopSync (https://local.flow.microsoft.com:44300/static/js/bundle.js:255495:22)\n at performSyncWorkOnRoot (https://local.flow.microsoft.com:44300/static/js/bundle.js:255121:9)\n at https://local.flow.microsoft.com:44300/static/js/bundle.js:244454:24\n at unstable_runWithPriority (https://local.flow.microsoft.com:44300/static/js/bundle.js:271334:12)\n at runWithPriority$1 (https://local.flow.microsoft.com:44300/static/js/bundle.js:244404:10)\n at flushSyncCallbackQueueImpl (https://local.flow.microsoft.com:44300/static/js/bundle.js:244449:7)\n at flushSyncCallbackQueue (https://local.flow.microsoft.com:44300/static/js/bundle.js:244437:3)\n at batchedUpdates$1 (https://local.flow.microsoft.com:44300/static/js/bundle.js:255227:7)\n at reactionScheduler (https://local.flow.microsoft.com:44300/static/js/bundle.js:227726:47)\n at runReactions (https://local.flow.microsoft.com:44300/static/js/bundle.js:227702:5)\n at endBatch (https://local.flow.microsoft.com:44300/static/js/bundle.js:227401:9)\n at _endAction (https://local.flow.microsoft.com:44300/static/js/bundle.js:226787:5)\n at executeAction (https://local.flow.microsoft.com:44300/static/js/bundle.js:226741:9)\n at onOperationResolved (https://local.flow.microsoft.com:44300/static/js/bundle.js:226721:16)"

AB#25236150

hartra344 commented 9 months ago

I don't think this is an Azure supported locale, please get a list of these and I'll see if I can add them to our localization pipeline.

ek68794998 commented 9 months ago

@hartra344 I believe this should be our full list of locales. We do get users from other locales as well, but this is the full list that we have localized resources for. We do definitely want to keep the fallback logic that was added in #3362 though, so that if we add a new locale, it doesn't suddenly start crashing the designer.

azure-boards[bot] commented 4 months ago

❌ There was a problem linking to Azure Boards work item(s):

Please check the IDs and try again using the AB# syntax. Learn more

azure-boards[bot] commented 4 months ago

❌ There was a problem linking to Azure Boards work item(s):

Please check the IDs and try again using the AB# syntax. Learn more

azure-boards[bot] commented 4 months ago

❌ There was a problem linking to Azure Boards work item(s):

Please check the IDs and try again using the AB# syntax. Learn more

azure-boards[bot] commented 4 months ago

❌ There was a problem linking to Azure Boards work item(s):

Please check the IDs and try again using the AB# syntax. Learn more

azure-boards[bot] commented 4 months ago

❌ There was a problem linking to Azure Boards work item(s):

Please check the IDs and try again using the AB# syntax. Learn more