Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[QUESTION] How to add custom lang file without adding it to vendor folder? #326

Open
nedo2020 opened this issue Jul 20, 2019 · 1 comment

Comments

@nedo2020
Copy link

nedo2020 commented Jul 20, 2019

Hello,

Not an issue. Right now i am adding a custom language file to the vendor folder and it works, That is until I have to composer install. So how would I add the lang file outside the vendor folder.

Thank you

@kylekatarnls
Copy link
Contributor

Hello,

With jenssegers/date 4.0 you can use any of the following language:
https://carbon.nesbot.com/docs/#supported-locales

If you have custom translations to add, you still can use ->setTranslations() as described in https://carbon.nesbot.com/docs/#api-localization and parse/format methods of jenssegers/date will also inherit those custom translations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants