Skip to content

Commit

Permalink
Fix temp engl translation
Browse files Browse the repository at this point in the history
  • Loading branch information
acouch committed Feb 28, 2024
1 parent 9addbcc commit 7d41ab7
Show file tree
Hide file tree
Showing 7 changed files with 40 additions and 90 deletions.
1 change: 1 addition & 0 deletions frontend/next-env.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/// <reference types="next" />
/// <reference types="next/image-types/global" />
/// <reference types="next/navigation-types/compat/navigation" />

// NOTE: This file should not be edited
// see https://nextjs.org/docs/basic-features/typescript for more information.
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
"use client";
import type { GetStaticProps, NextPage } from "next";

import { getTranslations } from "next-intl/server";
import type { GetStaticProps, NextPage, Metadata } from "next";
import { useFeatureFlags } from "src/hooks/useFeatureFlags";

import { serverSideTranslations } from "next-i18next/serverSideTranslations";
Expand All @@ -23,6 +25,10 @@ interface SearchProps {
initialOpportunities: Opportunity[];
}

interface RouteParams {
locale: string;
}

const Search: NextPage<SearchProps> = ({ initialOpportunities = [] }) => {
const { featureFlagsManager, mounted } = useFeatureFlags();
const [searchResults, setSearchResults] =
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/components/AppFooter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,13 +96,13 @@ const Footer = () => {
>
<SocialLinks links={links} />
<h2 className="usa-footer__contact-heading">
{"agency_contact_center"}
{"Grants.gov Program Management Office"}
</h2>
<Address
size="medium"
items={[
<a key="telephone" href={`tel:${"telephone"}`}>
{"telephone"}
{"1-877-696-6775"}
</a>,
<a key="email" href={`mailto:${ExternalRoutes.EMAIL_SUPPORT}`}>
{ExternalRoutes.EMAIL_SUPPORT}
Expand Down
15 changes: 8 additions & 7 deletions frontend/src/components/AppGrantsIdentifier.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,31 +28,31 @@ const GrantsIdentifier = () => {
const IdentifierLinkList = [
{
href: ExternalRoutes.ABOUT_HHS,
text: "link_about",
text: "About HHS",
},
{
href: ExternalRoutes.ACCESSIBILITY_COMPLIANCE,
text: "link_accessibility",
text: "Accessibility support",
},
{
href: ExternalRoutes.FOIA,
text: "link_foia",
text: "FOIA requests",
},
{
href: ExternalRoutes.NO_FEAR,
text: "link_fear",
text: "EEO/No Fear Act",
},
{
href: ExternalRoutes.INSPECTOR_GENERAL,
text: "link_ig",
text: "Office of the Inspector General",
},
{
href: ExternalRoutes.PERFORMANCE_REPORTS,
text: "link_performance",
text: "Performance reports",
},
{
href: ExternalRoutes.PRIVACY_POLICY,
text: "link_privacy",
text: "Privacy Policy",
},
].map(({ text, href }) => (
<IdentifierLinkItem key={text}>
Expand All @@ -69,6 +69,7 @@ const GrantsIdentifier = () => {
<IdentifierLogo href="#">{logoImage}</IdentifierLogo>
</IdentifierLogos>
<IdentifierIdentity domain="HHS.gov">
An official website of the U.S. Department of Health and Human Services
</IdentifierIdentity>
</IdentifierMasthead>
<IdentifierLinks navProps={{ "aria-label": "Important links" }}>
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/AppHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ const Header = ({ logoPath }: Props) => {
/>
</span>
)}
<span className="font-sans-lg flex-fill">{"title"}</span>
<span className="font-sans-lg flex-fill">{"Simpler.Grants.gov"}</span>
</div>
</Title>
<NavMenuButton
Expand Down
75 changes: 0 additions & 75 deletions frontend/src/pages/search.tsx

This file was deleted.

25 changes: 21 additions & 4 deletions frontend/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@
"compilerOptions": {
"baseUrl": ".",
"target": "es6",
"lib": ["dom", "dom.iterable", "esnext"],
"lib": [
"dom",
"dom.iterable",
"esnext"
],
"skipLibCheck": true,
"strict": true,
"forceConsistentCasingInFileNames": true,
Expand All @@ -24,8 +28,21 @@
"@next/third-parties/google": [
"./node_modules/@next/third-parties/dist/google"
]
}
},
"plugins": [
{
"name": "next"
}
]
},
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", "__mocks__/styleMock.js"],
"exclude": ["node_modules"]
"include": [
"next-env.d.ts",
"**/*.ts",
"**/*.tsx",
"__mocks__/styleMock.js",
".next/types/**/*.ts"
],
"exclude": [
"node_modules"
]
}

0 comments on commit 7d41ab7

Please sign in to comment.