diff --git a/src/keys.ts b/src/keys.ts index 81d8b83..0f8e909 100644 --- a/src/keys.ts +++ b/src/keys.ts @@ -137,7 +137,7 @@ export function computeDerivedKeys( ) .join(' '); - extractedKey.parsedOptions.defaultValue = `{count, plural, ${icuPlurals}`; + extractedKey.parsedOptions.defaultValue = `{count, plural, ${icuPlurals}}`; } else { if (numberOfPlurals === 1) { keys = keys.map((k) => ({ diff --git a/tests/__fixtures__/icu/icuPlurals.json b/tests/__fixtures__/icu/icuPlurals.json index 4cab9e3..85da4de 100644 --- a/tests/__fixtures__/icu/icuPlurals.json +++ b/tests/__fixtures__/icu/icuPlurals.json @@ -7,7 +7,7 @@ "expectValues": [ [ { - "foo": "{count, plural, one {The {count} item} other {The {count} item}" + "foo": "{count, plural, one {The {count} item} other {The {count} item}}" } ] ]