How to handle nested language json files #3167
-
Hi, {
"1keyFirstPlain": "valueFirstPlain",
"2keyFirstPlain": {
"1keySecondPlain": "valueSecondPlain",
"2keySecondPlain": "valueSecondPlain",
"2keySecondPlain": {
"1keyThirdPlain": "valueThirdPlain",
"2keyThirdPlain": "valueThirdPlain",
}
},
} How do I insert/convert/use this in paraglide? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
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 |
Beta Was this translation helpful? Give feedback.
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