3.1.0 • Published 9 days ago
@scaleway/validate-icu-locales v3.1.0
@scaleway/validate-icu-locales
A tiny cli to handle ICU errors on locales files.
Install
Requirements
- Node should be installed
$ pnpm add -D @scaleway/validate-icu-locales
Usage
We can parse JSON, TS and JS if theses files use default export.
validate-icu "../**/en.json"
If there is an error on a local, the CLI will throw an Error and print all errors.
Error
export default from: ../src/__tests__/locales/en-1.js is not an object
{
errors: [
{
message: 'EXPECT_ARGUMENT_CLOSING_BRACE',
value: '{count, plural, =0 {Minute} =1 {Minute} other {Minutes',
key: 'units.minutes.label',
filePath: '../../packages/validate-icu-locales/src/__tests__/locales/en.js'
},
{
message: 'EXPECT_ARGUMENT_CLOSING_BRACE',
value: '{count, plural, =0 {Minute} =1 {Minute} other {Minutes',
key: 'units.minutes.label',
filePath: '../../packages/validate-icu-locales/src/__tests__/locales/en.json'
},
{
message: 'EXPECT_ARGUMENT_CLOSING_BRACE',
value: '{count, plural, =0 {Minute} =1 {Minute} other {Minutes',
key: 'units.minutes.label',
filePath: '../../packages/validate-icu-locales/src/__tests__/locales/en.ts'
}
]
}
3.1.0
9 days ago
3.0.1
18 days ago
3.0.0
2 months ago
2.0.15
3 months ago
2.0.13
6 months ago
2.0.14
6 months ago
2.0.11
7 months ago
2.0.12
6 months ago
2.0.9
10 months ago
2.0.10
8 months ago
2.0.8
11 months ago
2.0.5
1 year ago
2.0.7
11 months ago
2.0.6
11 months ago
2.0.4
1 year ago
2.0.3
1 year ago
2.0.2
1 year ago
1.1.1
1 year ago
2.0.1
1 year ago
1.1.3
1 year ago
2.0.0
1 year ago
1.1.2
1 year ago
1.1.0
2 years ago