Skip to content

How to handle nested language json files #3167

Discussion options

You must be logged in to vote

Hi @simond07,

Depends on the used plugin. If you are using the default inlang-message-format plugin, that only supports a flat list because namespaces (nesting of keys) leads to complexity and bad practices. See this post https://inlang.com/documentation/concept/message#idhuman-readable.

Suggestion on what to do

Either a) ignore nesting or b) switch your plugin to the i18next format for example https://inlang.com/m/3i8bor92/plugin-inlang-i18next

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by simond07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants