google / google/arb-editor

Placeholder format "decimalPatternDigit is not valid

Open
#60 2 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
TypeScript
Stars
64
Forks
11
Avg merge
2d 3h
Merged PRs (30d)
18

Description

## Expected Behavior

Expect placeholder format "decimalPatternDigits" to be accepted.

## Actual Behavior

Placeholder format "decimalPatternDigits" is not accepted by the static analysis of the ARB file

`Value is not accepted. Valid values: "compact", "compactCurrency", "compactSimpleCurrency", "compactLong", "currency", "decimalPattern", "decimalPercentPattern", "percentPattern", "scientificPattern", "simpleCurrency".`

## Steps to Reproduce the Problem

```arb
"priceDisplay": "{amount}",
"@priceDisplay": {
"placeholders": {
"amount": {
"type": "double",
"format": "decimalPatternDigits",
"optionalParameters": {
"decimalDigits": 2
},
"example": "49.99"
}
}
}
```
## Specifications

- Version: 0.0.13
- Platform: Windows

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.