Translation infrastructure

This commit is contained in:
Eugene Pankov
2022-01-08 16:02:56 +01:00
parent 04010b58bb
commit 0814d44207
134 changed files with 8137 additions and 889 deletions

View File

@@ -47,6 +47,7 @@ module.exports = options => {
alias: options.alias ?? {},
modules: ['.', 'src', 'node_modules', '../app/node_modules', '../node_modules'].map(x => path.join(options.dirname, x)),
extensions: ['.ts', '.js'],
mainFields: ['esm2015', 'browser', 'module', 'main'],
},
ignoreWarnings: [/Failed to parse source map/],
module: {
@@ -89,6 +90,13 @@ module.exports = options => {
test: /\.(ttf|eot|otf|woff|woff2|ogg)(\?v=[0-9]\.[0-9]\.[0-9])?$/,
type: 'asset',
},
{
test: /\.po$/,
use: [
{ loader: 'json-loader' },
{ loader: 'po-gettext-loader' },
],
},
],
},
externals: [