t2ym / gulp-i18n-leverage

Merge changes in default JSON into localized JSON for Polymer I18N with i18n-behavior
Other
0 stars 0 forks source link

[Enhancement] Store list of locales in default bundle.element.meta.locales #16

Closed t2ym closed 8 years ago

t2ym commented 8 years ago

Store list of locales in default bundle.element.meta.locales as an Array

bundles = {
  "": {
    "custom-element": {
      "meta": {
        "locales": [ "de", "es", "fr", "ja", "zh-Hans" ]
      },
      "model": ...,
      ... 
    },
    "custom-element2": {
      "meta": {
        "locales": [ "de", "es", "fr", "ja", "zh-Hans" ]
      },
      "model": ...,
      ... 
    },
    ...
  },
 ...
}