-
-
Notifications
You must be signed in to change notification settings - Fork 0
✨ add translations to web app #367
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
+15,545
−6,076
Merged
Changes from all commits
Commits
Show all changes
64 commits
Select commit
Hold shift + click to select a range
cd9ad58
✨ add translations to web app
antoinekm 7296af9
📝 add translations conventions
antoinekm 9cc8ad4
🌐 improve web app translations
antoinekm a4d48ec
📝 update translation imports for server components in claude.md
antoinekm b01a8dd
➕ add @radix-ui/react-dropdown-menu
antoinekm c1f670b
🌐 add link usage over all the web app
antoinekm 3cb5f43
🌐 add home page translations
antoinekm fdd64c3
🌐 add npo page translations
antoinekm a47f780
🌐 add contact page translations
antoinekm dad8e5a
🌐 add legal pages translations
antoinekm a8d6a68
🌐 add careers pages translations
antoinekm 585dfc7
🌐 add projects pages translations
antoinekm 9418c88
🌐 fix capitalization of github in footer and localization files
antoinekm 72a6e91
✏️ fix project link in navbar
antoinekm 22ae53d
🌐 update canonical url generation to include locale prefix and set lo…
antoinekm 8654804
🌐 improve locale handling in metadata functions and add hreflang support
antoinekm 2e2d8ef
🔍 add project-team-schema and integrate team member data into project…
antoinekm adc533d
🩹 update project schema URL to use organization data constant
antoinekm 7edf72e
🩹 update project schema url to use routes constant
antoinekm c81a194
🌐 add locale preference in cookies when using non-default locale prefix
antoinekm b47d2e5
🌐 improve locale priority handling in get-preferred-locale function
antoinekm 946e776
🌐 improve pathname retrieval logic in get-pathname function
antoinekm 0e9265e
🌐 update pathname handling to use slice method for locale prefix removal
antoinekm f21adb6
♻️ refactor organization url handling to use site config for consiste…
antoinekm 06ddde5
🌐 fix typos in job details localization for improved clarity
antoinekm 62cd294
🌐 fix typos in french localization for careers and projects pages
antoinekm 4546bc9
🌐 update project metrics to include values for improved clarity and l…
antoinekm c6ba38e
🌐 update readme to clarify translation practices and avoid fallbacks …
antoinekm 2882992
♻️ refactor site configuration to a dedicated file and update imports…
antoinekm b18a682
🌐 add translation for agency page metadata and add localization files
antoinekm 4d7e50c
🌐 add translations for glossary page metadata in english and french
antoinekm 004c8e3
🌐 add translations for "not found" metadata in english and french
antoinekm 9700279
🌐 add english and french translations for agency portfolio metadata
antoinekm 2a08c89
🌐 add translation for customer tag in english and french localization…
antoinekm 64cc5c7
♻️ refactor hostname retrieval in project page component for improved…
antoinekm 8ea3072
🌐 add translations for project status in english and french localizat…
antoinekm 8233a0a
🌐 add translations support in metadata and og images
antoinekm f4986a9
📝 fix formatting in readme for translation files structure
antoinekm b8272be
🔧 update matcher regex in proxy configuration to exclude api routes
antoinekm e2f16bb
🔧 update proxy matcher regex to exclude api routes and file extensions
antoinekm 5b575b4
🎨 update metadata import paths to use server-specific module
antoinekm 3495653
🔒️ improve cookie security settings by adding http-only, secure, and …
antoinekm 482ec06
🎨 improve glossary components with translations and improve content s…
antoinekm 7796ea2
🌐 add translations for not-found metadata in agency pages
antoinekm 7bcfe2f
🌐 add translations for services page metadata in english and french
antoinekm b2c4e83
♻️ replace next/link by @onruntime/translations/next
antoinekm bcf8e8c
🎨 update h2 to p for description in featured customer
antoinekm cecb368
🌐 add translations for agency city hero section in english and french
antoinekm efaefbe
♻️ refactor local portfolio project props to use is-primary instead o…
antoinekm a15394f
♻️ refactor get-tag-label function to use switch statement for improv…
antoinekm ea43c5c
🌐 add agencies translations
antoinekm 5c72925
🎨 replace anchor tags with link component for improved navigation
antoinekm f023a0d
💄 update city-hero-section styles and add safelist for tailwind css c…
antoinekm 516bc47
♻️ refactor agency primary-stat structure to remove value property fo…
antoinekm 8685ac8
🌐 fix agency localization keys and update hero section structure
antoinekm 752b994
🌐 remove contact-info sections from agency localization files for cle…
antoinekm 42ce2fd
🌐 add services translations
antoinekm cad9e83
🌐 replace faq section with agency faq-section for improved agency-spe…
antoinekm 7719a39
🎨 add mobile project link component and update navbar structure for i…
antoinekm 9e79be7
✏️ fix french localization inconsistencies in service descriptions
antoinekm d39684c
♻️ refactor services page to directly use imported services and simpl…
antoinekm b932c8a
✨ add next-sitemap
antoinekm 94b0075
✨ add changesets
antoinekm f61b2da
🩹 update robots.txt to use dynamic sitemap url from site configuration
antoinekm File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| --- | ||
| "@onruntime/next-sitemap": minor | ||
| --- | ||
|
|
||
| Add new configuration options for sitemap generation: | ||
|
|
||
| - `exclude`: Filter out routes using glob patterns or a function | ||
| - `priority`: Automatic depth-based priority calculation (or custom function) | ||
| - `changeFreq`: Set change frequency per route | ||
| - `additionalSitemaps`: Include custom sitemaps in the sitemap index |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| { | ||
| "$schema": "https://unpkg.com/@changesets/config@3.1.2/schema.json", | ||
| "changelog": "@changesets/cli/changelog", | ||
| "commit": false, | ||
| "fixed": [], | ||
| "linked": [], | ||
| "access": "public", | ||
| "baseBranch": "master", | ||
| "updateInternalDependencies": "patch", | ||
| "ignore": ["@onruntime/web"] | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| import { constructMetadata } from "@/lib/utils/metadata.server"; | ||
| import { getTranslation } from "@/lib/translations.server"; | ||
| import CustomerLanding from "@/screens/marketing/landing/customer"; | ||
|
|
||
| export async function generateMetadata() { | ||
| const { t } = await getTranslation("app/landing/customer/page"); | ||
| return constructMetadata({ | ||
| title: t("metadata.title"), | ||
| description: t("metadata.description"), | ||
| }); | ||
| } | ||
|
|
||
| export default CustomerLanding; |
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| import { constructMetadata } from "@/lib/utils/metadata.server"; | ||
| import { getTranslation } from "@/lib/translations.server"; | ||
| import VisitorLanding from "@/screens/marketing/landing/visitor"; | ||
|
|
||
| export async function generateMetadata() { | ||
| const { t } = await getTranslation("app/landing/page"); | ||
| return constructMetadata({ | ||
| title: t("metadata.title"), | ||
| description: t("metadata.description"), | ||
| }); | ||
| } | ||
|
|
||
| export default VisitorLanding; |
16 changes: 11 additions & 5 deletions
16
apps/web/src/app/(legal)/company/page.tsx → ...src/app/[locale]/(legal)/company/page.tsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 12 additions & 6 deletions
18
apps/web/src/app/(legal)/privacy/page.tsx → ...src/app/[locale]/(legal)/privacy/page.tsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,22 +1,28 @@ | ||
| import LegalPage from "@/components/marketing/legal/page" | ||
| import { getPageContent } from "@/lib/mdx" | ||
| import { constructMetadata } from "@/lib/utils/metadata" | ||
| import { constructMetadata } from "@/lib/utils/metadata.server" | ||
| import type { Metadata } from "next" | ||
|
|
||
| const contentPath = "legal/privacy" | ||
|
|
||
| export async function generateMetadata(): Promise<Metadata> { | ||
| const { frontmatter } = await getPageContent(contentPath) | ||
| type PageProps = { | ||
| params: Promise<{ locale: string }> | ||
| } | ||
|
|
||
| export async function generateMetadata({ params }: PageProps): Promise<Metadata> { | ||
| const { locale } = await params | ||
| const { frontmatter } = await getPageContent(contentPath, locale) | ||
| return constructMetadata({ | ||
| title: `${frontmatter.title}`, | ||
| description: frontmatter.description, | ||
| }) | ||
| } | ||
|
|
||
| const PrivacyPage = async () => { | ||
| const { frontmatter, content } = await getPageContent(contentPath) | ||
| const PrivacyPage = async ({ params }: PageProps) => { | ||
| const { locale } = await params | ||
| const { frontmatter, content } = await getPageContent(contentPath, locale) | ||
|
|
||
| return <LegalPage title={frontmatter.title} description={frontmatter.description} content={content} lastUpdated={frontmatter.lastUpdated} /> | ||
| } | ||
|
|
||
| export default PrivacyPage | ||
| export default PrivacyPage |
18 changes: 12 additions & 6 deletions
18
apps/web/src/app/(legal)/terms/page.tsx → ...b/src/app/[locale]/(legal)/terms/page.tsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,22 +1,28 @@ | ||
| import LegalPage from "@/components/marketing/legal/page" | ||
| import { getPageContent } from "@/lib/mdx" | ||
| import { constructMetadata } from "@/lib/utils/metadata" | ||
| import { constructMetadata } from "@/lib/utils/metadata.server" | ||
| import type { Metadata } from "next" | ||
|
|
||
| const contentPath = "legal/terms" | ||
|
|
||
| export async function generateMetadata(): Promise<Metadata> { | ||
| const { frontmatter } = await getPageContent(contentPath) | ||
| type PageProps = { | ||
| params: Promise<{ locale: string }> | ||
| } | ||
|
|
||
| export async function generateMetadata({ params }: PageProps): Promise<Metadata> { | ||
| const { locale } = await params | ||
| const { frontmatter } = await getPageContent(contentPath, locale) | ||
| return constructMetadata({ | ||
| title: `${frontmatter.title}`, | ||
| description: frontmatter.description, | ||
| }) | ||
| } | ||
|
|
||
| const TermsPage = async () => { | ||
| const { frontmatter, content } = await getPageContent(contentPath) | ||
| const TermsPage = async ({ params }: PageProps) => { | ||
| const { locale } = await params | ||
| const { frontmatter, content } = await getPageContent(contentPath, locale) | ||
|
|
||
| return <LegalPage title={frontmatter.title} description={frontmatter.description} content={content} lastUpdated={frontmatter.lastUpdated} /> | ||
| } | ||
|
|
||
| export default TermsPage | ||
| export default TermsPage |
File renamed without changes.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.