Skip to content

Commit b202904

Browse files
Merge pull request #626 from jgbernalp/fix-translation-env-config
COO-1297: fix: set translation namespace from environment
2 parents 9a89b34 + 87a44c9 commit b202904

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

web/webpack.config.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,9 @@ const config: Configuration = {
100100
patterns: [{ from: path.resolve(__dirname, 'locales'), to: 'locales' }],
101101
}),
102102
new DefinePlugin({
103-
'process.env': {
104-
I18N_NAMESPACE: JSON.stringify('plugin__monitoring-plugin'),
105-
},
103+
'process.env.I18N_NAMESPACE': process.env.I18N_NAMESPACE
104+
? JSON.stringify(process.env.I18N_NAMESPACE)
105+
: JSON.stringify('plugin__monitoring-plugin'),
106106
}),
107107
],
108108
devtool: 'source-map',

0 commit comments

Comments
 (0)