fnando / i18n-js

It's a small library to provide the I18n translations on the Javascript. It comes with Rails support.
MIT License
3.75k stars 519 forks source link

Bug: #670

Closed kbanta11 closed 1 year ago

kbanta11 commented 1 year ago

Description

No javascript files are being added when running bundle install or gem install with this gem and I am getting Sprockets::FileNotFound couldn't find file in 'i18n' on my call //= require i18n (have also tried //= require i18n.js. This seems to make sense because looking int my vendor/assets/javascripts (or anywhere else in my project file structure).

How to reproduce

add i18n to gemfile and run bundle install, try to //= require it in sprockets assets/javascripts/application.js

fnando commented 1 year ago

JavaScript files aren't exported anymore on v4 and must now be imported by using the npm package.