date icon indicating copy to clipboard operation
date copied to clipboard

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

Open nedo2020 opened this issue 4 years ago • 1 comments

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

nedo2020 avatar Jul 20 '19 12:07 nedo2020

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.

kylekatarnls avatar May 04 '20 13:05 kylekatarnls