Update language setting and upgrade package dependencies
This commit is contained in:
parent
1937a9712e
commit
d894fe35d0
4 changed files with 330 additions and 299 deletions
|
@ -12,16 +12,16 @@ export default defineConfig({
|
|||
image: {
|
||||
domains: ["images.unsplash.com"],
|
||||
},
|
||||
i18n: {
|
||||
defaultLocale: "en",
|
||||
locales: ["en", "fr"],
|
||||
fallback: {
|
||||
fr: "en",
|
||||
},
|
||||
routing: {
|
||||
prefixDefaultLocale: false,
|
||||
},
|
||||
},
|
||||
// i18n: {
|
||||
// defaultLocale: "en",
|
||||
// locales: ["en", "fr"],
|
||||
// fallback: {
|
||||
// fr: "en",
|
||||
// },
|
||||
// routing: {
|
||||
// prefixDefaultLocale: false,
|
||||
// },
|
||||
// },
|
||||
prefetch: true,
|
||||
integrations: [
|
||||
tailwind(),
|
||||
|
@ -37,6 +37,11 @@ export default defineConfig({
|
|||
starlight({
|
||||
title: "ScrewFast Docs",
|
||||
defaultLocale: "root",
|
||||
// https://github.com/withastro/starlight/blob/main/packages/starlight/CHANGELOG.md
|
||||
// If no Astro and Starlight i18n configurations are provided, the built-in default locale is used in Starlight and a matching Astro i18n configuration is generated/used.
|
||||
// If only a Starlight i18n configuration is provided, an equivalent Astro i18n configuration is generated/used.
|
||||
// If only an Astro i18n configuration is provided, the Starlight i18n configuration is updated to match it.
|
||||
// If both an Astro and Starlight i18n configurations are provided, an error is thrown.
|
||||
locales: {
|
||||
root: {
|
||||
label: "English",
|
||||
|
|
596
package-lock.json
generated
596
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
@ -12,11 +12,11 @@
|
|||
"dependencies": {
|
||||
"@astrojs/check": "^0.7.0",
|
||||
"@astrojs/sitemap": "^3.1.5",
|
||||
"@astrojs/starlight": "^0.23.1",
|
||||
"@astrojs/starlight": "^0.24.2",
|
||||
"@astrojs/starlight-tailwind": "^2.0.3",
|
||||
"@astrojs/tailwind": "^5.1.0",
|
||||
"@astrojs/vercel": "^7.6.0",
|
||||
"astro": "^4.9.1",
|
||||
"@astrojs/vercel": "^7.7.0",
|
||||
"astro": "^4.10.2",
|
||||
"astro-compressor": "^0.4.1",
|
||||
"globby": "^14.0.1",
|
||||
"gsap": "^3.12.5",
|
||||
|
|
|
@ -37,7 +37,7 @@ const secondSubTitle: string =
|
|||
const pageTitle: string = `Blog | ${SITE.title}`;
|
||||
---
|
||||
|
||||
<MainLayout
|
||||
<MainLayout lang="fr"
|
||||
title={pageTitle}
|
||||
structuredData={{
|
||||
"@context": "https://schema.org",
|
||||
|
|
Loading…
Add table
Reference in a new issue