Is it possible to get back an array? #738
-
If, for example, I have this JSON ..
"nav": {
"home": "Home",
"profile": "Profile"
}
.. I want to get back an array like this |
Beta Was this translation helpful? Give feedback.
Answered by
samuelstroschein
May 12, 2023
Replies: 1 comment 2 replies
-
What are you going to use the array for? It seems like https://github.com/inlang/inlang/tree/main/source-code/core/src/query might be of help. I am unsure though. If you describe your use case, I can help out more effectively. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Oh got it. @inlang/core/query won't be of help.
You probably need to read the JSON yourself to iterate over the keys and dynamically construct the nav bar. Or, use an array directly: