question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Dynamic Keys are not extracted correctly

See original GitHub issue

I’m submitting a…


[ ] Regression (a behavior that used to work and stopped working in a new release)
[X] Bug report  
[ ] Performance issue
[ ] Feature request
[ ] Documentation issue or request
[ ] Support request
[ ] Other... Please describe:

Current behavior

Dynamic keys are not extracted correctly

<!-- t('form.errorMessages.404', 'form.errorMessages.default') -->
<article *transloco="let t; read: 'auth.login'">

is extracted like this:

  "'form": {
    "errorMessages": {
      "404'": "null",
      "default'": "null"
    }
  }

Expected behavior

Should be extracted correctly and respect the read option in the directive

"login": {
      "form": {
        "errorMessages": {
          "404": "null",
          "default": "null"
        }
}

Environment


Angular version: 8.2.9

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
omardomacommented, Jan 21, 2020

@shaharkazaz Awesome, thanks for the hard work, keep it up 😃

0reactions
omardomacommented, Feb 3, 2020

@shaharkazaz Thanks a lot, works great!

Read more comments on GitHub >

github_iconTop Results From Across the Web

defineMessages dynamic keys extraction error #1128 - GitHub
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity...
Read more >
Extract Dynamic keys from json in BQ - Stack Overflow
I want to extract the keys as well as their values and also the number of keys are not fixed in z. It...
Read more >
Decode and Flatten JSON with Dynamic Keys Using Decodable
Extracting the Values · Create a decoding container using the DynamicCodingKeys struct. This container will contain all the JSON's first level ...
Read more >
Dynamic Partitioning in Kinesis Data Firehose
Dynamic partitioning enables you to continuously partition streaming data in Kinesis Data Firehose by using keys within data (for example, customer_id or ...
Read more >
Read a dynamic table with key . | SAP Community
My ultimate goal is to read table as: read table extract with key kschl = v_kschl kapplke = v_kapplke erkrs = v_erkrs. but...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found