Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
4 changes: 3 additions & 1 deletion _data/en/settings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ contact_page:
'FDIC Resolution Request Management Portal': FDIC Resolution Request Management Portal
'FEMA Disaster Assistance': FEMA Disaster Assistance
'General Services Administration': General Services Administration
'Get .gov': Get.gov
'Get.gov': Get.gov
'GSA Sam.gov': GSA SAM.gov
'Health and Human Services': Health and Human Services
'HHS Grants.gov': HHS Grants.gov
Expand All @@ -74,6 +74,7 @@ contact_page:
'National Credit Union Administration (NCUA)': National Credit Union Administration (NCUA)
'National Endowment for the Humanities (NEH)': National Endowment for the Humanities (NEH)
'National Labor Relations Board': National Labor Relations Board
'National Transportation Safety Board (NTSB)': National Transportation Safety Board (NTSB)
'Office of Personnel Management': Office of Personnel Management (OPM)
'OPM Employee Express': OPM Employee Express
'OPM Services Online': 'OPM Services Online'
Expand All @@ -85,6 +86,7 @@ contact_page:
'Securities and Exchange Commission': Securities and Exchange Commission
'Social Security Administration (SSA)': Social Security Administration (SSA)
'State of Arkansas': State of Arkansas
'State of California': State of California
'State of Colorado': State of Colorado
'Trusted Traveler Programs (Global Entry/Nexus/Sentri)': Trusted Traveler Programs (Global Entry/Nexus/Sentri)
'U.S. Agency for International Development': U.S. Agency for International Development
Expand Down
4 changes: 3 additions & 1 deletion _data/es/settings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ contact_page:
Depósitos (FDIC)
'FEMA Disaster Assistance': Asistencia de FEMA en caso de catástrofe
'General Services Administration': Administración de Servicios Generales
'Get .gov': Get.gov
'Get.gov': Get.gov
'GSA Sam.gov': GSA SAM.gov
'Health and Human Services': Departamento de Salud y Servicios Humanos
'HHS Grants.gov': Grants.gov del HHS
Expand All @@ -81,6 +81,7 @@ contact_page:
'National Credit Union Administration (NCUA)': Administración Nacional de Cooperativas de Crédito (NCUA)
'National Endowment for the Humanities (NEH)': Fondo Nacional para las Humanidades (NEH, siglas en inglés)
'National Labor Relations Board': Junta Nacional de Relaciones Laborales
'National Transportation Safety Board (NTSB)': Junta Nacional de Seguridad en el Transporte (NTSB)
'Office of Personnel Management': Oficina de Administración de Personal (OPM)
'OPM Employee Express': OPM Empleado Express
'OPM Services Online': 'Servicios en línea de OPM'
Expand All @@ -92,6 +93,7 @@ contact_page:
'Securities and Exchange Commission': Comisión de Bolsa y Valores
'Social Security Administration (SSA)': Administración del Seguro Social (SSA, por su siglas en inglés)
'State of Arkansas': Estado de Arkansas
'State of California': Estado de California
'State of Colorado': Estado de Colorado
'Trusted Traveler Programs (Global Entry/Nexus/Sentri)': Programas de Viajero de Confianza (Global Entry/Nexus/Sentri)
'U.S. Agency for International Development': Agencia de los Estados Unidos para el Desarrollo Internacional
Expand Down
4 changes: 3 additions & 1 deletion _data/fr/settings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ contact_page:
'FDIC Resolution Request Management Portal': FDIC demande un portail de gestion des résolutions
'FEMA Disaster Assistance': Assistance FEMA en cas de catastrophe
'General Services Administration': Administration des services généraux
'Get .gov': Get.gov
'Get.gov': Get.gov
'GSA Sam.gov': GSA SAM.gov
'Health and Human Services': Santé et services sociaux
'HHS Grants.gov': HHS Grants.gov
Expand All @@ -76,6 +76,7 @@ contact_page:
'National Credit Union Administration (NCUA)': Administration nationale des coopératives de crédit (NCUA)
'National Endowment for the Humanities (NEH)': Fondation nationale pour les sciences humaines (NEH)
'National Labor Relations Board': Commission nationale des relations de travail
'National Transportation Safety Board (NTSB)': Conseil national de sécurité des transports (NTSB)
'Office of Personnel Management': Bureau de la gestion du personnel (OPM)
'OPM Employee Express': OPM Employé Express
'OPM Services Online': 'Services OPM en ligne'
Expand All @@ -87,6 +88,7 @@ contact_page:
'Securities and Exchange Commission': Commission des valeurs mobilières des États-Unis
'Social Security Administration (SSA)': Administration de la sécurité sociale (SSA)
'State of Arkansas': État de l’Arkansas
'State of California': État de Californie
'State of Colorado': État de Colorado
'Trusted Traveler Programs (Global Entry/Nexus/Sentri)': Programmes pour voyageurs de confiance (Global Entry/Nexus/Sentri)
'U.S. Agency for International Development': Agence américaine pour le développement international
Expand Down
5 changes: 5 additions & 0 deletions _data/language_map.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
languages:
en: 'English'
es: 'Spanish'
fr: 'French'
zh: 'Chinese'
4 changes: 3 additions & 1 deletion _data/zh/settings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ contact_page:
'FDIC Resolution Request Management Portal': FDIC Resolution Request Management Portal
'FEMA Disaster Assistance': FEMA Disaster Assistance
'General Services Administration': General Services Administration
'Get .gov': Get.gov
'Get.gov': Get.gov
'GSA Sam.gov': GSA SAM.gov
'Health and Human Services': Health and Human Services
'HHS Grants.gov': HHS Grants.gov
Expand All @@ -74,6 +74,7 @@ contact_page:
'National Credit Union Administration (NCUA)': National Credit Union Administration (NCUA)
'National Endowment for the Humanities (NEH)': National Endowment for the Humanities (NEH)
'National Labor Relations Board': National Labor Relations Board
'National Transportation Safety Board (NTSB)': National Transportation Safety Board (NTSB)
'Office of Personnel Management': Office of Personnel Management (OPM)
'OPM Employee Express': OPM Employee Express
'OPM Services Online': 'OPM Services Online'
Expand All @@ -85,6 +86,7 @@ contact_page:
'Securities and Exchange Commission': Securities and Exchange Commission
'Social Security Administration (SSA)': Social Security Administration (SSA)
'State of Arkansas': State of Arkansas
'State of California': State of California
'State of Colorado': State of Colorado
'Trusted Traveler Programs (Global Entry/Nexus/Sentri)': Trusted Traveler Programs (Global Entry/Nexus/Sentri)
'U.S. Agency for International Development': U.S. Agency for International Development
Expand Down
1 change: 1 addition & 0 deletions _includes/contact_form.html
Original file line number Diff line number Diff line change
Expand Up @@ -407,6 +407,7 @@ <h3>{{ site.data.[page.lang].settings.contact_page.support_request_form.title }}
onSubmit="return remapvalues(this); return true;"
class="usa-form"
>
<input type="hidden" name="00NU0000004z90b" id="00NU0000004z90b" value="{{ site.data.language_map.languages[page.lang] | default: 'English' }}" />
<input type="hidden" name="retURL" value="https://login.gov{{ '/' | locale_url }}" />
<input type="hidden" name="orgid" value="{{ site.contact_form_orgid }}" />
<input type="hidden" name="status" id="status" value="New" />
Expand Down
14 changes: 14 additions & 0 deletions spec/data_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'yaml'
require 'spec_helper'

Expand All @@ -16,6 +18,18 @@
end
end

describe 'language_map.yml' do
it 'contains language shortcodes and names' do
path = '_data/language_map.yml'
language_map = YAML.load_file(path)

expect(language_map['languages']['en']).to eq('English')
expect(language_map['languages']['es']).to eq('Spanish')
expect(language_map['languages']['fr']).to eq('French')
expect(language_map['languages']['zh']).to eq('Chinese')
end
end

def hash_keys(hash, parent_keys: [], all_keys: [])
hash.each do |key, value|
if value.is_a?(Hash)
Expand Down