message: chore(content): add fake dictionary locales
diff: import i18n from 'i18next'
  import mapValues from 'lodash/mapValues'
  +import mapKeys from 'lodash/mapKeys'
  +import { appConfigFactory } from '@/app-config'
  -const locales = require('@/_locales/messages.json')
  +const dictLocales = Object.keys(appConfigFactory().dicts.all)
  + .map(dict => {
  + const locale = require('@/components/dictionaries/' + dict + '/_locales')
  + return {
  + ['dict_' + dict]: locale.name,
  + ...mapKeys(locale.options, (v, k) => `dict_${dict}_${k}`)
  + }
  + })
  +console.log(dictLocales)
  +
  +const locales = Object.assign({}, require('@/_locales/messages'), ...dictLocales)
  const instance = (i18n as any)
  .init({
  @@ -20,13 +32,13 @@ const instance = (i18n as any)
  resources: {
  zh_CN: {
  - translation: mapValues(locales, x => x.message.zh_CN)
  + translation: mapValues(locales, x => x.message ? x.message.zh_CN : x.zh_CN)
  },
  zh_TW: {
  - translation: mapValues(locales, x => x.message.zh_TW)
  + translation: mapValues(locales, x => x.message ? x.message.zh_TW : x.zh_TW)
  },
  en: {
  - translation: mapValues(locales, x => x.message.en)
  + translation: mapValues(locales, x => x.message ? x.message.en : x.en)
  },
  },
  })
  