![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
h1. Ruby I18n
Ruby Internationalization and localization solution.
Features:
Pluggable features:
Alternative backends:
For more information and lots of resources see: "http://ruby-i18n.org/wiki":http://ruby-i18n.org/wiki
h2. Installation
gem install i18n
h4. Rails version warning
On Rails < 2.3.6 the method I18n.localize will fail with MissingInterpolationArgument (issue "20":http://github.com/svenfuchs/i18n/issues/issue/20). Upgrade to Rails 2.3.6 or higher (2.3.8 preferably) is recommended.
h3. Installation on Rails < 2.3.5 (deprecated)
Up to version 2.3.4 Rails will not accept i18n gems > 0.1.3. There is an unpacked gem inside of active_support/lib/vendor which gets loaded unless gem 'i18n', '~> 0.1.3'. This requirement is relaxed in "6da03653":http://github.com/rails/rails/commit/6da03653
The new i18n gem can be loaded from vendor/plugins like this:
def reload_i18n! raise "Move to i18n version 0.2.0 or greater" if Rails.version > "2.3.4" $:.grep(/i18n/).each { |path| $:.delete(path) } I18n::Backend.send :remove_const, "Simple" $: << Rails.root.join('vendor', 'plugins', 'i18n', 'lib').to_s end
Then you can reload_i18n!
inside an i18n initializer.
h2. Tests
You can run tests both with
rake test
or just rake
ruby -Ilib -Itest test/api/simple_test.rb
ruby -Ilib -Itest test/all.rb
You can run all tests against all Gemfiles with
ruby test/run_all.rb
The structure of the test suite is a bit unusual as it uses modules to reuse particular tests in different test cases.
The reason for this is that we need to enforce the I18n API across various combinations of extensions. E.g. the Simple backend alone needs to support the same API as any combination of feature and/or optimization modules included to the Simple backend. We test this by reusing the same API defition (implemented as test methods) in test cases with different setups.
You can find the test cases that enforce the API in test/api. And you can find the API definition test methods in test/api/tests.
All other test cases (e.g. as defined in test/backend, test/core_ext) etc. follow the usual test setup and should be easy to grok.
h2. Authors
h2. Contributors
http://github.com/svenfuchs/i18n/contributors
h2. License
MIT License. See the included MIT-LICENSE file.
FAQs
Unknown package
We found that sayso-i18n demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.