You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I came across bellow message.
Error: E_MISSING_MESSAGE: Missing required message content hi, {0} when run UTs with Karma.
In karma I use react-globalize-webpack-plugins for webpack to build. as bellow
I came across bellow message.
Error: E_MISSING_MESSAGE: Missing required message content hi, {0} when run UTs with Karma.
In karma I use react-globalize-webpack-plugins for webpack to build. as bellow
plugins: [
new GlobalizePlugin({
production: false,
developmentLocale: 'en',
supportedLocales: ['en'],
messages: 'src/nls/locales/[locale].json',
writeMessages: false,
output: 'i18n/[locale].js'
}),
],
Code to call :
Globalize.messageFormatter('hi, {0}')("dear");
when run UT the error message at the top would returned. The issue would not happen for these key which does not have variables. like
Globalize.messageFormatter('hi)();
it seems the react-webpack-plugin would translate hi,{0} to hi,(0):hi,{0} . Not sure if it is the reason and how to avoid it.
The text was updated successfully, but these errors were encountered: