-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of github.com:opral/monorepo
- Loading branch information
Showing
27 changed files
with
14,867 additions
and
17,813 deletions.
There are no files selected for viewing
This file contains 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,19 @@ | ||
--- | ||
"@inlang/paraglide-next": minor | ||
--- | ||
|
||
[Typed routes](https://nextjs.org/docs/app/api-reference/next-config-js/typedRoutes) are now supported. This adds typesafety to functions that expect an internal link. | ||
|
||
- `<Link>`s now have typesafe `href` attributes | ||
- `useRouter` now has has typesafe path arguments | ||
|
||
```ts | ||
import { paraglide } from "@inlang/paraglide-next/plugin" | ||
|
||
export default paraglide({ | ||
experimental: { | ||
typedRoutes: true, // enable this | ||
}, | ||
paraglide: { ... }, | ||
}) | ||
``` |
This file contains 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,6 @@ | ||
--- | ||
"@inlang/paraglide-unplugin": patch | ||
"@inlang/paraglide-js": patch | ||
--- | ||
|
||
fix internal issues |
This file contains 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
19 changes: 10 additions & 9 deletions
19
inlang/source-code/paraglide/paraglide-astro/example/messages/de.json
This file contains 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,10 +1,11 @@ | ||
{ | ||
"site_title": "Paraglide + Astro Beispiel", | ||
"site_description": "Ein Beispiel für die Verwendung von Paraglide und Astro", | ||
"follow_us_on": "Folge uns auf {site}", | ||
"view_on": "Siehe auf {site}", | ||
"all_rights_reserved": "Alle Rechte vorbehalten", | ||
"count": "Der Zählerstand ist: {count}", | ||
"english": "Englisch", | ||
"german": "Deutsch" | ||
} | ||
"site_title": "Paraglide + Astro Beispiel", | ||
"site_description": "Ein Beispiel für die Verwendung von Paraglide und Astro", | ||
"follow_us_on": "Folge uns auf {site}", | ||
"view_on": "Siehe auf {site}", | ||
"all_rights_reserved": "Alle Rechte vorbehalten", | ||
"count": "Der Zählerstand ist: {count}", | ||
"english": "Englisch", | ||
"german": "Deutsch", | ||
"page_not_found": "Seite nicht gefunden" | ||
} |
19 changes: 10 additions & 9 deletions
19
inlang/source-code/paraglide/paraglide-astro/example/messages/en.json
This file contains 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,10 +1,11 @@ | ||
{ | ||
"site_title": "Paraglide + Astro Example", | ||
"site_description": "A simple example of using Paraglide with Astro", | ||
"follow_us_on": "Follow us on {site}", | ||
"view_on": "View on {site}", | ||
"all_rights_reserved": "All rights reserved", | ||
"count": "The current count is {count}", | ||
"english": "English", | ||
"german": "German" | ||
} | ||
"site_title": "Paraglide + Astro Example", | ||
"site_description": "A simple example of using Paraglide with Astro", | ||
"follow_us_on": "Follow us on {site}", | ||
"view_on": "View on {site}", | ||
"all_rights_reserved": "All rights reserved", | ||
"count": "The current count is {count}", | ||
"english": "English", | ||
"german": "German", | ||
"page_not_found": "Page not found" | ||
} |
8 changes: 8 additions & 0 deletions
8
inlang/source-code/paraglide/paraglide-astro/example/src/pages/404.astro
This file contains 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,8 @@ | ||
--- | ||
import HTML from '../layouts/HTML.astro'; | ||
import * as m from "$paraglide/messages"; | ||
--- | ||
|
||
<HTML> | ||
<h1>{m.page_not_found()}</h1> | ||
</HTML> |
This file contains 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 |
---|---|---|
|
@@ -44,5 +44,8 @@ | |
"seo", | ||
"accessibility", | ||
"withastro" | ||
] | ||
], | ||
"devDependencies": { | ||
"typescript": "^5.5.4" | ||
} | ||
} |
This file contains 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 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 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 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 |
---|---|---|
|
@@ -8,4 +8,7 @@ export default paraglide({ | |
|
||
basePath: "/base", | ||
output: "standalone", | ||
experimental: { | ||
typedRoutes: true, | ||
}, | ||
}) |
2 changes: 2 additions & 0 deletions
2
inlang/source-code/paraglide/paraglide-next/examples/app/src/app/page.tsx
This file contains 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
3 changes: 2 additions & 1 deletion
3
inlang/source-code/paraglide/paraglide-next/examples/app/src/lib/ui/SelectLanguage.tsx
This file contains 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 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 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
Oops, something went wrong.