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: {
|
image: {
|
||||||
domains: ["images.unsplash.com"],
|
domains: ["images.unsplash.com"],
|
||||||
},
|
},
|
||||||
i18n: {
|
// i18n: {
|
||||||
defaultLocale: "en",
|
// defaultLocale: "en",
|
||||||
locales: ["en", "fr"],
|
// locales: ["en", "fr"],
|
||||||
fallback: {
|
// fallback: {
|
||||||
fr: "en",
|
// fr: "en",
|
||||||
},
|
// },
|
||||||
routing: {
|
// routing: {
|
||||||
prefixDefaultLocale: false,
|
// prefixDefaultLocale: false,
|
||||||
},
|
// },
|
||||||
},
|
// },
|
||||||
prefetch: true,
|
prefetch: true,
|
||||||
integrations: [
|
integrations: [
|
||||||
tailwind(),
|
tailwind(),
|
||||||
|
@ -37,6 +37,11 @@ export default defineConfig({
|
||||||
starlight({
|
starlight({
|
||||||
title: "ScrewFast Docs",
|
title: "ScrewFast Docs",
|
||||||
defaultLocale: "root",
|
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: {
|
locales: {
|
||||||
root: {
|
root: {
|
||||||
label: "English",
|
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": {
|
"dependencies": {
|
||||||
"@astrojs/check": "^0.7.0",
|
"@astrojs/check": "^0.7.0",
|
||||||
"@astrojs/sitemap": "^3.1.5",
|
"@astrojs/sitemap": "^3.1.5",
|
||||||
"@astrojs/starlight": "^0.23.1",
|
"@astrojs/starlight": "^0.24.2",
|
||||||
"@astrojs/starlight-tailwind": "^2.0.3",
|
"@astrojs/starlight-tailwind": "^2.0.3",
|
||||||
"@astrojs/tailwind": "^5.1.0",
|
"@astrojs/tailwind": "^5.1.0",
|
||||||
"@astrojs/vercel": "^7.6.0",
|
"@astrojs/vercel": "^7.7.0",
|
||||||
"astro": "^4.9.1",
|
"astro": "^4.10.2",
|
||||||
"astro-compressor": "^0.4.1",
|
"astro-compressor": "^0.4.1",
|
||||||
"globby": "^14.0.1",
|
"globby": "^14.0.1",
|
||||||
"gsap": "^3.12.5",
|
"gsap": "^3.12.5",
|
||||||
|
|
|
@ -37,7 +37,7 @@ const secondSubTitle: string =
|
||||||
const pageTitle: string = `Blog | ${SITE.title}`;
|
const pageTitle: string = `Blog | ${SITE.title}`;
|
||||||
---
|
---
|
||||||
|
|
||||||
<MainLayout
|
<MainLayout lang="fr"
|
||||||
title={pageTitle}
|
title={pageTitle}
|
||||||
structuredData={{
|
structuredData={{
|
||||||
"@context": "https://schema.org",
|
"@context": "https://schema.org",
|
||||||
|
|
Loading…
Add table
Reference in a new issue