Code Monkey home page Code Monkey logo

subdomain_locale's Issues

Rails 5 support

I see that this gem doesn't support rails 5. What stops it from doing so? Is there any way I can help you getting past that?

Thank you for considering that!

Proper urls in mailer views

Would be great if subdomain_locale can patch links in mailer as well without explicit setting locale: I18n.locale

i18n dependency update needed

In Gemfile:
rails (= 4.2.1) ruby depends on
activejob (= 4.2.1) ruby depends on
activesupport (= 4.2.1) ruby depends on
i18n (~> 0.7) ruby

subdomain_locale (>= 0) ruby depends on
  i18n (~> 0.6.9) ruby

Translated routes fails

Hey ho!

I'am very interested on your gem because I am do it that on my app.
The problem I have is when I switch the language on a page that has a URL that is different for every available locale. Is your gem implemented thinking in that point?

Could it be nice to have tha feature, right?

Thanks guys!

Rails 6 support

Bundler could not find compatible versions for gem "railties":
  In Gemfile:
    rails (= 6.1.2) was resolved to 6.1.2, which depends on
      railties (= 6.1.2)

    subdomain_locale (~> 1.3) was resolved to 1.3.0, which depends on
      railties (>= 5.0, < 6.0)

Patch polymorphic_url too to add `locale` parameter

It would be good for consistency to patch polymorphic_url too to support locale parameter, like url_for. Something like:

    def polymorphic_url(record_or_hash_or_array, options = {})
      options = options.dup
      if options.key?(:locale)
        locale = options.delete(:locale)
        options[:subdomain] = subdomain_locales.subdomain_for(locale)
        options[:only_path] = false
      end
      super record_or_hash_or_array, options
    end

I don't know yet where to monkeypatch this method.

Orphaned file links in the gemspec

subdomain_locale at ... did not have a valid gemspec.
This prevents bundler from installing bins or native extensions, but that may not affect its functionality.
The validation message from Rubygems was:
  ["test/controller_test.rb", "test/lib/i18n.rb", "test/acceptance_test.rb"] are not files

Maybe git ls-files is less error-prone.

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.