diff --git a/omega-i18n/zh/messages.json b/omega-i18n/zh_CN/messages.json similarity index 100% rename from omega-i18n/zh/messages.json rename to omega-i18n/zh_CN/messages.json diff --git a/omega-target-chromium-extension/grunt/copy.coffee b/omega-target-chromium-extension/grunt/copy.coffee index 6a7fc72..f6c6161 100644 --- a/omega-target-chromium-extension/grunt/copy.coffee +++ b/omega-target-chromium-extension/grunt/copy.coffee @@ -16,6 +16,11 @@ module.exports = cwd: '../omega-i18n' src: ['**/*'] dest: 'build/_locales/' + i18n_zh: + expand: true + cwd: '../omega-i18n/zh_CN' + src: ['**/*'] + dest: 'build/_locales/zh' overlay: expand: true cwd: 'overlay' diff --git a/omega-target-chromium-extension/grunt/watch.coffee b/omega-target-chromium-extension/grunt/watch.coffee index abbf64d..41d9bea 100644 --- a/omega-target-chromium-extension/grunt/watch.coffee +++ b/omega-target-chromium-extension/grunt/watch.coffee @@ -10,7 +10,7 @@ module.exports = tasks: ['copy:web'] copy_i18n: files: ['../omega-i18n/**/*'] - tasks: ['copy:i18n'] + tasks: ['copy:i18n', 'copy:i18n_zh'] copy_target: files: ['node_modules/omega-target/omega_target.min.js'] tasks: ['copy:target']