Comments (6)
I'd gladly take a look at any contributions but personally have no plans on pursuing localization.
from carbon.
Note that this could easily be done by simply adding a formatLocalized
(or something) method to Carbon that would basically do that :
return strftime($format, $this->timestamp);
I mean the tools for localization are already in PHP, Carbon just needs a method.
from carbon.
+1
from carbon.
@Anahkiasen It can simply work with PHP's Set_locale right ?
from carbon.
Yup.
from carbon.
It will get pulled in over here #18 once we clean up the tests.
from carbon.
Related Issues (20)
- Serialization of 'Carbon\Carbon@anonymous' is not allowed (Trait Mixin) HOT 2
- Incorrect date generation for specific format to createFromFormat method HOT 1
- CarbonPeriod gives different values for periods of same duration HOT 1
- endOfMillennium not working as expected HOT 3
- Non-Latin Numbers Not Localized Correctly HOT 1
- Output array for month names and weekday names HOT 3
- Cannot validate invalid date/time HOT 2
- Cannot get weekday or offset from date/time HOT 1
- Huge serialize performance degradation Carbon >= 2.61.0 HOT 11
- Add `today` to `ONE_DAY_WORDS` option for `diffForHumans()` HOT 2
- Carbon::createFromFormat - Unknown named parameter $timezone HOT 2
- getAbbreviatedName() returning wrong timezone HOT 2
- Problema con los traits HOT 1
- Unable to use named parameter with trait mixin
- CreateFromFormat without specifying day in the format HOT 1
- [Request] endOfSeason HOT 2
- `equalTo()` with argument `null` returns true if time exactly equal to now HOT 1
- diffInWeekdays returns unexpected values HOT 1
- CarbonPeriodImmutable creates mutable Carbon instanced when used with static creator methods
- [Info] months name list method HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from carbon.