Skip to content

Duplicate translations during import #40

@haggaiwambua

Description

@haggaiwambua

What happened?

When I scan for new languages or run the console command to import the translations from the language files, I get duplication records where one of them is broken.

An example is the key filament-panels::resources.user.navigation.label will be imported with the correct text, * group and * namespace. At the same time, a key user.navigation.label in the resources group and filament-panels namespace will be imported. The text will look like {"en": "user.navigation.label", "fr": "user.navigation.label"}.

How to reproduce the bug

Install Laravel 12, Filament v3, and v2.0.6 of this package. Add the plugin to the filament panel and register it to the navigation. Go to the translations resource UI and then click Scan for New Language.

Package Version

2.0.6

PHP Version

9.3

Laravel Version

12

Which operating systems does with happen with?

macOS

Notes

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions