mirror of
https://github.com/portainer/portainer.git
synced 2025-07-19 05:19:39 +02:00
feat(i18n): add support for multiple languages (#6270)
feat(users): add i18n to create access token chore(app): remove test code
This commit is contained in:
parent
87dda810fc
commit
8e45076f35
10 changed files with 460 additions and 44 deletions
|
@ -10,9 +10,11 @@ const ESLintPlugin = require('eslint-webpack-plugin');
|
|||
const TsconfigPathsPlugin = require('tsconfig-paths-webpack-plugin');
|
||||
const Dotenv = require('dotenv-webpack');
|
||||
|
||||
const CopyPlugin = require('copy-webpack-plugin');
|
||||
const pkg = require('../package.json');
|
||||
const projectRoot = path.resolve(__dirname, '..');
|
||||
|
||||
|
||||
module.exports = {
|
||||
entry: {
|
||||
main: './app',
|
||||
|
@ -134,6 +136,14 @@ module.exports = {
|
|||
collections: true,
|
||||
paths: true,
|
||||
}),
|
||||
new CopyPlugin({
|
||||
patterns: [
|
||||
{
|
||||
from: 'translations',
|
||||
to: 'locales',
|
||||
},
|
||||
],
|
||||
}),
|
||||
],
|
||||
optimization: {
|
||||
moduleIds: 'deterministic',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue