JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q25926F
  • License MIT

Converter between i18n-js and @hi18n/core

Package Exports

  • @hi18n/connector-i18n-js

Readme

@hi18n/connector-i18n-js

This is a converter between hi18n (@hi18n/*) and i18n-js.

Currently, only the importer is implemented.

Configuration

// .hi18nrc.js
module.exports = {
  connector: "@hi18n/connector-i18n-js",
  connectorOptions: {
    root: ".",
    include: ["config/locales/*.yml"],
  },
};
  • root ... a path to the i18n-js's project root, relative to hi18n's configuration file. Defaults to ..
  • include ... An array of glob paths to YAML files containing the translations. Defaults to ["config/locales/*.yml"].