Skip to content

Commit 243eea0

Browse files
committed
feat(i18n): add env ANSWER_I18N_ROOT for secondary development
1 parent 670aa32 commit 243eea0

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

ui/config-overrides.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,12 @@ const {
2626
const webpack = require('webpack');
2727

2828
const path = require("path");
29-
const i18nPath = path.resolve(__dirname, "../i18n");
29+
30+
let i18nRoot = "../i18n";
31+
if(process.env.ANSWER_I18N_ROOT){
32+
i18nRoot = process.env.ANSWER_I18N_ROOT;
33+
}
34+
const i18nPath = path.resolve(__dirname, i18nRoot);
3035

3136
module.exports = {
3237
webpack: function(config, env) {

0 commit comments

Comments
 (0)