Localization seed files for OFN ES installation.
states.yml --> Provincias
---
- name: A Coruña (La Coruña)
country_id: '188'
id: '101'
abbr: C
- name: Araba (Álaba)
country_id: '188'
id: '102'
abbr: VI
countries.yml --> Only need ES
---
countries_188:
id: '188'
name: Spain
iso3: ESP
iso: ES
iso_name: SPAIN
numcode: '724'
When you run playbooks/provisioning.yml
playbook the app
role run two tasks related with this repository:
Copy seeds.rb
file in {{ app_path }}/shared/config
. This file loads states.yml
and creates a record in the db with name
, abbr and country fields.
You need to specify where is l10n repo located in your inventory/group_vars
file. In our case is inventory/group_vars/es.yml
. With the key l10n_repo
like here.
The task clone l10n repo in {{ l10n_path }}
.
When you run playbook/deploy.yml
playbook the deploy
role run two tasks:
Create a symbolic link in {{ build_path }}/db/default/spree/states.yml
from {{ l10n_path }}/states.yml
.
Run the rake db:seed