Skip to content

Commit

Permalink
feat: add language switcher
Browse files Browse the repository at this point in the history
- Update .gitignore
- Add LangSwitcher

Refer to: https://zhangfisher.github.io/voerka-i18n/#/zh/guide/
  • Loading branch information
easterNday committed Nov 11, 2023
1 parent 34fe540 commit 09478ec
Show file tree
Hide file tree
Showing 62 changed files with 3,494 additions and 485 deletions.
165 changes: 122 additions & 43 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,54 +1,133 @@
# build output
dist
.next
target
packages/next/wasm/@next

# dependencies
node_modules
package-lock.json
yarn.lock
!/yarn.lock
test/node_modules
.pnpm-store/
.github/**/node_modules

# logs & pids
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*
.pnpm-debug.log*

# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json

# Runtime data
pids
*.cpuprofile
*.heapsnapshot
*.pid
*.seed
*.pid.lock

# coverage
.nyc_output
# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage
*.lcov

# nyc test coverage
.nyc_output

# test output
test/**/out*
test/**/next-env.d.ts
.DS_Store
/e2e-tests
test/tmp/**
test/.trace
test/traces
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Editors
**/.idea
**/.#*
.nvmrc
# Bower dependency directory (https://bower.io/)
bower_components

# examples
examples/**/out
examples/**/.env*.local
# node-waf configuration
.lock-wscript

pr-stats.md
test-timings.json
# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Vercel
.vercel
.now
# Dependency directories
node_modules/
jspm_packages/

# Cache
# Snowpack dependency directory (https://snowpack.dev/)
web_modules/

# TypeScript cache
*.tsbuildinfo
.swc/
.turbo

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Microbundle cache
.rpt2_cache/
.rts2_cache_cjs/
.rts2_cache_es/
.rts2_cache_umd/

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env
.env.local
.env.test
.env.production

# parcel-bundler cache (https://parceljs.org/)
.cache
.parcel-cache

# Next.js build output
.next
out

# Nuxt.js build / generate output
.nuxt
dist

# Gatsby files
.cache/
# Comment in the public line in if your project uses Gatsby and not Next.js
# https://nextjs.org/blog/next-9-1#public-directory-support
# public

# vuepress build output
.vuepress/dist

# Serverless directories
.serverless/

# FuseBox cache
.fusebox/

# DynamoDB Local files
.dynamodb/

# TernJS port file
.tern-port

# Stores VSCode versions used for testing VSCode extensions
.vscode-test

# yarn v2
.yarn/cache
.yarn/unplugged
.yarn/build-state.yml
.yarn/install-state.gz
.pnp.*

# rescript files
.merlin
/lib
*.bs.js
.bsb.lock

# OS
*.DS_STORE
.DS_STORE
# graphql-ppx
graphql_schema.json
.graphql_cache
.graphql_ppx_cache
1 change: 0 additions & 1 deletion next-env.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/// <reference types="next" />
/// <reference types="next/image-types/global" />
/// <reference types="next/navigation-types/compat/navigation" />

// NOTE: This file should not be edited
// see https://nextjs.org/docs/basic-features/typescript for more information.
1 change: 0 additions & 1 deletion out/404.html

This file was deleted.

1 change: 0 additions & 1 deletion out/_next/static/5CHk7gtm3OmYKxnYXuyjt/_buildManifest.js

This file was deleted.

1 change: 0 additions & 1 deletion out/_next/static/5CHk7gtm3OmYKxnYXuyjt/_ssgManifest.js

This file was deleted.

1 change: 0 additions & 1 deletion out/_next/static/chunks/174.20c1b46e27767905.js

This file was deleted.

1 change: 0 additions & 1 deletion out/_next/static/chunks/205.b77a85360fd3c7ac.js

This file was deleted.

1 change: 0 additions & 1 deletion out/_next/static/chunks/207.19a916d37e902019.js

This file was deleted.

17 changes: 0 additions & 17 deletions out/_next/static/chunks/238-fe96ae7debf0adbd.js

This file was deleted.

17 changes: 0 additions & 17 deletions out/_next/static/chunks/366-90a75d8aef0461bc.js

This file was deleted.

1 change: 0 additions & 1 deletion out/_next/static/chunks/461-11df2ea7f1613f47.js

This file was deleted.

1 change: 0 additions & 1 deletion out/_next/static/chunks/640-1c3982279a094249.js

This file was deleted.

86 changes: 0 additions & 86 deletions out/_next/static/chunks/756-729ee39d303255bc.js

This file was deleted.

25 changes: 0 additions & 25 deletions out/_next/static/chunks/77-b6af55e03cbb2680.js

This file was deleted.

1 change: 0 additions & 1 deletion out/_next/static/chunks/803-aa8a04b50d631424.js

This file was deleted.

1 change: 0 additions & 1 deletion out/_next/static/chunks/890.7786af2bd428f664.js

This file was deleted.

9 changes: 0 additions & 9 deletions out/_next/static/chunks/8e0ad7d6-05361180b95942fe.js

This file was deleted.

Loading

0 comments on commit 09478ec

Please sign in to comment.