Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow nesting more than one time in lang json files #3

Open
JanBrin opened this issue Jan 18, 2022 · 2 comments
Open

Allow nesting more than one time in lang json files #3

JanBrin opened this issue Jan 18, 2022 · 2 comments
Labels
enhancement New feature or request

Comments

@JanBrin
Copy link

JanBrin commented Jan 18, 2022

Allow nesting strings multiple times and access them e.g. via linguini.get("intro.newColors.coolColor", "en", TypeMappers.String);

{
    "data": {
        // This is a language category:
        "intro": {
            // This is a language item:
            "myFavoriteColor": "My favorite color is blue.",
            "newColors": {
              "coolColor": "This is my cool color"
            }
        }
    },
    "refs": {}
}
@KevinNovak KevinNovak added the enhancement New feature or request label Jan 18, 2022
@Pax-0
Copy link

Pax-0 commented Sep 6, 2022

honestly, this would allow for better organization of translated lines, this package is too useful as is, it will only make it better :)

@Kaisarion
Copy link

working on it.
current form of linguini looks to encourage messiness within json, which left our file 5000+ lines with this lack of customization.
have forked & will post finished product here if you still want to use it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants