Coder Social home page Coder Social logo

okaeripoland / okaeri-placeholders Goto Github PK

View Code? Open in Web Editor NEW
12.0 12.0 0.0 298 KB

Simple blazing-fast placeholders library with yet unlimited capabilities

License: MIT License

Java 100.00%
bukkit bungee paper placeholders reflection spigot

okaeri-placeholders's People

Contributors

dasavick avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

okaeri-placeholders's Issues

Add Duration support

It would be great to allow custom java.time.Duration formatting that can produce:

  • 02:30
  • 01:02:30
  • 2h3m
  • 1d2h3m
  • 2 hours and 3 minutes
  • 1 hour and 3 minutes
  • 1 day and 5 hours
  • 1 day, 5 hours and 1 minute

Possible solutions:

  • Allow to extract specific part of the duration just by including default decomposition rules (e.g. hours {duration.hours} {hour,hours#duration.hours}) - easy solution, but this alone does not allow dynamic range and would result in things like "0 days, 4 hours, 1 minute". Good start anyway - would integrate okay with current pluralization. A bit long to write. Can even support leading zeros using the number formatting feature. Very flexible with the formatting and the different approaches languages can have for such constructs.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.