# dg-json-loader **Repository Path**: LLLLL-ZWJ/dg-json-loader ## Basic Information - **Project Name**: dg-json-loader - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-04-01 - **Last Updated**: 2021-04-01 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## 说明 # 注意事项 该 loader 需要配合 dg-vue-loader 一起使用 # 为什么写这个 loader 在做国际化的实际开发中,经常会写类似这种 代码 $t("xxx.xxx"), 导致整个页面看不到一句中文,很多时候我是靠中文定位,问题位置的, 所有就想替换成中文,哈哈哈哈。 最终会成 $t('SHOU3_YE4.YONG4_HU4_FEN1_ZU3') # vue3 的配置 vue.config.js ``` module.exports = { chainWebpack: (config) => { config.module .rule("dgjson") .test(/\.json$/) .use("dg-json-loader") .loader("dg-json-loader") .end(); }, }; ``` ## github git@github.com:iloveMasterCAM/dg-json-loader.git