Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1302 commits
Select commit Hold shift + click to select a range
c92d8ce
Rebuild spanish yml descriptors based on en.yml core file: https://g…
Aug 4, 2017
843882b
Update german translations for solidus_i18n #9703
vasschneider Sep 12, 2017
806b312
Merge pull request #93 from bofrede/master
mamhoff Sep 12, 2017
3a4d445
Merge pull request #97 from 2beDigital/master
mamhoff Sep 12, 2017
e45a87a
fix typo after review-feedback
vasschneider Sep 12, 2017
79501fc
Build on precise because of Travis MySQL problems
tvdeyen Sep 13, 2017
32098da
Merge pull request #99 from tvdeyen/fixes-travis-mysql-builds
tvdeyen Sep 14, 2017
8677b0a
Merge branch 'master' into feature-7903
vasschneider Sep 15, 2017
d33c1c9
Merge pull request #98 from taktsoft/feature-7903
mamhoff Sep 15, 2017
ceb2aa3
Fix spanish reception states translations
rbngzlv Oct 13, 2017
0c82882
Add catalan reception states translations
rbngzlv Oct 13, 2017
24e07ac
Add Solidus v2.4 to .travis.yml
Oct 23, 2017
cc6ccfc
Update to new FactoryBot name
Oct 25, 2017
c92bec5
add german translation
afdev82 Nov 17, 2017
5cca264
capitalize translation
afdev82 Nov 17, 2017
6f48e15
add translations for confirm email
afdev82 Nov 27, 2017
61d214f
Add missing punctuation symbols and fix typos
AAlvAAro Dec 8, 2017
9fa7372
Fix issue with wrong date format
Dec 22, 2017
f78dfa8
Use pg ~> 0.21
Jan 11, 2018
35dcc6c
Version 1.2.0
jhawthorn Jan 16, 2018
b246f92
Add solidus date format for es-MX
Jan 17, 2018
60d5da9
fix fr translation
afdev82 Jan 18, 2018
f39a8c0
Merge pull request #103 from AAlvAAro/update-es-translations
kennyadsl Jan 18, 2018
f3595ff
Merge pull request #104 from jtapia/master
kennyadsl Jan 18, 2018
36cfcac
Merge pull request #100 from rbngzlv/fix-reception-states-translations
kennyadsl Jan 18, 2018
e6b825e
Merge pull request #105 from adnotam/fix_fr_translation
kennyadsl Jan 18, 2018
d7136f1
Merge pull request #96 from Draiken/complete-pt-br-translations
kennyadsl Jan 18, 2018
9653f20
Merge pull request #102 from adnotam/add_german_translation
tvdeyen Jan 18, 2018
52a42f6
Remove translations for devise
Jan 19, 2018
048e430
Merge pull request #107 from adnotam/devise-i18n
mamhoff Jan 19, 2018
bcfb57f
Add spec against SolidusI18n::Locale.all
Feb 9, 2018
12d5109
Use I18n.available_locales in Locale.all
Feb 9, 2018
c0ca173
Avoid duplicate :en locales in all_locales_options
Feb 9, 2018
5097a1c
Add specs for all_locales_options
Feb 9, 2018
0e5b52b
Ensure locales have unique names
Feb 9, 2018
d8ec726
Update fr.yml
logicielsjpb Feb 14, 2018
9d56049
Merge pull request #110 from logicielsjpb/fr-taxon-rule-policies
kennyadsl Feb 15, 2018
6de7373
Merge pull request #109 from jhawthorn/locales_all
kennyadsl Feb 15, 2018
8e118f4
Add Solidus v2.5 to .travis.yml
Feb 15, 2018
a1f35b9
Setup TravisCi to use chromedriver instead of Poltergeist
kennyadsl Feb 9, 2018
579f532
Merge pull request #111 from solidusio-contrib/kennyadsl/selenium-hea…
kennyadsl Mar 1, 2018
9321737
Add available_languages to store
DanielePalombo Jun 23, 2017
8273e20
Helpers use multi store configuration
DanielePalombo Jun 23, 2017
fc08d94
Fix rubocop offenses
DanielePalombo Jun 23, 2017
8d800b7
Extract available locales from current store
DanielePalombo Jun 23, 2017
ea9e06d
Fix spec
DanielePalombo Jun 23, 2017
70b5fde
Add API controller to manage available locales
DanielePalombo Jul 14, 2017
1341324
Add Handlebars template and helpers
DanielePalombo Jul 14, 2017
ae93106
Add Backbone EditInlineLocales
DanielePalombo Jul 14, 2017
e58fb69
Add Backbone InlineTableLocales
DanielePalombo Jul 14, 2017
bdf1f73
Change the spec to work with the new features
DanielePalombo Jul 14, 2017
9ee4420
Remove useless helper
DanielePalombo Sep 8, 2017
f52b852
Use conditionally display actions instead of hiding/showing with css
DanielePalombo Sep 8, 2017
c2297cc
Move initialization of InlineTableLocales inside relative js
DanielePalombo Sep 8, 2017
4f49de2
Replace Rabl with Jbuilder
DanielePalombo Sep 15, 2017
c82e637
Fix width overflow when select2 is open
kennyadsl Feb 8, 2018
acde2e7
Merge pull request #95 from DanielePalombo/nebulab/localize-every-store
kennyadsl Mar 1, 2018
42292b8
Fix chrome on TravisCI
Mar 8, 2018
1c682c5
Merge pull request #117 from jhawthorn/fix_chrome_on_travis
jhawthorn Mar 8, 2018
b31593b
Lock mysql2 to 0.4.x
Mar 26, 2018
f289fcf
Upgrade kaminari-i18n to version 0.5.0
Mar 27, 2018
02098ba
Fix bundler error on travis
jhawthorn Apr 5, 2018
3785c96
Merge pull request #121 from jhawthorn/fix_travis
tvdeyen Apr 6, 2018
db1351f
Do not configure the fallback locale
mamhoff Apr 5, 2018
30d0f14
Merge pull request #120 from mamhoff/do-not-configure-fallback-locale
jhawthorn Apr 6, 2018
31345ab
Merge pull request #119 from solidusio-contrib/depfu/update/kaminari-…
jhawthorn Apr 6, 2018
9607242
Add lot of French translations
damienlethiec Apr 7, 2018
d8c6a3f
Remove all functionality
jhawthorn Mar 28, 2018
4b0b6f6
Remove migrations
jhawthorn Apr 5, 2018
d7b8f47
Remove routes
jhawthorn Apr 5, 2018
1fd3fd2
Remove unnecessary dependencies
jhawthorn Apr 6, 2018
a6a2b73
Remove country_names hack
jhawthorn Apr 5, 2018
1e9061c
Start version 2.0
jhawthorn Apr 5, 2018
2fa3abc
Remove routing filter config
jhawthorn Apr 5, 2018
775adba
Remove weird locale load_path configuration
jhawthorn Apr 5, 2018
7b46e4e
Remove SolidusI18n::Config
jhawthorn Apr 6, 2018
593951b
Remove decorators config in engine
jhawthorn Apr 6, 2018
2683f4b
Remove controller_locale_helper
jhawthorn Apr 6, 2018
8cfd1a2
Remove SolidusI18n::Locale helpers
jhawthorn Apr 6, 2018
c33ef15
Remove autoloading from lib
jhawthorn Apr 6, 2018
782d8f3
Remove install generator
jhawthorn Apr 6, 2018
7589f82
Update README for version 2.0
jhawthorn Apr 6, 2018
6b3d241
Remove all but the most basic specs
jhawthorn Apr 24, 2018
6666929
Remove rails-i18n and kaminari-i18n
jhawthorn Apr 25, 2018
112d14f
Improve README for 2.0
jhawthorn Apr 25, 2018
af3648e
Remove solidus_support
jhawthorn Apr 27, 2018
2e1587f
Merge pull request #122 from jhawthorn/maybe_version_2_0
jhawthorn May 2, 2018
718d2ea
Move from solidusio-contrib to solidusio
jhawthorn May 3, 2018
5488233
Remove old "Upgrading" section of README
jhawthorn May 3, 2018
9b68712
Add Solidus v2.6 to .travis.yml
May 7, 2018
a651f9f
update pluralization key for error messages
vdanciu May 20, 2018
90f7d33
Fix deprecation warning for #has_rdoc
Jun 13, 2018
bbf9a06
de.yml added missing curly braces
gogogoaldi Aug 30, 2018
6f67f39
Add Solidus 2.7 to .travis.yml
Sep 24, 2018
c3d6c30
Merge pull request #132 from jacobherrington/patch-1
kennyadsl Sep 24, 2018
76df4a6
Remove versions past EOL from .travis.yml
Sep 25, 2018
6d9e79b
Merge pull request #133 from jacobherrington/patch-2
kennyadsl Oct 3, 2018
8035e37
remove unused chromedriver
ccarruitero Nov 7, 2018
783a106
Merge pull request #137 from ccarruitero/travis-fix
kennyadsl Dec 18, 2018
b1d9d8a
Remove 2.2 from CI (EOL)
Dec 17, 2018
9e50db5
Merge pull request #140 from jacobherrington/patch-3
kennyadsl Dec 18, 2018
7820f7f
Add time formats to pt-BR i18n
rubenochiavone Jan 12, 2019
9fef696
Improve pt-BR i18n
rubenochiavone Jan 12, 2019
4c3d330
Add 'one' key for product_property model on de locale
Jan 17, 2019
16a6c9a
Remove duplicate translations from French file
coorasse Jan 23, 2019
436d405
Merge pull request #131 from gogogoaldi/patch-1
kennyadsl Jan 23, 2019
ee9b2f8
Update README.md
maduhaime Jan 29, 2019
9f27b8f
Merge pull request #143 from wtag/fix-de-for-product-property
coorasse Jan 29, 2019
ce3afe8
Merge pull request #141 from rubenochiavone/add_pt_br_time_formats
coorasse Jan 29, 2019
5d8a9af
Merge pull request #130 from jtapia/chore/fix_rubygems_deprecation
coorasse Jan 29, 2019
8dc5d3e
Update es-MX locale
Jun 13, 2018
47f6bcd
Merge pull request #129 from jtapia/chore/es-mx-locale
coorasse Jan 29, 2019
9daa7fa
Normalise de locales file
coorasse Jan 23, 2019
21de260
Reorder properties
coorasse Jan 31, 2019
35116b5
Merge pull request #147 from maduhaime/patch-1
coorasse Feb 1, 2019
0adc6c1
update russian locale data
Feb 5, 2019
9880267
Update Travis build matrix
aitbw Feb 13, 2019
b647244
Gemfile & gemspec maintenance
aitbw Feb 13, 2019
1e8ced9
Merge pull request #149 from aitbw/aitbw/extension_maintenance
kennyadsl Feb 26, 2019
4cecc5b
fix pt-BR grammar for reason word
Mar 8, 2019
e26752f
Add zones translation for the admin tab
Mar 8, 2019
ce2592a
more store and payment method translations
Mar 8, 2019
b0de9e6
add translation for modify stock count
Mar 8, 2019
0cc047b
add pagination translations
Mar 8, 2019
402ec5c
fix multiple sku scope
Mar 8, 2019
c1cd949
add master_sku translation
Mar 8, 2019
c65bc63
add view product translation
Mar 8, 2019
fd57fcb
add view product translation
Mar 8, 2019
d11acad
Merge branch 'master' of github.com:Vipkry/solidus_i18n
Mar 8, 2019
5d4645b
added more translations to pt-BR locale
antoniogregorio Mar 19, 2019
69c369c
Merge pull request #144 from renuo/feature/remove_duplicate_translations
coorasse Apr 5, 2019
2ff3efb
Merge pull request #146 from renuo/normalize_de_locales
coorasse Apr 5, 2019
4600a00
Remove Travis matrix
coorasse Apr 5, 2019
50a5de3
Add time formats for es locale
Jun 3, 2019
936477e
Remove empty country names from es-MX.yml
kevinnio Jul 1, 2019
06cad10
Add info on how to localize country names to README.md
kevinnio Jul 1, 2019
150c975
Add missing MX translations
Apr 24, 2019
77abb88
Merge pull request #153 from solidusio/reduce_build_matrix
coorasse Aug 5, 2019
e07e62d
Merge pull request #159 from jtapia/chore/es_missing_translations
coorasse Aug 5, 2019
672fed1
Add rubocop as a check on Travis
coorasse Apr 6, 2019
9f27ca6
Use .ruby-version file for both travis and rubocop
coorasse Apr 6, 2019
c870e17
exclude vendor folder
coorasse Apr 6, 2019
6880fe8
Merge pull request #156 from jtapia/chore/es-mx-locale
spaghetticode Aug 5, 2019
5a20d37
Merge pull request #151 from antoniogregorio/pt-BR_locale
coorasse Aug 5, 2019
a578e1a
Merge pull request #155 from solidusio/check_rubocop
coorasse Aug 5, 2019
4ab88e3
Update gemspec
coorasse Apr 6, 2019
d0b9684
Merge pull request #154 from solidusio/remove_spec_from_gem
coorasse Aug 6, 2019
0e9827e
Update README.md
kevinnio Aug 6, 2019
28a3b50
Merge pull request #142 from rubenochiavone/pt_br_i18n_improvements
spaghetticode Oct 4, 2019
d45c198
Merge pull request #135 from bitberryru/feature/update-russian-locale…
spaghetticode Oct 4, 2019
240a55b
Update README.md
kevinnio Oct 4, 2019
49da06c
Merge pull request #160 from kevinnio/patch-1
coorasse Oct 5, 2019
dca34a3
fix js date formats to work with the datepicker
coorasse Aug 30, 2019
6b970c2
Merge pull request #163 from solidusio/fix_datepicker_js_option
spaghetticode Oct 7, 2019
f2d84e6
Update italian translations for solidus 2.9
Aug 23, 2019
eaf54e7
Merge pull request #162 from welaika/update_it_translations
spaghetticode Nov 8, 2019
02dd2e3
Merge pull request #150 from Vipkry/master
spaghetticode Nov 8, 2019
b55996d
Merge pull request #127 from vdanciu/master
spaghetticode Nov 8, 2019
347378c
Adopt CircleCI instead of Travis
aldesantis Sep 23, 2019
db30712
Merge pull request #164 from aldesantis/circleci
spaghetticode Nov 8, 2019
50ac8df
Add es.spree.view_product
manuca Nov 27, 2019
1f6b4f6
Add es.spree.master_sku
manuca Nov 27, 2019
957aac4
Add es.spree.admin.tabs.zones
manuca Nov 27, 2019
77f93c1
Add es.spree.filter
manuca Nov 27, 2019
96bbc9f
Add es.spree.modify_stock_count
manuca Nov 27, 2019
ae0a646
Add es.spree.admin_login
manuca Nov 27, 2019
39ffd68
lowercase word
manuca Nov 27, 2019
ef838cd
Fix incorrect translation
manuca Nov 28, 2019
0b5b201
Fix incorrect translation
manuca Nov 28, 2019
cab716e
Merge pull request #167 from manuca/add-spanish-strings
spaghetticode Jan 10, 2020
8df4d70
Update extension structure using dev_support
blocknotes Jan 24, 2020
ec26036
Merge pull request #168 from blocknotes/master
aldesantis Jan 25, 2020
7161844
Product Screens, Promotions, User, Hints Corrected
hefan Feb 17, 2020
5a05219
Merge pull request #148 from hefan/master
kennyadsl Feb 17, 2020
53b4314
Fix existent russian translations and add new one
May 15, 2020
821e312
Merge pull request #170 from bitberryru/feature/update-russian-locale…
kennyadsl May 21, 2020
bdb4cce
make gem work with solidus_support >0.5
hefan Jun 13, 2020
68e3a28
Merge pull request #173 from hefan/master
kennyadsl Jun 16, 2020
8634e3d
add missing german translations necessary for backend
hefan Jul 15, 2020
0094b8d
Merge pull request #174 from hefan/master
tvdeyen Jul 16, 2020
f527bb9
add store credit translations and short solidus time format
hefan Jul 18, 2020
341a581
Merge pull request #175 from hefan/master
kennyadsl Sep 25, 2020
9597168
Remove .ruby-version
kennyadsl Jan 12, 2021
1f2ccb8
add some missing translations
afdev82 Jan 18, 2021
d5d60a0
Merge pull request #179 from solidusio/kennyadsl/remove-ruby-version
kennyadsl Feb 18, 2021
59fcf77
Remove deprecated module inclusion
kennyadsl Feb 18, 2021
16035a5
Merge pull request #182 from solidusio/kennyadsl/remove-deprecation
kennyadsl Feb 18, 2021
7fdad5b
Allow Solidus 3
kennyadsl Apr 20, 2021
f2662ea
Merge pull request #183 from solidusio/kennyadsl/allow-solidus-3
kennyadsl Apr 20, 2021
70f4c67
Convert version file to a standard format
kennyadsl Apr 20, 2021
c79ceb3
Bump SolidusI18n to 2.1.0
kennyadsl Apr 20, 2021
a5317e8
Merge branch 'master' into custom_sm
afdev82 May 21, 2021
60ce2b0
Drop support for ruby 2.4 and allow ruby 3
afdev82 May 27, 2021
5c62694
Merge pull request #185 from afdev82/patch-1
kennyadsl Jun 8, 2021
629aef0
Merge pull request #181 from adnotam/custom_sm
kennyadsl Jun 8, 2021
6ec3f03
Missed parameter in German locale
jalkoby Jun 21, 2021
90a9faa
Update en-IN.yml
MrBhatt Oct 27, 2021
1605038
Merge pull request #187 from MrBhatt/patch-1
kennyadsl Jan 24, 2022
f0a214a
Merge pull request #186 from jalkoby/patch-1
kennyadsl Jan 24, 2022
f10c4ac
Bump SolidusI18n to 2.1.1
kennyadsl Jan 24, 2022
0476134
Added some missing french translations on the admin dashboard
Kryze Mar 3, 2022
ead3914
Merge pull request #190 from Kryze/master
kennyadsl Mar 8, 2022
3e247ac
Add missing FR `spree.admin_login` translation
benjaminwil Apr 14, 2022
bde7665
Add missing punctuation for `are_you_sure` strings
benjaminwil Apr 14, 2022
6f71122
Merge pull request #192 from SuperGoodSoft/bw/i18n-tweaks-2
kennyadsl Apr 19, 2022
f2690d7
Concise German Refund translations
tvdeyen Apr 22, 2022
8f79e54
Short German Cutomer Returns translation
tvdeyen Apr 22, 2022
cd7ff35
Change German Stock Location translation
tvdeyen Apr 22, 2022
7ac5724
Be consistent with German "Return Authorization"
tvdeyen Apr 22, 2022
90c775b
Fix German cancel_inventory translation
tvdeyen Apr 22, 2022
be16ff7
Fix German RMA translation
tvdeyen Apr 22, 2022
99c990c
Shorten German translation of generic "create_one"
tvdeyen Apr 22, 2022
8684b17
Be more precise in refund error message
tvdeyen Apr 22, 2022
4e52a1c
Be more verbose in German returns translation
tvdeyen Apr 22, 2022
2a14445
Add missing German translations
tvdeyen Apr 22, 2022
8de3d0e
Fix German taxon.position translation
tvdeyen Apr 22, 2022
c7de0b3
Change German line item translation
tvdeyen Apr 22, 2022
f0cfe7c
Fix German item_total translation
tvdeyen Apr 22, 2022
c5fc1a8
Merge pull request #191 from SuperGoodSoft/bw/i18n-tweaks
tvdeyen Apr 22, 2022
13db971
Merge pull request #193 from tvdeyen/refund-return-translations
kennyadsl Jul 15, 2022
2f93fe6
Update to use forked solidus_frontend when needed
waiting-for-dev Jul 28, 2022
5dcc09c
Merge pull request #196 from waiting-for-dev/waiting-for-dev/support_…
kennyadsl Aug 2, 2022
67dc22f
Remove empty country_names translations
jarednorman Oct 7, 2022
d1ba7b1
Merge pull request #198 from jarednorman/remove-empty-translations
jarednorman Oct 7, 2022
c7f88cd
Update stale.yml
kennyadsl Nov 11, 2022
8b4a46b
Add missed ru translations
Nov 16, 2022
5ce2a60
Merge pull request #195 from k1r8r0wn/add_missing_ru_translations
waiting-for-dev Nov 17, 2022
a2a7a17
Update CI configuration
waiting-for-dev May 3, 2023
a878505
Merge pull request #201 from solidusio/waiting-for-dev/fix_ci
kennyadsl May 3, 2023
00449e9
Support Solidus v4
waiting-for-dev May 8, 2023
93cc0be
Merge pull request #202 from solidusio/waiting-for-dev/solidus_4
waiting-for-dev May 8, 2023
2ce298d
Update extension to the new release process
waiting-for-dev May 8, 2023
275916f
Merge pull request #203 from solidusio/waiting-for-dev/new-release-pr…
kennyadsl May 8, 2023
0a44367
Release v2.2.0
kennyadsl May 8, 2023
464bafc
Adapt to new Solidus default branch name
waiting-for-dev May 9, 2023
a56b734
Merge pull request #204 from solidusio/waiting-for-dev/solidus_main
waiting-for-dev May 22, 2023
18b1114
Update to the new "main" default branch
waiting-for-dev Aug 29, 2023
d5e82de
Merge pull request #205 from solidusio/waiting-for-dev/main
waiting-for-dev Aug 29, 2023
f243447
Fix the branch name for solidus_frontend
elia Oct 5, 2023
3f44337
Update README.md
kennyadsl Nov 22, 2023
30edeba
[PT-BR] New admin components strings
nerijunior Feb 21, 2026
d8a4bfc
Merge pull request #209 from nerijunior/njjjr/pt-br-new-admin-strings
jarednorman Feb 21, 2026
4eb54a0
Run `bundle exec solidus extension .`
forkata Mar 12, 2026
1151717
Remove RuboCop TODO file
forkata Mar 12, 2026
8abe3b8
Remove .circleci config and badge
forkata Mar 12, 2026
5af2710
Merge pull request #210 from SuperGoodSoft/switch-to-actions
jarednorman Mar 12, 2026
1490218
Switch to test-solidus-extension workflow
forkata Mar 19, 2026
d820044
Merge pull request #211 from SuperGoodSoft/fix-ci-github-actions
jarednorman Mar 19, 2026
826bcdb
Import solidus_i18n into i18n/
tvdeyen Aug 12, 2026
1013332
chore: Setup tests
tvdeyen Aug 12, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,13 @@ jobs:
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

solidus_i18n:
uses: ./.github/workflows/test_solidus.yml
with:
lib_name: i18n
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

solidus_sample:
uses: ./.github/workflows/test_solidus.yml
with:
Expand Down
4 changes: 4 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@ group :promotions do
gem "shoulda-matchers", "~> 5.0", require: false
end

group :i18n do
gem "solidus_i18n", path: "i18n", require: false
end

group :lint do
gem "erb-formatter", "~> 0.7", require: false
gem "standard", "~> 1.50", require: false
Expand Down
5 changes: 5 additions & 0 deletions bin/build
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ echo "* Testing Solidus Core *"
echo "************************"
bin/rspec core/spec

echo "************************"
echo "* Testing Solidus I18n *"
echo "************************"
bin/rspec i18n/spec

echo "**************************"
echo "* Testing Solidus Sample *"
echo "**************************"
Expand Down
3 changes: 3 additions & 0 deletions i18n/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Changelog

See https://github.com/solidusio/solidus_i18n/releases for older versions.
154 changes: 154 additions & 0 deletions i18n/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,154 @@
# Solidus Internationalization

[![Gem Version](https://badge.fury.io/rb/solidus_i18n.svg)](https://badge.fury.io/rb/solidus_i18n)

This is the Internationalization project for [Solidus](https://solidus.io)

---

## 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](#locale-in-url)).

## Installation

Add the following to your `Gemfile`:

```ruby
gem 'solidus_i18n'
gem 'rails-i18n'
gem 'kaminari-i18n'
```

## 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`

``` ruby
gem 'routing-filter'
```

2. Add `filter :locale` to your `config/routes.rb`

``` ruby
Rails.application.routes.draw do
filter :locale

mount Spree::Core::Engine, at: '/'
end
```

3. Configure routing-fitler in `config/initializers/locale_filter.rb` (optional)

``` ruby
# Do not include the default locale in the URL
RoutingFilter::Locale.include_default_locale = false
```

## Supported languages

We currently support the [following locales](https://github.com/solidusio/solidus_i18n/tree/main/config/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](http://guides.rubyonrails.org/i18n.html#how-to-store-your-custom-translations).

## 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 <LOCALE>

Substitute <LOCALE> with your locale code (e.g: `it`).

This will do a cleanup and prepare `<LOCALE>.yml` with all the missing keys.
You can then write the translations and open a pull request.

## Model Translations

We **removed** support for translating models into [a separate Gem](https://github.com/solidusio-contrib/solidus_globalize).

Please update your `Gemfile` if you still need the model translations.

```ruby
# Gemfile
gem 'solidus_globalize', github: 'solidusio-contrib/solidus_globalize', branch: 'master'
```

## Localizing country names

You can translate country names by defining `spree.country_names` in your own locale files. For example, to have countries in Spanish do:

```yml
es:
spree:
country_names:
US: Estados Unidos de América
UK: Reino Unido
CA: Canadá
# ...
```

Some supported languages already define localized country names. Take a look at this repo's `.yml` files for your locale to confirm if we already provide translations.

## Contributing

Solidus is an open source project and we encourage contributions. Please read
[CONTRIBUTING.md](CONTRIBUTING.md) before contributing.

## Development

### Testing the extension

First bundle your dependencies, then run `bin/rake`. `bin/rake` will default to building the dummy
app if it does not exist, then it will run specs. The dummy app can be regenerated by using
`bin/rake extension:test_app`.

```shell
bin/rake
```

To run [Rubocop](https://github.com/bbatsov/rubocop) static code analysis run

```shell
bundle exec rubocop
```

When testing your application's integration with this extension you may use its factories.
You can load Solidus core factories along with this extension's factories using this statement:

```ruby
SolidusDevSupport::TestingSupport::Factories.load_for(SolidusI18n::Engine)
```

### Running the sandbox

To run this extension in a sandboxed Solidus application, you can run `bin/sandbox`. The path for
the sandbox app is `./sandbox` and `bin/rails` will forward any Rails commands to
`sandbox/bin/rails`.

Here's an example:

```
$ bin/rails server
=> Booting Puma
=> Rails 6.0.2.1 application starting in development
* Listening on tcp://127.0.0.1:3000
Use Ctrl-C to stop
```

### Releasing new versions

Please refer to the [dedicated page](https://github.com/solidusio/solidus/wiki/How-to-release-extensions) in the Solidus wiki.

## License

Copyright (c) 2026 Thomas von Deyen, released under the New BSD License.
34 changes: 34 additions & 0 deletions i18n/Rakefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# frozen_string_literal: true

require "rubygems"
require "rake"
require "rake/testtask"
require "rspec/core/rake_task"
require "solidus_i18n"
require "spree/testing_support/dummy_app/rake_tasks"
require "bundler/gem_tasks"

RSpec::Core::RakeTask.new
task default: :spec

DummyApp::RakeTasks.new(
gem_root: File.dirname(__FILE__),
lib_name: "solidus_i18n"
)

namespace :solidus_i18n do
desc "Update by retrieving the latest Solidus locale files"
task update_default: :environment do
require "open-uri"
puts "Fetching latest Solidus locale file"
location = "https://raw.github.com/solidusio/solidus/main/core/config/locales/en.yml"

File.write("#{locales_dir}/en.yml", URI.parse(location).read)
end

def locales_dir
File.join File.dirname(__FILE__), "config/locales"
end
end

task test_app: "db:reset"
13 changes: 13 additions & 0 deletions i18n/bin/rails
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/usr/bin/env ruby
# This command will automatically be run when you run "rails" with Rails gems
# installed from the root of your application.

ENGINE_ROOT = File.expand_path("..", __dir__)
ENGINE_PATH = File.expand_path("../lib/solidus_i18n/engine", __dir__)

# Set up gems listed in the Gemfile.
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile", __dir__)
require "bundler/setup" if File.exist?(ENV["BUNDLE_GEMFILE"])

require "rails/all"
require "rails/engine/commands"
Loading
Loading