-
Notifications
You must be signed in to change notification settings - Fork 0
Add translations to website #99
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
Merged
Changes from 4 commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
79a45fa
Add translations to website
k0d13 b567c70
Compile translations before building
k0d13 e87d404
Also extract messages before build
k0d13 75b7f23
Bump `@sayable/react` version
k0d13 1a31fa9
Replace method of passing search param to middleware with setting coo…
k0d13 98e29a5
Remove no longer needed type assertions
k0d13 4b0ade9
Remove redundant say usages
k0d13 de62bba
Minor code chores
k0d13 ed8ce01
Improve grammar in translation strings
k0d13 51d6850
Ensure webmanifest is spec-compliant
k0d13 5f077e4
Update extracted translation strings
k0d13 87cdce5
"I am stupid" Make href absolute instead of relative
k0d13 3d223fa
Translate missed strings
k0d13 e3976d8
Remove testing translations
k0d13 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
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 |
|---|---|---|
|
|
@@ -5,5 +5,6 @@ node_modules/ | |
| .ignore/ | ||
| dist/ | ||
| .next/ | ||
| .plasmo/ | ||
| .env*.local | ||
| messages.json | ||
| sitemap.xml | ||
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 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,12 @@ | ||
| import { defineConfig } from '@sayable/config'; | ||
|
|
||
| export default defineConfig({ | ||
| sourceLocale: 'en', | ||
| locales: ['en', 'fr'], | ||
| catalogues: [ | ||
| { | ||
| include: ['src/**/*.{ts,tsx}'], | ||
| output: 'src/locales/{locale}/messages.{extension}', | ||
| }, | ||
| ], | ||
| }); |
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,21 @@ | ||
| import type { IConfig } from 'next-sitemap'; | ||
| import sayable from './sayable.config.ts'; | ||
k0d13 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| export default { | ||
| siteUrl: process.env.NEXT_PUBLIC_WEBSITE_URL!, | ||
| generateIndexSitemap: false, | ||
|
|
||
| transform: (_: unknown, pathname: string) => { | ||
| if (!pathname.startsWith('/en/')) return undefined; | ||
| return { | ||
| loc: pathname.replace('/en/', '/'), | ||
| lastmod: new Date().toISOString(), | ||
| changefreq: 'weekly', | ||
| priority: 0.7, | ||
| alternateRefs: sayable.locales.map((locale) => ({ | ||
| href: `${process.env.NEXT_PUBLIC_WEBSITE_URL!}/${locale}${pathname.replace('/en/', '/')}`, | ||
| hreflang: locale, | ||
| })), | ||
| }; | ||
| }, | ||
| } satisfies IConfig; | ||
File renamed without changes.
13 changes: 9 additions & 4 deletions
13
...r)/playgrounds/[playground]/not-found.tsx → ...r)/playgrounds/[playground]/not-found.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
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
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.