Skip to content

[Bug]: Restore Support for Custom Translations via Override if Published #2070

@Mariosueiro

Description

@Mariosueiro

What happened?

In version v3.5.2 of the project, the change "Migrate Localisations back to PHP Files from JSON" (#2040) removed the functionality to override custom translations by deleting the following code snippet:

_

// Override if Published
$this->loadJsonTranslationsFrom(
$this->app->langPath('vendor/livewire-tables')
);

_

Previously, this code allowed developers to load their own custom translations by overriding the default published JSON translations. Removing this functionality has made it impossible to easily use custom translations, negatively affecting projects relying on this behavior.

How to reproduce the bug

**

// Override if Published
$this->loadJsonTranslationsFrom(
$this->app->langPath('vendor/livewire-tables')
);

**

Package Version

3.5.2

PHP Version

None

Laravel Version

No response

Alpine Version

No response

Theme

None

Notes

  • Developers who customize translations can no longer use their own JSON files to override the defaults.

  • This breaks established workflows where published translations are modified to meet project-specific requirements.

Error Message

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions