Skip to content

Location & JSON output #8

@jbboehr

Description

@jbboehr

I thought it might be nice to:

  • output the file containing the missing translation
  • support JSON output

I've prototyped this funtionality here, if you're interested: jbboehr#2

It currently doesn't handle keys found via findInArray, only via templates.

Path formatting is still off.

Sample output:

barbat
        in sample2.blade.php
foobar
        in sample.blade.php
        in sample2.blade.php
global_key
messages.namespaced_key
{
    "key": "barbat",
    "locations": [
        "sample2.blade.php"
    ]
}
{
    "key": "foobar",
    "locations": [
        "sample.blade.php",
        "sample2.blade.php"
    ]
}
{
    "key": "global_key",
    "locations": []
}
{
    "key": "messages.namespaced_key",
    "locations": []
}

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