better modalCard, integrated i18n with vuejs-i18n and drupal's strings_i18n_json_export

remain to automaticly export jsons and updated json files with webpack
and to understand how to access nested translations
This commit is contained in:
2020-12-07 23:11:31 +01:00
parent a4e689c27a
commit 417b084216
23 changed files with 25454 additions and 20 deletions

View File

@@ -13,7 +13,8 @@ module.exports = {
alias: {
'vue': 'vue/dist/vue.js',
'theme': utils.resolve(themePath),
'vuejs': utils.resolve(themePath+'/vuejs')
'vuejs': utils.resolve(themePath+'/vuejs'),
'assets': utils.resolve(themePath+'/assets')
}
},
entry: {
@@ -39,6 +40,11 @@ module.exports = {
test: /\.vue$/,
use: 'vue-loader'
},
{
resourceQuery: /blockType=i18n/,
type: 'javascript/auto',
loader: '@kazupon/vue-i18n-loader'
},
{
test: /\.js$/,
use: {
@@ -83,7 +89,7 @@ module.exports = {
new VueLoaderPlugin(),
new ESLintPlugin({
// fix: true
// exclude: ['node_modules', 'vendor', 'web/core']
// exclude: ['web/.eslintrc.json']
// cache: false,
// ignore: true,
// useEslintrc: false,