1.0.2 ā¢ Published 5 years ago
l10n-coverage-scanner v1.0.2
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)
- Navigagte to
package.json
and create a new script:
...
"scripts": {
"l10n-coverage-scanner": "l10n-coverage-scanner",
...
},
...
- Run the following command:
npm run l10n-coverage-scanner
. - View the report printed out in the console.
- 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": {}
}
}