 
     # i18n
     i18nFile = null
-    if plugin['i18nDir']?
-      i18nFile = path.join pluginPath, plugin['i18nDir']
+    if plugin.i18nDir?
+      i18nFile = path.join pluginPath, plugin.i18nDir
     else
       try
         fs.accessSync path.join pluginPath, 'i18n'

          fs.accessSync path.join pluginPath, 'assets', 'i18n'
          i18nFile = path.join pluginPath, 'assets', 'i18n'
    if i18nFile?
      namespace = plugin.packageName
      window.i18n[namespace] = new (require 'i18n-2')
        locales: ['en-US', 'ja-JP', 'zh-CN', 'zh-TW'],
        defaultLocale: 'zh-CN',

      utils.error error

    # Plugin data
    plugin = packageData.poiPlugin
    if !plugin then plugin = {}
    plugin.packageData = packageData
    if plugin.title? then plugin.name = plugin.title
