Localize can't parse ICU with plural from JSON at runtime

This issue has been created since 2022-11-24.

Which @angular/* package(s) are the source of the bug?

localize

Is this a regression?

No

Description

ICU: "Ergebnis: Sie haben {counter, plural, zero {keine Klinik} one {eine Klinik} other {mehrere Kliniken} gefunden.}"

produces this error message in console:

ERROR Error: Unable to parse ICU expression in "Ergebnis: Sie haben....

Does this mean localize won't parse any ICU or it can't parse this ICU?

Version: 14.2.7

Please provide a link to a minimal reproduction of the bug

No response

Please provide the exception or error you saw

No response

Please provide the environment you discovered this bug in (run ng version)

No response

Anything else?

No

JoostK wrote this answer on 2022-11-24

Your ICU expression seems incorrect; the trailing "gefunden." word should be outside of the closing }.

agentx-cgn wrote this answer on 2022-11-25

I've put everything within curly brackets and still get:

Error: Unable to parse ICU expression in "{counter, plural, zero {Ergebnis: Sie haben keine Klinik gefunden.} one {Ergebnis: Sie haben eine Klinik gefunden.} other {Ergebnis: Sie haben mehrere Kliniken gefunden.}}" message.

JoostK wrote this answer on 2022-11-25

Can you share a repro?

More Details About Repo
Owner Name angular
Repo Name angular
Full Name angular/angular
Language TypeScript
Created Date 2014-09-18
Updated Date 2022-12-01
Star Count 85220
Watcher Count 3042
Fork Count 22607
Issue Count 1316

YOU MAY BE INTERESTED

Issue Title Created Date Comment Count Updated Date
似乎找到在Alist在某些路由系统运行时出现not found的原因了 2 2022-11-04 2022-11-30
[BUG] Using two-handed weapons from spartan weaponry in off-hand doesn't cause mining fatigue 4 2021-10-24 2022-09-30
Unable to trace Scratches 0 2020-06-15 2022-10-07
Create bootstrap-ie10 2 2020-06-16 2022-11-10
Publish messages in app (messaging-style bottom bar) 4 2022-01-17 2022-11-26
Investigate changing jdk8u to build with VS2019 for Windows for July 2022 PSU 5 2022-05-12 2022-10-29
lelft_mouse_command seems not working in windows terminal. 3 2022-02-24 2022-10-15
Error: 'Table' isn't a type. data table 6 2021-07-02 2022-11-04
Thank You; Additional Printer; and Question 2 2021-05-10 2022-11-23
Attribute lists reordering handles not visible 0 2022-04-04 2022-11-05
Dialogue Tree Extension: DialogueTree::Variable only returns the correct value if dialogue is running 6 2021-09-26 2022-10-10
Weird history shown by gitk 7 2021-04-05 2022-11-30
the link in readme.md was 404 1 2022-08-23 2022-11-02
Theme color fix for perfecting Lighthouse PWA score 0 2022-08-22 2022-11-02
[Docs] Hydration menu item on docs page is wrong 1 2022-08-17 2022-09-15
Opening Incognito Mode While All Tabs in Closed Standard Window are Suspended Reopens Standard and Duplicates Tabs 0 2022-08-13 2022-10-29
CocPumVirtualText should link to Comment instead of NonText 0 2022-09-24 2022-11-06
Support for Reactive Effect on Razer Mouse Dock (Viper in this case) 3 2021-08-22 2022-11-26
Unable to install Istats on my 10.15.7 Cataline 10 2020-10-05 2022-11-02
About swaylock executable location 2 2021-09-19 2022-11-26
How to overlay image or text in rtmp live camera 2 2021-12-04 2022-11-27
Add Microsoft (symbol) 1 2022-08-03 2022-11-13
addImage PNG fails >= 2.4.0 9 2022-01-12 2022-10-27
Assertion failure at SDL_GetDesktopDisplayMode_REAL 35 2021-02-16 2022-11-21
Translation tab: add indent for choices 0 2021-12-06 2022-10-06
Is there a reason there's no Rx.now() method? 2 2021-02-13 2022-11-11
panic: runtime error: slice bounds out of range [:226] with capacity 128 8 2022-04-06 2022-08-10
Attempt to show the Synced Tab CFR before the Jump Back In CFR 0 2022-09-01 2022-08-30
BadFunctionCallException "userEmail is not a valid attribute 1 2022-01-20 2022-10-30
User Hostile Design 3 2021-10-07 2022-01-17
DevTools produces an error when opening in external tab on latest (master) SDK 0 2022-03-01 2022-09-25
[Analysis] Benchmark HTTP threads on Ziggurat 0 2019-10-22 2022-11-30
Question: possible to load widgets remotely? 0 2021-08-09 2022-10-21
The ready condition of MachineDeployment doesn't change when a Machine CR is deleted 2 2022-10-28 2022-11-17
Remove Deprecated - WCM Views 0 2022-07-22 2022-10-14
如果要 删除节点,除了用“button-remove” 的节点工具,还有其他方法可以调用吗? 2 2021-09-03 2022-11-30
What was it like to learn PureScript? 1 2019-10-03 2022-11-25
Preact X import issue 2 2019-07-08 2022-10-21
Raise an exception for remote filesystem + DeepSpeed 0 2021-09-17 2022-10-14
Update tests cassettes (again) 1 2022-02-27 2022-09-28
Error after app transfer. 7 2021-05-10 2022-09-13
cachecloud部署成功后回到审核列表没有通过按钮 4 2018-04-09 2022-11-20
questions about results 2 2021-12-18 2022-11-19
Can't upgrade to Intellij gradle plugin 1.7.0 0 2022-07-17 2022-10-05
[request]: add a `.use_local_endpoint(port)` method to `dynamodb::Config` 0 2021-12-16 2022-10-25
Unmarshal into struct does not work with custom UnmarshalText 4 2018-09-05 2022-11-11
Change the wording when an existing Analytics property was found via GTM, during Analytics set up 1 2022-08-03 2022-08-16
`UniqueCombinations` constraint outputting wrong data type 4 2021-07-12 2022-10-24
[BUG] DropColumns shouldn't throw exception if column does not exist 1 2022-10-24 2022-11-19
Collection view flickering on bounce 5 2019-04-11 2022-11-14