1.0.2 ā€¢ Published 5 years ago

l10n-coverage-scanner v1.0.2

Weekly downloads
1
License
ISC
Repository
github
Last release
5 years ago

L10n-coverage-scanner

What does the L10n-coverage-scanner do?

The L10n-coverage-scanner tells you how well your repo's L10n support is. In other words, this module lets you know how well your repo supports different countries and languages.

Installation

npm install l10n-coverage-scanner -save-dev

Usage

(After following installation process)

  1. Navigagte to package.json and create a new script:
  ...
  "scripts": {
    "l10n-coverage-scanner": "l10n-coverage-scanner",
    ...
  },
  ...
  1. Run the following command: npm run l10n-coverage-scanner.
  2. View the report printed out in the console.
  3. View the detailed report saved to /l10n-coverage-scanner-report.json.

Example Console Output


šŸ”„ L10n Country Support Report šŸ”„

Supported Countries Breakdown

Independent Countries = 35

Grouped Countries = 153

Total Countries = 184

Percentage of PayPal countries supported = 90.20%

You are not supporting the following countries that PayPal DOES support:AG AL BA BB BZ CN DM DZ FJ GD KN LC MK MW NC PF PW SC TC TT

šŸ”„ L10n Language Support Report šŸ”„

Supported Languages Breakdown

Every language is fully supported.

For details please see the file located at /l10n-coverage-scanner-report.json.

Example JSON Output

{
  "countrySupport": {
    "percentageOfCountriesSupported": "84.32",
    "extraCountriesSupported": [
      "BD",
      "AF"
    ],
    "missingCountries": [
      "CN"
    ],
    "independentCountriesSupported": [
      "AT",
      "AU",
      ...
      "US"
    ],
    "groupedCountriesSupported": {
      "AI": [
        "G1"
      ],
      ...
      "MV": [
        "G1"
      ]
    },
    "symLinkCountriesSupported": {}
  },
  "languageSupport": {
    "percentageOfLanguagesSupported": "100.00",
    "notFullySupportedLanguages": {}
  }
}