The Wayback Machine - https://web.archive.org/web/20250708153449/https://github.com/solidjs-community/solid-primitives/issues/257
Skip to content

@solid-primitive/i18n - allow adding flat translation key with . delimiter #257

Closed
@nirtamir2

Description

@nirtamir2

Hi
I use @solid-primitive/i18n in my app and it works well.
I suggest adding an option to allow the use of translation keys with "." delimiter as the name.
For example: I want my key to be

{"a.b.c.d": "translation"}

instead of

{"a":{"b":{"c":{"d": "translation"}}}

This has the advantage of easy refactoring and inference in IDE (better devtools) compared to the nesting approach.
I understand that this i18n solution is minimal, and I can accept if this proposal will be declined.
Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions