{"repo":"solidusio/solidus_i18n","free":true,"listed":false,"github":"https://github.com/solidusio/solidus_i18n","clone":"git clone https://github.com/solidusio/solidus_i18n.git","description":":earth_asia: This is the Internationalization project for Solidus","language":"Ruby","stars":66,"topics":["solidus","internationalization","translations","language","ecommerce","ecommerce-platform","solidus-extensions","hacktoberfest"],"license":"BSD-3-Clause","category":"ecommerce","readme_excerpt":"Solidus Internationalization [!IMPORTANT] Solidus's internationalization support has been moved into the Solidus monorepo. Please direct new issues and pull requests there instead. --- Changes in Version 2.0 solidus i18n Version 2.0+ only contains translation files. Previous versions of solidus i18n included extra functionality like locale selectors and which is now built in to Solidus 2.6+. Configuration for routing-filter has also been removed and must be configured manually (See Locale in URL). Installation Add the following to your Gemfile : Locale in URL Older versions of solidus i18n included the routing-filter gem and configured routes to include the locale in the URL. This is still supported (maybe even recommended) but requires some additional configuration. 1. Add this gem to your Gemfile , then run bundle install 2. Add filter :locale to your config/routes.rb 3. Configure routing-fitler in config/initializers/locale filter.rb (optional) Supported languages We currently support the following locales by default. If you need a locale that is not in the list you can add a custom translation file into your application by following the Rails translations guide. Updating Translations If you want to improve the translations on your language, run the tasks: bundle exec rake solidus i18n:update default bundle exec i18n-tasks add-missing --nil-value --locale Substitute with your locale code (e.g: it ). This will do a cleanup and prepare .yml with all the missing keys. You can","default_branch":null,"files":null,"tree":[],"storefront":"/r/solidusio","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/solidusio/solidus_i18n/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}