GithubHelp home page GithubHelp logo

acdesouza / intljs-rails Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 356 KB

This gem provides Intl.js, Compatibility implementation of the ECMAScript Internationalization API (ECMA-402) for JavaScript, for your Rails 4+ application.

License: MIT License

Ruby 93.88% Shell 6.12%

intljs-rails's Introduction

intljs-rails

Intl.js gemificated

Read this comment, before use this gem

Version

I will follow Intl.js version numbers.

Installation

Add this line to your application's Gemfile:

gem 'intljs-rails'

And then execute:

$ bundle

Or install it yourself as:

$ gem install intljs-rails

Usage

The Intl.js files will be added to the asset pipeline and available for you to use. So, you should add, in app/assets/javascripts/application.js, these lines:

//= require Intl

IntlPolyfill.__addLocaleData({locale-data/json})

Where {locale-data/json} is the content of a wanted locales

Or, you can add all locales using:

//= require Intl.complete

IntlPolyfill.__addLocaleData({locale-data/json})

Contributing

Feel free to open an issue ticket if you find something that could be improved. A couple notes:

  • If it's an issue pertaining to the Intl javascript, please report it to the Intl.js project.

  • If the Intl scripts are outdated (i.e. maybe a new version of was released yesterday), feel free to open an issue and prod us to get that thing updated. However, for security reasons, we won't be accepting pull requests with updated Intl scripts.

Acknowledgements

Many thanks to jquery-rails project for so good README reference ;)

intljs-rails's People

Contributors

acdesouza avatar

Watchers

 avatar

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.