Git Product home page Git Product logo

humanize_time's Introduction

Image

humanize_time's People

Contributors

mamantoha avatar

Stargazers

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

Watchers

 avatar  avatar  avatar

humanize_time's Issues

Regression: Locale deployment is broken

With version 0.7.0 a binary using humanize_time could be deployed to a different machine without requiring any dependencies on the target machine.
When I upgraded shardbox.org to 0.9.0 all translations for i18n were missing.

I didn't investigate further, but the migration from TechMagister/i18n.cr to crystal-i18n/i18n (#10) is an obvious cause. The old library embedded the localization files into the binary, whereas the integration with the new library just registers the paths and loads them at runtime. This obviously requires the localization files to be available and at the same location as in the build environment. That's a huge restriction for easy deployment workflow.

I'm filing this here instead of a feature request to crystal-i18n/i18n because I don't use i18n, I'm just using humanize_time. This shard used to work without requiring runtime dependencies, now it doesn't anymore.
I see a couple of options:

  • Add embeddable localizations as feature to crystal-i18n/i18n
  • Add embedded localization for this shard (en only would be sufficient)
  • Declare that it's not a supported feature, but offer a way to roll your own. There should be an option to disable loading build paths at runtime.

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.