From b3d7edb2d16d242d298714f58d89a0148c4cc05b Mon Sep 17 00:00:00 2001 From: Christopher Hui Date: Tue, 24 Sep 2019 14:55:43 -0700 Subject: [PATCH] remove old i18n --- src/components/Form/Accordion/Accordion.jsx | 2 +- src/components/Form/Branch/Branch.jsx | 2 +- src/components/Form/Comments/Comments.jsx | 2 +- src/components/Form/Consent/Consent.jsx | 4 +- src/components/Form/Country/Country.jsx | 6 +- .../Form/Country}/countries.js | 4 +- src/components/Form/Currency/Currency.jsx | 2 +- .../Form/DateControl/DateControl.jsx | 1 - src/components/Form/EyeColor/EyeColor.jsx | 2 +- src/components/Form/Field/Field.jsx | 15 +- .../ForeignBornDocuments.jsx | 2 +- src/components/Form/HairColor/HairColor.jsx | 2 +- src/components/Form/Height/Height.jsx | 2 +- .../Form/Introduction/Introduction.jsx | 2 +- .../__snapshots__/Introduction.test.jsx.snap | 240 +----- src/components/Form/Location/Address.jsx | 2 +- .../Form/Location/AlternateAddress.jsx | 2 +- src/components/Form/Location/Location.jsx | 3 +- .../Form/Location/ToggleableLocation.jsx | 3 +- src/components/Form/Name/Name.jsx | 2 +- src/components/Form/Name/Name.test.jsx | 2 +- .../Form/NotApplicable/NotApplicable.jsx | 2 +- src/components/Form/SSN/SSN.jsx | 2 +- src/components/Form/Sex/Sex.jsx | 2 +- src/components/Form/Spinner/Spinner.jsx | 2 +- src/components/Form/Street/Street.jsx | 2 +- src/components/Form/Telephone/Telephone.jsx | 2 +- .../Form/TimeoutWarning/TimeoutWarning.jsx | 2 +- src/components/Form/Weight/Weight.jsx | 2 +- src/components/KickbackBanner/index.jsx | 2 +- .../Main/__snapshots__/App.test.jsx.snap | 774 +++--------------- src/components/Navigation/Logout.jsx | 3 +- .../SavedIndicator/SavedIndicator.test.jsx | 2 +- .../SavedIndicator/persistence-helpers.js | 2 +- .../Section/Citizenship/Citizenship.jsx | 2 +- .../Citizenship/Multiple/CitizenshipItem.jsx | 2 +- .../Section/Citizenship/Multiple/Multiple.jsx | 2 +- .../Citizenship/Multiple/Passports.jsx | 2 +- .../Citizenship/Multiple/TravelItem.jsx | 2 +- .../Section/Citizenship/Status/Status.jsx | 2 +- .../Section/Citizenship/UsPassport/index.jsx | 2 +- .../Financial/Bankruptcy/Bankruptcies.jsx | 2 +- .../Financial/Bankruptcy/Bankruptcy.jsx | 2 +- .../Section/Financial/Card/Card.jsx | 2 +- .../Section/Financial/Card/CardItem.jsx | 2 +- .../Section/Financial/Credit/Credit.jsx | 2 +- .../Section/Financial/Credit/CreditItem.jsx | 2 +- .../Section/Financial/Financial.jsx | 2 +- .../Financial/Gambling/GamblingItem.jsx | 2 +- .../Financial/Nonpayment/Infractions.jsx | 2 +- .../Financial/Nonpayment/Nonpayment.jsx | 2 +- .../Financial/Nonpayment/NonpaymentItem.jsx | 2 +- .../Section/Financial/Taxes/FailureType.jsx | 2 +- .../Section/Financial/Taxes/TaxesItem.jsx | 2 +- .../Activities/BenefitActivity/Benefit.jsx | 2 +- .../BenefitActivity/BenefitActivity.jsx | 2 +- .../BenefitActivity/ContinuingBenefit.jsx | 2 +- .../BenefitActivity/FutureBenefit.jsx | 2 +- .../BenefitActivity/OneTimeBenefit.jsx | 2 +- .../BenefitActivity/OtherBenefit.jsx | 2 +- .../Section/Foreign/Activities/CoOwner.jsx | 2 +- .../Section/Foreign/Activities/CoOwners.jsx | 2 +- .../DirectActivity/DirectActivity.jsx | 2 +- .../DirectActivity/DirectInterest.jsx | 2 +- .../IndirectActivity/IndirectActivity.jsx | 2 +- .../IndirectActivity/IndirectInterest.jsx | 2 +- .../RealEstateActivity/RealEstateActivity.jsx | 2 +- .../RealEstateActivity/RealEstateInterest.jsx | 2 +- .../Section/Foreign/Activities/Support.jsx | 2 +- .../Foreign/Activities/SupportItem.jsx | 2 +- .../Section/Foreign/Business/Advice.jsx | 2 +- .../Section/Foreign/Business/AdviceItem.jsx | 2 +- .../Foreign/Business/ConferenceContacts.jsx | 2 +- .../Section/Foreign/Business/Conferences.jsx | 2 +- .../Foreign/Business/ConferencesItem.jsx | 2 +- .../Section/Foreign/Business/Contact.jsx | 2 +- .../Section/Foreign/Business/ContactItem.jsx | 2 +- .../Section/Foreign/Business/Employment.jsx | 2 +- .../Section/Foreign/Business/Family.jsx | 2 +- .../Section/Foreign/Business/FamilyItem.jsx | 2 +- .../Section/Foreign/Business/JobOffer.jsx | 2 +- .../Section/Foreign/Business/Political.jsx | 2 +- .../Foreign/Business/PoliticalItem.jsx | 2 +- .../Section/Foreign/Business/Sponsorship.jsx | 2 +- .../Foreign/Business/Sponsorship.test.jsx | 2 +- .../Foreign/Business/SponsorshipItem.jsx | 2 +- .../Foreign/Business/SubsequentContacts.jsx | 2 +- .../Section/Foreign/Business/Ventures.jsx | 2 +- .../Section/Foreign/Business/VenturesItem.jsx | 2 +- .../Section/Foreign/Business/Voting.jsx | 2 +- .../Section/Foreign/Business/VotingItem.jsx | 2 +- .../Section/Foreign/Contacts/Contacts.jsx | 2 +- .../Foreign/Contacts/Contacts.test.jsx | 2 +- .../Foreign/Contacts/ForeignNational.jsx | 2 +- src/components/Section/Foreign/Foreign.jsx | 2 +- .../Section/Foreign/Travel/Travel.jsx | 2 +- .../Section/Foreign/Travel/TravelDays.jsx | 2 +- .../Section/Foreign/Travel/TravelPurpose.jsx | 2 +- .../Foreign/Travel/TravelQuestions.jsx | 2 +- .../Section/History/Education/Diploma.jsx | 2 +- .../History/Employment/AdditionalActivity.jsx | 2 +- .../History/Employment/EmploymentActivity.jsx | 2 +- .../History/Employment/EmploymentStatus.jsx | 2 +- .../Employment/EmploymentSummaryProgress.jsx | 2 +- .../History/Employment/PhysicalAddress.jsx | 2 +- .../History/Employment/ReasonLeft.test.jsx | 2 +- .../History/Employment/ReasonOptions.jsx | 2 +- .../History/Employment/ReprimandItem.jsx | 2 +- .../Section/History/Employment/Supervisor.jsx | 2 +- .../Section/History/Federal/FederalItem.jsx | 2 +- .../Residence/ResidenceSummaryProgress.jsx | 2 +- src/components/Section/History/Review.jsx | 2 +- .../History/SummaryCounter/SummaryCounter.jsx | 2 +- src/components/Section/History/summaries.jsx | 2 +- .../ApplicantBirthDate/ApplicantBirthDate.jsx | 6 +- .../ApplicantBirthPlace.jsx | 2 +- .../ApplicantName/ApplicantName.jsx | 2 +- .../ApplicantSSN/ApplicantSSN.jsx | 2 +- .../ContactInformation/ContactInformation.jsx | 2 +- .../Section/Identification/Identification.jsx | 2 +- .../OtherNames/OtherNameItem.jsx | 2 +- .../Identification/OtherNames/OtherNames.jsx | 2 +- .../Identification/Physical/Physical.jsx | 2 +- .../Associations/ActivitiesToOverthrow.jsx | 2 +- .../ActivitiesToOverthrowItem.jsx | 2 +- .../Section/Legal/Associations/Advocating.jsx | 2 +- .../Legal/Associations/AdvocatingItem.jsx | 2 +- .../Legal/Associations/EngagedInTerrorism.jsx | 2 +- .../Associations/EngagedInTerrorismItem.jsx | 2 +- .../Associations/MembershipOverthrow.jsx | 2 +- .../Associations/MembershipOverthrowItem.jsx | 2 +- .../Legal/Associations/MembershipViolence.jsx | 2 +- .../Associations/MembershipViolenceItem.jsx | 2 +- .../Associations/TerrorismAssociation.jsx | 2 +- .../TerroristOrganizationItem.jsx | 2 +- .../Legal/Investigations/ClearanceLevel.jsx | 2 +- .../Legal/Investigations/DebarredItem.jsx | 2 +- .../Section/Legal/Investigations/History.jsx | 2 +- .../Investigations/InvestigatingAgency.jsx | 2 +- .../Legal/Investigations/RevokedItem.jsx | 2 +- src/components/Section/Legal/Legal.jsx | 2 +- .../Section/Legal/NonCriminalCourtAction.jsx | 2 +- .../Section/Legal/Police/DomesticViolence.jsx | 2 +- .../Legal/Police/DomesticViolenceList.jsx | 2 +- src/components/Section/Legal/Police/Intro.jsx | 2 +- .../Section/Legal/Police/OtherOffense.jsx | 2 +- .../Section/Legal/Police/OtherOffenses.jsx | 2 +- .../Section/Legal/Technology/Manipulating.jsx | 2 +- .../Legal/Technology/ManipulatingItem.jsx | 2 +- .../Section/Legal/Technology/Unauthorized.jsx | 2 +- .../Legal/Technology/UnauthorizedItem.jsx | 2 +- .../Section/Legal/Technology/Unlawful.jsx | 2 +- .../Section/Legal/Technology/UnlawfulItem.jsx | 2 +- .../Military/Disciplinary/Procedure.jsx | 2 +- .../Section/Military/Foreign/Foreign.jsx | 2 +- .../Military/Foreign/ForeignContact.jsx | 2 +- .../Military/Foreign/ForeignService.jsx | 2 +- .../Section/Military/History/History.jsx | 2 +- .../Military/History/MilitaryService.jsx | 2 +- src/components/Section/Military/Military.jsx | 2 +- .../Section/Military/Selective/Selective.jsx | 2 +- .../Section/Package/AdditionalComments.jsx | 2 +- .../Section/Package/Attachments.jsx | 3 +- src/components/Section/Package/Credit.jsx | 2 +- src/components/Section/Package/General.jsx | 2 +- src/components/Section/Package/Medical.jsx | 2 +- src/components/Section/Package/Signature.jsx | 2 +- src/components/Section/Package/Verify.jsx | 2 +- .../Section/Psychological/AppealItem.jsx | 2 +- .../Psychological/Diagnoses/Diagnosis.jsx | 2 +- .../Section/Psychological/Order.jsx | 2 +- .../Section/Psychological/Psychological.jsx | 2 +- .../Section/Psychological/Treatment.jsx | 2 +- .../RelationshipStatus/CivilUnion.jsx | 2 +- .../RelationshipStatus/Divorce.jsx | 2 +- .../RelationshipStatus/OtherName.jsx | 2 +- .../Section/Relationships/Relatives/Alias.jsx | 2 +- .../Relationships/Relatives/Relative.jsx | 2 +- .../SubstanceUse/Alcohol/NegativeImpact.jsx | 2 +- .../SubstanceUse/Alcohol/NegativeImpacts.jsx | 2 +- .../Alcohol/OrderedCounseling.jsx | 2 +- .../Alcohol/ReceivedCounseling.jsx | 2 +- .../Alcohol/ReceivedCounselings.jsx | 2 +- .../Alcohol/VoluntaryCounseling.jsx | 2 +- .../SubstanceUse/Drugs/DrugClearanceUse.jsx | 2 +- .../SubstanceUse/Drugs/DrugClearanceUses.jsx | 2 +- .../Drugs/DrugPublicSafetyUse.jsx | 2 +- .../Section/SubstanceUse/Drugs/DrugType.jsx | 2 +- .../SubstanceUse/Drugs/OrderedTreatment.jsx | 2 +- .../SubstanceUse/Drugs/VoluntaryTreatment.jsx | 2 +- .../Section/SubstanceUse/SubstanceUse.jsx | 2 +- .../__snapshots__/Section.test.jsx.snap | 16 - src/components/Summary/DateSummary.js | 2 +- src/config/__mocks__/index.js | 2 +- src/config/formSections/citizenship.js | 2 +- src/config/formSections/financial.js | 2 +- src/config/formSections/foreign.js | 2 +- src/config/formSections/history.js | 2 +- src/config/formSections/identification.js | 2 +- src/config/formSections/legal.js | 2 +- src/config/formSections/military.js | 2 +- src/config/formSections/psychological.js | 2 +- src/config/formSections/relationships.js | 2 +- src/config/formSections/substanceUse.js | 2 +- src/config/index.js | 3 - src/config/locales/en/error.js | 22 + src/config/locales/en/index.js | 4 +- src/config/locales/en/name.js | 2 +- src/config/locales/index.js | 2 - src/views/AccessDenied/AccessDenied.jsx | 2 +- src/views/AccessDenied/AccessDenied.test.jsx | 2 +- src/views/Error/Error.jsx | 2 +- src/views/Error/Error.test.jsx | 2 +- src/views/Locked/Locked.jsx | 2 +- src/views/Locked/Locked.test.jsx | 2 +- 215 files changed, 408 insertions(+), 1097 deletions(-) rename src/{config/locales/en => components/Form/Country}/countries.js (99%) delete mode 100644 src/config/locales/index.js diff --git a/src/components/Form/Accordion/Accordion.jsx b/src/components/Form/Accordion/Accordion.jsx index 060c01bc2..488254c7b 100644 --- a/src/components/Form/Accordion/Accordion.jsx +++ b/src/components/Form/Accordion/Accordion.jsx @@ -1,7 +1,7 @@ import React from 'react' import PropTypes from 'prop-types' -import { i18n } from 'config' +import i18n from 'util/i18n' import ValidationElement from 'components/Form/ValidationElement' import Branch from 'components/Form/Branch' import Show from 'components/Form/Show' diff --git a/src/components/Form/Branch/Branch.jsx b/src/components/Form/Branch/Branch.jsx index 593a6cb9c..624b29fb9 100644 --- a/src/components/Form/Branch/Branch.jsx +++ b/src/components/Form/Branch/Branch.jsx @@ -2,7 +2,7 @@ import React from 'react' import PropTypes from 'prop-types' import classnames from 'classnames' -import { i18n } from 'config' +import i18n from 'util/i18n' import Field from 'components/Form/Field' import Radio from 'components/Form/Radio' import RadioGroup from 'components/Form/RadioGroup' diff --git a/src/components/Form/Comments/Comments.jsx b/src/components/Form/Comments/Comments.jsx index 5931305b3..4f9b01dce 100644 --- a/src/components/Form/Comments/Comments.jsx +++ b/src/components/Form/Comments/Comments.jsx @@ -1,5 +1,5 @@ import React from 'react' -import { i18n } from '../../../config' +import i18n from 'util/i18n' import Textarea from '../Textarea' import ValidationElement from '../ValidationElement' diff --git a/src/components/Form/Consent/Consent.jsx b/src/components/Form/Consent/Consent.jsx index 04e946d51..8563585f5 100644 --- a/src/components/Form/Consent/Consent.jsx +++ b/src/components/Form/Consent/Consent.jsx @@ -1,6 +1,6 @@ import React from 'react' import { connect } from 'react-redux' -import { i18n } from 'config' +import i18n from 'util/i18n' import { updateApplication } from 'actions/ApplicationActions' import Modal from 'components/Form/Modal' @@ -31,7 +31,7 @@ export class Consent extends React.Component { show={this.props.settings.consented !== 'Yes'} className="consent-content">
-
{i18n.m2('consent.contents')}
+
{i18n.m('consent.contents')}