Skip to content
This repository was archived by the owner on Feb 18, 2024. It is now read-only.

Adding new file to Lang folder #76

@elieandraos

Description

@elieandraos

Hello,
great package...
i am using it to have arabic dates.
my issue is in localizedFormat() where i need the months names in arabic.
i did vendor:publish and realized there is no months.php file in the lang\ar folder.
i created it and still couldn't retrieve the values.

after digging, i had to change one line of code in the localizedFormat() function

$replace = \Lang::get("months." . $langKey); //had to remove localized-carbon::

now my lang files are being loaded.
did i miss something ? is there any other way around without changing the source code ?

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