File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -217,7 +217,7 @@ export default class I18nextPlugin {
217
217
218
218
return Promise . all ( _ . map ( this . option . namespaces , async ns => {
219
219
const resourcePath = getPath ( resourceTemplate , undefined , ns ) ;
220
- const outPath = getPath ( this . option . outPath , lng , ns ) ;
220
+ const outPath = getPath ( this . outPath , lng , ns ) ;
221
221
222
222
try {
223
223
const v = await readFile ( resourcePath ) ;
@@ -240,6 +240,13 @@ export default class I18nextPlugin {
240
240
}
241
241
}
242
242
243
+ protected get outPath ( ) {
244
+ if ( path . isAbsolute ( this . option . outPath ) ) {
245
+ return path . relative ( this . context , this . option . outPath ) ;
246
+ }
247
+ return this . option . outPath ;
248
+ }
249
+
243
250
protected async onAfterEmit ( compilation : wp . Compilation , callback : ( err ?: Error ) => void ) {
244
251
const remains : _ . Dictionary < _ . Dictionary < any > > = _ . fromPairs ( _ . map (
245
252
this . option . languages , lng => [
You can’t perform that action at this time.
0 commit comments