mirror of
https://github.com/jorgev259/soc_site-astro.git
synced 2025-06-29 07:57:41 +00:00
Filter locale
This commit is contained in:
parent
c35f4dee64
commit
1222df841b
3 changed files with 5 additions and 6 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -3,7 +3,6 @@ dist/
|
|||
|
||||
# generated types
|
||||
.astro/
|
||||
src/graphql/__generated__/
|
||||
|
||||
# dependencies
|
||||
node_modules/
|
||||
|
|
@ -14,7 +13,6 @@ yarn-debug.log*
|
|||
yarn-error.log*
|
||||
pnpm-debug.log*
|
||||
|
||||
|
||||
# environment variables
|
||||
.env
|
||||
.env.production
|
||||
|
|
|
|||
|
|
@ -1,11 +1,11 @@
|
|||
{
|
||||
"name": "soc_site-astro",
|
||||
"type": "module",
|
||||
"version": "0.0.1",
|
||||
"version": "1.0.0",
|
||||
"scripts": {
|
||||
"start": "npm run dev",
|
||||
"dev": "prisma generate && astro dev",
|
||||
"build": "npm run paraglide:compile && astro build",
|
||||
"dev": "prisma generate --sql && astro dev",
|
||||
"build": "prisma generate --sql && npm run paraglide:compile && astro build",
|
||||
"preview": "astro preview",
|
||||
"paraglide:compile": "paraglide-js compile --project ./project.inlang --outdir ./src\\paraglide"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -37,7 +37,8 @@ if (!album) {
|
|||
return
|
||||
}
|
||||
|
||||
const locale = navigator.languages && navigator.languages.length ? navigator.languages[0] : navigator.language
|
||||
const locale =
|
||||
navigator && navigator.languages && navigator.languages.length ? navigator.languages[0] : navigator.language
|
||||
---
|
||||
|
||||
<style>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue