Flat JSON is treated like nested
See original GitHub issueDescribe the bug
{
"FOO": "Foo text",
"FOO.BAR": "Bar inside foo text"
}
If I use FOO
the extension fails to load the language because it seems to convert it to a nested object instead of being flat.
Extension Version i18n Ally
Framework/i18n package you are using vue-i18n
To Reproduce
- Create a locale file like
es.json
and add the next code
{
"FOO": "Foo text",
"FOO.BAR": "Bar inside foo text"
}
- Save it and it doesn’t show as an available language.
- Rename
FOO
toFOO.SOMETHING
and it works.
Device Infomation
- OS: Any
- Version: 1.11.4
- VSCode Version: 1.41.1
Extension Log
📑 Loading (es) src/locales/es.json
🐛 Failed to load TypeError: Cannot create property 'BAR' on string 'Foo text'
Issue Analytics
- State:
- Created 4 years ago
- Comments:9 (5 by maintainers)
Top Results From Across the Web
Flat JSON is treated like nested · Issue #184 · lokalise/i18n-ally
Yes. This is a known issue. Due to the internal design of i18n ally, it always unflat the flatten keys to nested object...
Read more >"Flat" JSON versus JSON with nested structures - IBM
Flat JSON is useful when you need KV pairs but you don't want nested structures. Some analytics platforms ingest KV-pair format data faster ......
Read more >How to flatten multilevel/nested JSON? - python - Stack Overflow
Issue with my structure is that I have quite some nested dict/lists when I convert my JSON file. I tried to use pandas...
Read more >Flatten Hierarchical(Nested) Json Data in Snowflake Vs ...
Datatypes such as JSON arise out of a number of data needs. ... process to flatten the nested json data in both Snowflake...
Read more >flat vs nested data layer? - Experience League Community
I would like to know pros and cons of nested and flat data layer to implement on a web property? Also, would like...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi everyone, the support is landed in v1.12.0 (experimental). Please check it out, feedbacks are welcome! Thanks!
cc @JJBocanegra @guidokessels @zeakd
Yes I have already planned to support that. But due to the China coronavirus situation, I have to deal some real-world problem before I dig into the implement. Thanks for understanding and keep tuned 😃