Skip to content

name field localisation (spatie/laravel-translatable) #608

Open
@scramatte

Description

@scramatte

Hi,

I'm using spatie/laravel-translatable to localize my data.
I would like to use it for nested tree too.

Basically, instead of using a plain string, they store variants as JSON data
{"en": "root", "es": "raiz", "fr": "racine"}

I've looked at the code, but I'm unable to find an easy way to achieve it.
Can you please give me a hand with such issue?

Regards

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions