jenssegers / date

🗓 A library to help you work with dates in multiple languages, based on Carbon.
https://jenssegers.com
MIT License
1.81k stars 244 forks source link

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

Open nedo2020 opened 5 years ago

nedo2020 commented 5 years ago

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 commented 4 years ago

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.