Skip to content

Commit 251992e

Browse files
authored
Merge pull request solidusio#160 from kevinnio/patch-1
Remove empty country names from es-MX.yml
2 parents a72cd03 + 85d813d commit 251992e

2 files changed

Lines changed: 16 additions & 5 deletions

File tree

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,22 @@ 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+
You can translate country names by defining `spree.country_names` in your own locale files. For example, to have countries in Spanish do:
91+
92+
```yml
93+
es:
94+
spree:
95+
country_names:
96+
US: Estados Unidos de América
97+
UK: Reino Unido
98+
CA: Canadá
99+
# ...
100+
```
101+
102+
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.
103+
88104
Contributing
89105
------------
90106

config/locales/es-MX.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -753,11 +753,6 @@ es-MX:
753753
country: País
754754
country_based: País base
755755
country_name: Nombre
756-
country_names:
757-
CA:
758-
FRA:
759-
ITA:
760-
US:
761756
coupon: Cupón
762757
coupon_code: Código de cupón
763758
coupon_code_already_applied: El código del cupón ya ha sido aplicado en esta orden

0 commit comments

Comments
 (0)