Skip to content

Commit 8b5b1b5

Browse files
committed
Add info on how to localize country names to README.md
This feature is currently not documented. This adds info about it to the README.md file.
1 parent 6c4eaa7 commit 8b5b1b5

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,23 @@ Please update your `Gemfile` if you still need the model translations.
8585
gem 'solidus_globalize', github: 'solidusio-contrib/solidus_globalize', branch: 'master'
8686
```
8787

88+
## Localizing country names
89+
90+
Feel free to define `spree.country_names` in your own locale files if you need custom localization of country names. The value expected is a hash. For example, to have countries in Spanish do:
91+
92+
```yml
93+
es:
94+
spree:
95+
country_names:
96+
# ISO: Country name
97+
US: Estados Unidos de América
98+
UK: Reino Unido
99+
CA: Canadá
100+
# ...
101+
```
102+
103+
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.
104+
88105
Contributing
89106
------------
90107

0 commit comments

Comments
 (0)