Skip to content

Commit

Permalink
Merge pull request #160 from kevinnio/patch-1
Browse files Browse the repository at this point in the history
Remove empty country names from es-MX.yml
  • Loading branch information
coorasse authored Oct 5, 2019
2 parents a72cd03 + 85d813d commit 251992e
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 5 deletions.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,22 @@ Please update your `Gemfile` if you still need the model translations.
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
------------

Expand Down
5 changes: 0 additions & 5 deletions config/locales/es-MX.yml
Original file line number Diff line number Diff line change
Expand Up @@ -753,11 +753,6 @@ es-MX:
country: País
country_based: País base
country_name: Nombre
country_names:
CA:
FRA:
ITA:
US:
coupon: Cupón
coupon_code: Código de cupón
coupon_code_already_applied: El código del cupón ya ha sido aplicado en esta orden
Expand Down

0 comments on commit 251992e

Please sign in to comment.