alex-pk / chrono-locale Goto Github PK
View Code? Open in Web Editor NEWSupport localization for dates in chrono
License: Other
Support localization for dates in chrono
License: Other
Compiling chrono_locale v0.1.1
error[E0004]: non-exhaustive patterns: `chrono::format::Fixed::TimezoneOffsetDoubleColon` and `chrono::format::Fixed::TimezoneOffsetTripleColon` not covered
--> /home/fred/.cargo/registry/src/github.com-1ecc6299db9ec823/chrono_locale-0.1.1/src/lib.rs:253:21
|
253 | let ret = match spec {
| ^^^^ patterns `chrono::format::Fixed::TimezoneOffsetDoubleColon` and `chrono::format::Fixed::TimezoneOffsetTripleColon` not covered
|
note: `chrono::format::Fixed` defined here
--> /home/fred/.cargo/registry/src/github.com-1ecc6299db9ec823/chrono-0.4.23/src/format/mod.rs:234:5
|
184 | pub enum Fixed {
| --------------
...
234 | TimezoneOffsetDoubleColon,
| ^^^^^^^^^^^^^^^^^^^^^^^^^ not covered
...
240 | TimezoneOffsetTripleColon,
| ^^^^^^^^^^^^^^^^^^^^^^^^^ not covered
= note: the matched value is of type `chrono::format::Fixed`
help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern, a match arm with multiple or-patterns as shown, or multiple match arms
|
322 ~ }
323 ~ chrono::format::Fixed::TimezoneOffsetDoubleColon | chrono::format::Fixed::TimezoneOffsetTripleColon => todo!()
|
For more information about this error, try `rustc --explain E0004`.
error: could not compile `chrono_locale` due to previous error
CLDR(Common Locale Data Repository) is where everybody is collecting locale data. Looking at locales
directory, I think you should take data from https://github.com/unicode-cldr/cldr-dates-full. For example, here is data for fr.
I could write a pl.json for Polish language localization.
Would you be interested in a pull request?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.