From 90ba69d224eb7ef3d91332f1b7944c68ad16affd Mon Sep 17 00:00:00 2001 From: Phil Hughes Date: Sat, 15 Apr 2017 16:07:31 +0100 Subject: Started internationalising cycyle analytics --- config/webpack.config.js | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'config') diff --git a/config/webpack.config.js b/config/webpack.config.js index ffb16190093..df7b43cf053 100644 --- a/config/webpack.config.js +++ b/config/webpack.config.js @@ -52,6 +52,7 @@ var config = { vue_pipelines: './vue_pipelines_index/index.js', issue_show: './issue_show/index.js', group: './group.js', + locale: './locale/index.js', }, output: { @@ -82,6 +83,10 @@ var config = { exclude: /node_modules/, loader: 'file-loader', }, + { + test: /locale\/[a-z]+\/(.*)\.js$/, + loader: 'exports-loader?locales', + }, ] }, -- cgit v1.2.1 From 7963c2c25114e871eb42c0859b6d24fc37437a8a Mon Sep 17 00:00:00 2001 From: Phil Hughes Date: Tue, 18 Apr 2017 14:55:09 +0100 Subject: Added Vue filters & directives for translating --- config/webpack.config.js | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'config') diff --git a/config/webpack.config.js b/config/webpack.config.js index df7b43cf053..92ecba45d6e 100644 --- a/config/webpack.config.js +++ b/config/webpack.config.js @@ -150,6 +150,14 @@ var config = { new webpack.optimize.CommonsChunkPlugin({ names: ['main', 'common', 'runtime'], }), + + // locale common library + new webpack.optimize.CommonsChunkPlugin({ + name: 'locale', + chunks: [ + 'cycle_analytics', + ], + }), ], resolve: { -- cgit v1.2.1 From a3506a228723d7e31fb37580dcd3b30245436f22 Mon Sep 17 00:00:00 2001 From: Phil Hughes Date: Tue, 18 Apr 2017 17:00:44 +0100 Subject: Fixed missing text Fixed duplicated time in dropdown --- config/webpack.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'config') diff --git a/config/webpack.config.js b/config/webpack.config.js index 92ecba45d6e..f93f4d6cd5e 100644 --- a/config/webpack.config.js +++ b/config/webpack.config.js @@ -34,6 +34,7 @@ var config = { graphs: './graphs/graphs_bundle.js', groups_list: './groups_list.js', issuable: './issuable/issuable_bundle.js', + locale: './locale/index.js', merge_conflicts: './merge_conflicts/merge_conflicts_bundle.js', merge_request_widget: './merge_request_widget/ci_bundle.js', monitoring: './monitoring/monitoring_bundle.js', @@ -52,7 +53,6 @@ var config = { vue_pipelines: './vue_pipelines_index/index.js', issue_show: './issue_show/index.js', group: './group.js', - locale: './locale/index.js', }, output: { -- cgit v1.2.1