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

label tree management #25

Open
lsantaniello opened this issue Apr 1, 2022 · 1 comment
Open

label tree management #25

lsantaniello opened this issue Apr 1, 2022 · 1 comment

Comments

@lsantaniello
Copy link

Hi,
is it possible to insert a hierarchy like this?

{ "it-IT": { "greeting": "Ciao %s", "status": { "OPEN": "Aperto", "CLOSED": "Chiuso" } } }

$t->_ef('status.CLOSED');

@RinkAttendant6
Copy link
Owner

This isn't currently implemented, though I am open to accepting a backwards-compatible implementation of such a feature.

Alternatively, you may wish to look into using Symfony's translation component (it can be used as a standalone library if your application does not use Symfony framework), It supports such a feature out-of-the-box for PHP and YAML resources and there is a built-in loader for JSON and other formats. I imagine it also supports such a nesting hierarchy with JSON, but I'm not 100% sure as I haven't used it.

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

No branches or pull requests

2 participants